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: 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.007405/0.007405, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001701/0.001701, allocations: 191.2 kB / 16.79 MB, free: 5.809 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.424/1.424, allocations: 222.9 MB / 240.5 MB, free: 4.57 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.433/2.433, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6679/0.6695, allocations: 140.3 MB / 0.9496 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002385/0.6719, allocations: 1.601 MB / 0.9511 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003214/0.6723, allocations: 108.9 kB / 0.9512 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.335e-05/0.6723, allocations: 1.281 kB / 0.9512 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.6725, allocations: 9.109 kB / 0.9513 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.503e-05/0.6725, allocations: 13.2 kB / 0.9513 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001918/0.6727, allocations: 18.67 kB / 0.9513 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.825e-05/0.6728, allocations: 59.66 kB / 0.9513 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.6729, allocations: 22.88 kB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.121e-05/0.673, allocations: 30.08 kB / 0.9514 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.198e-05/0.673, allocations: 28.5 kB / 0.9514 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.673, allocations: 3.062 kB / 0.9514 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.938e-05/0.6731, allocations: 13.28 kB / 0.9514 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.848e-05/0.6732, allocations: 13.31 kB / 0.9514 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.6732, allocations: 25.3 kB / 0.9515 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.889e-05/0.6733, allocations: 36.75 kB / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.6733, allocations: 0 / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6733, allocations: 0 / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.6733, allocations: 3.938 kB / 0.9515 GB, free: 7.594 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.0004675/0.6738, allocations: 386.4 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.6738, allocations: 9.281 kB / 0.9519 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.6739, allocations: 8.188 kB / 0.9519 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.674, allocations: 183.3 kB / 0.9521 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.674, allocations: 9.875 kB / 0.9521 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.674, allocations: 2.875 kB / 0.9521 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.6743, allocations: 95.2 kB / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.6743, allocations: 192 / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.6743, allocations: 3.938 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.6744, allocations: 1.625 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.6746, allocations: 81 kB / 0.9523 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/0.6751, allocations: 328.6 kB / 0.9526 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.6753, allocations: 57.91 kB / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.6755, allocations: 53.56 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.6755, allocations: 1.375 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.6755, allocations: 31.94 kB / 0.9527 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.6755, allocations: 0 / 0.9527 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005069/0.676, allocations: 137.6 kB / 0.9528 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.6761, allocations: 52.69 kB / 0.9529 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.779e-05/0.6761, allocations: 123 kB / 0.953 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.818e-06/0.6762, allocations: 25.7 kB / 0.953 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.6762, allocations: 90.98 kB / 0.9531 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.6762, allocations: 9.156 kB / 0.9531 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.6763, allocations: 21.7 kB / 0.9531 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.534e-05/0.6763, allocations: 316.6 kB / 0.9534 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.6765, allocations: 41.67 kB / 0.9535 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.6766, allocations: 38.41 kB / 0.9535 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.6769, allocations: 70.69 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.6769, allocations: 0 / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002922/0.6772, allocations: 108.8 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.6772, allocations: 5.469 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.6772, allocations: 0 / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.6772, allocations: 0 / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.6773, allocations: 15.42 kB / 0.9537 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.6774, allocations: 3.984 kB / 0.9537 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.458e-05/0.6774, allocations: 15.2 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.6775, allocations: 9.281 kB / 0.9537 GB, free: 5.52 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 5.566e-05/0.6775, allocations: 113.8 kB / 0.9539 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.6776, allocations: 6.125 kB / 0.9539 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.6779, allocations: 120.1 kB / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.6779, allocations: 0 / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6779, allocations: 1.062 kB / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.678, allocations: 384 / 0.954 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.6781, allocations: 183.1 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.6781, allocations: 0 / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.438e-05/0.6782, allocations: 14.83 kB / 0.9542 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.6782, allocations: 0 / 0.9542 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.6782, allocations: 5.359 kB / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.6782, allocations: 0 / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6782, allocations: 11.92 kB / 0.9542 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.6786, allocations: 195.5 kB / 0.9544 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.285e-05/0.6786, allocations: 86.33 kB / 0.9544 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.6786, allocations: 5.359 kB / 0.9545 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.6787, allocations: 15.05 kB / 0.9545 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.6788, allocations: 5.344 kB / 0.9545 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.6788, allocations: 1.312 kB / 0.9545 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.452e-05/0.6788, allocations: 91.73 kB / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6788, allocations: 0 / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002343/0.6791, allocations: 9.531 kB / 0.9546 GB, free: 4.711 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.0001154/0.6792, allocations: 104.6 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.6795, allocations: 82.92 kB / 0.9547 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.6795, allocations: 1 kB / 0.9547 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.6797, allocations: 39.52 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.68, allocations: 3.062 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/0.6803, allocations: 195.9 kB / 0.955 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.6804, allocations: 0.6927 MB / 0.9557 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.6805, allocations: 9.625 kB / 0.9557 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.6805, allocations: 3.938 kB / 0.9557 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of Templates: time 0.002227/0.6827, allocations: 0.9207 MB / 0.9566 GB, free: 3.191 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/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