Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_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.0008765/0.0008766, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00528/0.00528, allocations: 169.5 kB / 16.27 MB, free: 6.652 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.213/1.213, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.108/2.108, allocations: 390.9 MB / 0.6664 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002982, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.564/0.5643, allocations: 142.4 MB / 0.9552 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001401/0.5658, allocations: 1.249 MB / 0.9564 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003029/0.5661, allocations: 113.6 kB / 0.9565 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.045e-05/0.5662, allocations: 0 / 0.9565 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.507e-05/0.5663, allocations: 9.297 kB / 0.9565 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.451e-05/0.5663, allocations: 5.312 kB / 0.9565 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.5665, allocations: 22.86 kB / 0.9565 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.741e-05/0.5666, allocations: 51.16 kB / 0.9566 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.456e-05/0.5667, allocations: 35.7 kB / 0.9566 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.082e-05/0.5667, allocations: 19.78 kB / 0.9566 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.249e-05/0.5668, allocations: 23.84 kB / 0.9567 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.5668, allocations: 5.062 kB / 0.9567 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.788e-05/0.5669, allocations: 10 kB / 0.9567 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.381e-05/0.5669, allocations: 16.48 kB / 0.9567 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.5669, allocations: 45.91 kB / 0.9567 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.1e-05/0.567, allocations: 51.02 kB / 0.9568 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.567, allocations: 4 kB / 0.9568 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.567, allocations: 0 / 0.9568 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.5671, allocations: 1 kB / 0.9568 GB, free: 6.508 MB / 0.7169 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.0003886/0.5674, allocations: 383.7 kB / 0.9571 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.5675, allocations: 9.594 kB / 0.9572 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.5675, allocations: 31.94 kB / 0.9572 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.5676, allocations: 12.7 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.5677, allocations: 188 kB / 0.9574 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.5677, allocations: 7.094 kB / 0.9574 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.5677, allocations: 5.594 kB / 0.9574 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.568, allocations: 100.2 kB / 0.9575 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.568, allocations: 3.938 kB / 0.9575 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-06/0.568, allocations: 4 kB / 0.9575 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.568, allocations: 1.906 kB / 0.9575 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.5683, allocations: 109 kB / 0.9576 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004157/0.5687, allocations: 329.4 kB / 0.9579 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.5689, allocations: 76.19 kB / 0.958 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.5691, allocations: 55 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.5691, allocations: 1.969 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.032e-05/0.5691, allocations: 30.56 kB / 0.9581 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.5692, allocations: 1.938 kB / 0.9581 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005336/0.5697, allocations: 174.9 kB / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.69e-05/0.5697, allocations: 51.41 kB / 0.9583 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.5698, allocations: 123.2 kB / 0.9584 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.095e-06/0.5698, allocations: 25.7 kB / 0.9584 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.589e-05/0.5698, allocations: 99.19 kB / 0.9585 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.5698, allocations: 9.531 kB / 0.9585 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.5699, allocations: 11.03 kB / 0.9585 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.893e-05/0.5699, allocations: 324.2 kB / 0.9589 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.5701, allocations: 45.16 kB / 0.9589 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.5702, allocations: 47.11 kB / 0.9589 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.5705, allocations: 94.25 kB / 0.959 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.5705, allocations: 0 / 0.959 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003168/0.5708, allocations: 131.4 kB / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.5708, allocations: 5.5 kB / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.5708, allocations: 336 / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.5709, allocations: 1.375 kB / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.571, allocations: 23.05 kB / 0.9592 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.571, allocations: 7.984 kB / 0.9592 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.685e-05/0.5711, allocations: 16.36 kB / 0.9592 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.5711, allocations: 5.312 kB / 0.9592 GB, free: 4.379 MB / 0.7169 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 4.785e-05/0.5711, allocations: 121.9 kB / 0.9593 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.5712, allocations: 6.734 kB / 0.9593 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003498/0.5715, allocations: 131.4 kB / 0.9595 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.5715, allocations: 3.984 kB / 0.9595 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5716, allocations: 5.375 kB / 0.9595 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5716, allocations: 0 / 0.9595 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.5717, allocations: 185.9 kB / 0.9596 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.5717, allocations: 0 / 0.9596 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.446e-05/0.5718, allocations: 32.42 kB / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.5718, allocations: 0 / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.5718, allocations: 0 / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5718, allocations: 1.375 kB / 0.9597 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.5718, allocations: 4 kB / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.5721, allocations: 226.6 kB / 0.9599 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.609e-05/0.5722, allocations: 82.39 kB / 0.96 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.5722, allocations: 1.375 kB / 0.96 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.5723, allocations: 14.98 kB / 0.96 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.5723, allocations: 6.734 kB / 0.96 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.5723, allocations: 5.375 kB / 0.96 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.754e-05/0.5724, allocations: 91.52 kB / 0.9601 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5724, allocations: 0 / 0.9601 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002134/0.5726, allocations: 13.56 kB / 0.9601 GB, free: 3.551 MB / 0.7169 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.0004812/0.5731, allocations: 0.756 MB / 0.9608 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000336/0.5734, allocations: 98.28 kB / 0.9609 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.5734, allocations: 4 kB / 0.9609 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.5736, allocations: 49.28 kB / 0.961 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.5739, allocations: 10.98 kB / 0.961 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.5753, allocations: 1.496 MB / 0.9625 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.833e-05/0.5754, allocations: 0.6893 MB / 0.9631 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.619e-05/0.5754, allocations: 7.891 kB / 0.9631 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.5755, allocations: 21.78 kB / 0.9632 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.5755, allocations: 0 / 0.9632 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.5941, allocations: 1.484 MB / 0.9646 GB, free: 12 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.5943, allocations: 182.2 kB / 0.9648 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.538/2.132, allocations: 1.344 kB / 0.9648 GB, free: 15.76 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches