Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 192.5 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.57/2.57, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.91 kB / 0.8689 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7878/0.7893, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002702/0.792, allocations: 1.593 MB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003133/0.7924, allocations: 116.5 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.95e-05/0.7924, allocations: 0 / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.7926, allocations: 7.922 kB / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.589e-05/0.7926, allocations: 3.938 kB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.7928, allocations: 23.98 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.26e-05/0.7929, allocations: 59.78 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.7931, allocations: 27.97 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.388e-05/0.7931, allocations: 27.92 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.581e-05/0.7932, allocations: 27.91 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.7932, allocations: 4 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.918e-05/0.7933, allocations: 11.98 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.7933, allocations: 11.94 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.901e-05/0.7934, allocations: 23.86 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.7935, allocations: 59.8 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.7935, allocations: 0 / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7935, allocations: 4 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.7935, allocations: 0 / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004947/0.794, allocations: 385.4 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.7941, allocations: 8.031 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.7941, allocations: 46.67 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.403e-05/0.7941, allocations: 0.9375 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.7943, allocations: 192.2 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-06/0.7943, allocations: 4.375 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.7944, allocations: 4.312 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.7946, allocations: 86.2 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.7946, allocations: 3.938 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.7947, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.7947, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.795, allocations: 87.84 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.7955, allocations: 328.7 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.7957, allocations: 66.56 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.7958, allocations: 44.91 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.7959, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.7959, allocations: 30.56 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.7959, allocations: 4 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005298/0.7964, allocations: 137.5 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.7965, allocations: 51.41 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.135e-05/0.7966, allocations: 117.8 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.7966, allocations: 25.7 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.7967, allocations: 96.12 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.7967, allocations: 15.75 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.7967, allocations: 17.66 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.7968, allocations: 326.8 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.797, allocations: 27.97 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.7971, allocations: 40.14 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.7974, allocations: 76.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.7974, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003258/0.7978, allocations: 105.6 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.7978, allocations: 8 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7978, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.7978, allocations: 4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.7979, allocations: 15.92 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.798, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.826e-05/0.798, allocations: 15.97 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.7981, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.792e-05/0.7982, allocations: 122.3 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.7982, allocations: 7.906 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003738/0.7986, allocations: 117.5 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.7986, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7986, allocations: 3.938 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.7986, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.7988, allocations: 177.6 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.7988, allocations: 4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.767e-05/0.7989, allocations: 19.98 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.7989, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.7989, allocations: 3.938 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.799, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.799, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003607/0.7993, allocations: 207.3 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.7994, allocations: 81.11 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.7994, allocations: 3.984 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.7995, allocations: 11.98 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.7996, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.7996, allocations: 4 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.44e-05/0.7996, allocations: 91.27 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7997, allocations: 4 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002424/0.7999, allocations: 15.94 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006426/0.8005, allocations: 0.7396 MB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003265/0.8009, allocations: 75.91 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8009, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.8011, allocations: 47.89 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.8014, allocations: 10.19 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.8031, allocations: 1.436 MB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.8034, allocations: 0.6885 MB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.823e-05/0.8034, allocations: 7.984 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.8035, allocations: 19.44 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8035, allocations: 0 / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01077/0.8142, allocations: 1.595 MB / 1.026 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.8145, allocations: 200.9 kB / 1.027 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.502, allocations: 0 / 1.027 GB, free: 8.234 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches