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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008198/0.0008199, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.0009731/0.0009734, allocations: 176.8 kB / 16.27 MB, free: 6.664 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.496/1.496, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.616/2.616, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003647, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.863/0.8634, allocations: 142.4 MB / 0.955 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00186/0.8653, allocations: 1.25 MB / 0.9563 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003839/0.8657, allocations: 116.8 kB / 0.9564 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.779e-05/0.8658, allocations: 1.094 kB / 0.9564 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.8659, allocations: 7.922 kB / 0.9564 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.632e-05/0.866, allocations: 5.844 kB / 0.9564 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.8662, allocations: 19.83 kB / 0.9564 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.8664, allocations: 58.44 kB / 0.9565 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.8665, allocations: 28.06 kB / 0.9565 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.744e-05/0.8666, allocations: 23.34 kB / 0.9565 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.146e-05/0.8666, allocations: 22.88 kB / 0.9565 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.8667, allocations: 2.281 kB / 0.9565 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.049e-05/0.8667, allocations: 5.344 kB / 0.9565 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.28e-05/0.8668, allocations: 15.92 kB / 0.9566 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/0.8668, allocations: 42.77 kB / 0.9566 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.867, allocations: 58.47 kB / 0.9567 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.867, allocations: 1.062 kB / 0.9567 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.685e-06/0.867, allocations: 4 kB / 0.9567 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.867, allocations: 0 / 0.9567 GB, free: 6.395 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.0005182/0.8675, allocations: 380.4 kB / 0.957 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.8676, allocations: 12.59 kB / 0.957 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.8676, allocations: 12.22 kB / 0.957 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.8678, allocations: 192.1 kB / 0.9572 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.8678, allocations: 1.562 kB / 0.9572 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.8678, allocations: 7.406 kB / 0.9572 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.8682, allocations: 94.52 kB / 0.9573 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.8682, allocations: 4.188 kB / 0.9573 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.8682, allocations: 5.094 kB / 0.9573 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.8682, allocations: 1.031 kB / 0.9573 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.8686, allocations: 104.3 kB / 0.9574 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/0.8692, allocations: 335.6 kB / 0.9578 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.8694, allocations: 69.28 kB / 0.9578 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.8696, allocations: 53.95 kB / 0.9579 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.196e-05/0.8696, allocations: 1.125 kB / 0.9579 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.8697, allocations: 39.48 kB / 0.9579 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.8697, allocations: 1 kB / 0.9579 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006938/0.8704, allocations: 172 kB / 0.9581 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.8704, allocations: 51.41 kB / 0.9581 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.362e-05/0.8705, allocations: 120.1 kB / 0.9582 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.8705, allocations: 25.7 kB / 0.9583 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/0.8706, allocations: 94.31 kB / 0.9584 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.8706, allocations: 16.91 kB / 0.9584 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.8706, allocations: 10.94 kB / 0.9584 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.58e-05/0.8707, allocations: 320.4 kB / 0.9587 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.8709, allocations: 44.64 kB / 0.9587 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.8711, allocations: 52.14 kB / 0.9588 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.8714, allocations: 94.09 kB / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8714, allocations: 0 / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003576/0.8718, allocations: 124.1 kB / 0.959 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.8718, allocations: 5.688 kB / 0.959 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.8718, allocations: 0 / 0.959 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.8718, allocations: 4.031 kB / 0.959 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.872, allocations: 27.38 kB / 0.959 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.872, allocations: 1.469 kB / 0.959 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.552e-05/0.8721, allocations: 23.17 kB / 0.959 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.8721, allocations: 1.375 kB / 0.959 GB, free: 4.316 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 7.559e-05/0.8722, allocations: 129.8 kB / 0.9592 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.8722, allocations: 6.75 kB / 0.9592 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004187/0.8726, allocations: 131.4 kB / 0.9593 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.8727, allocations: 0 / 0.9593 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.8727, allocations: 1.375 kB / 0.9593 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.8727, allocations: 0 / 0.9593 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.8729, allocations: 181.9 kB / 0.9595 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.8729, allocations: 0 / 0.9595 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.873, allocations: 28.47 kB / 0.9595 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.873, allocations: 4 kB / 0.9595 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.873, allocations: 1.375 kB / 0.9595 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.873, allocations: 0 / 0.9595 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.873, allocations: 0 / 0.9595 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003815/0.8734, allocations: 230.5 kB / 0.9597 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.8734, allocations: 82.39 kB / 0.9598 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.8735, allocations: 1.375 kB / 0.9598 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.8736, allocations: 22.98 kB / 0.9598 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.8736, allocations: 6.734 kB / 0.9598 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.8736, allocations: 1.375 kB / 0.9598 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.209e-05/0.8737, allocations: 91.95 kB / 0.9599 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8737, allocations: 0 / 0.9599 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002405/0.8739, allocations: 9.625 kB / 0.9599 GB, free: 3.492 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.0001398/0.8741, allocations: 99.69 kB / 0.96 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004237/0.8745, allocations: 107.1 kB / 0.9601 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.8745, allocations: 1.375 kB / 0.9601 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.8747, allocations: 48.3 kB / 0.9602 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.875, allocations: 3.062 kB / 0.9602 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.8754, allocations: 174.3 kB / 0.9603 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.8756, allocations: 0.6898 MB / 0.961 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.408e-05/0.8756, allocations: 7.953 kB / 0.961 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.828e-05/0.8757, allocations: 9.625 kB / 0.961 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of SimCode: time 4.81e-07/0.8757, allocations: 4 kB / 0.961 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of Templates: time 0.003353/0.879, allocations: 0.6325 MB / 0.9617 GB, free: 2.133 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches