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.001245/0.001245, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001463/0.001463, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 239.9 MB, free: 5.238 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.405/2.405, allocations: 390.3 MB / 0.6653 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003743, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9492/0.9496, allocations: 142.3 MB / 0.9535 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003056/0.9527, allocations: 1.231 MB / 0.9547 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005291/0.9533, allocations: 117.4 kB / 0.9548 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.9534, allocations: 0 / 0.9548 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.9537, allocations: 13.77 kB / 0.9548 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.788e-05/0.9537, allocations: 5.203 kB / 0.9548 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.954, allocations: 19.67 kB / 0.9549 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.9542, allocations: 34.61 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.9543, allocations: 26.69 kB / 0.9549 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.112e-05/0.9544, allocations: 15.58 kB / 0.9549 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.266e-05/0.9545, allocations: 28.06 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.9546, allocations: 2.25 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.303e-05/0.9546, allocations: 3.906 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.269e-05/0.9547, allocations: 12.02 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.9547, allocations: 32.42 kB / 0.955 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.9549, allocations: 43.86 kB / 0.955 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.9549, allocations: 3.938 kB / 0.955 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.973e-06/0.9549, allocations: 5.062 kB / 0.955 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.9549, allocations: 0 / 0.955 GB, free: 6.887 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.0006824/0.9556, allocations: 388.1 kB / 0.9554 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.9557, allocations: 8.719 kB / 0.9554 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.9557, allocations: 7.406 kB / 0.9554 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.9559, allocations: 174.1 kB / 0.9556 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.956, allocations: 10.44 kB / 0.9556 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.956, allocations: 6.188 kB / 0.9556 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.9564, allocations: 97.91 kB / 0.9557 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.9564, allocations: 3.984 kB / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.9564, allocations: 5.062 kB / 0.9557 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.9564, allocations: 5.078 kB / 0.9557 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.9568, allocations: 100.3 kB / 0.9558 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006231/0.9574, allocations: 341.7 kB / 0.9561 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.9576, allocations: 71.78 kB / 0.9562 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.9577, allocations: 6.391 kB / 0.9562 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.9577, allocations: 39.56 kB / 0.9563 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.9577, allocations: 0 / 0.9563 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006134/0.9584, allocations: 168.1 kB / 0.9564 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.9584, allocations: 51.41 kB / 0.9565 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.298e-05/0.9585, allocations: 119.6 kB / 0.9566 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.9585, allocations: 25.7 kB / 0.9566 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.06e-05/0.9586, allocations: 98.5 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.9586, allocations: 13.22 kB / 0.9567 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-06/0.9586, allocations: 0 / 0.9567 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.566e-05/0.9587, allocations: 320.4 kB / 0.957 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.9589, allocations: 48.45 kB / 0.9571 GB, free: 5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.959, allocations: 45.3 kB / 0.9571 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.9592, allocations: 47.53 kB / 0.9572 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.9592, allocations: 0 / 0.9572 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003921/0.9596, allocations: 128.5 kB / 0.9573 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.9596, allocations: 5.344 kB / 0.9573 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.9596, allocations: 0 / 0.9573 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.9597, allocations: 0 / 0.9573 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.9598, allocations: 24.05 kB / 0.9573 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.9598, allocations: 3.938 kB / 0.9573 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.677e-05/0.9599, allocations: 24.59 kB / 0.9573 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.9599, allocations: 1.156 kB / 0.9573 GB, free: 4.871 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.26e-05/0.96, allocations: 109.3 kB / 0.9574 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.9601, allocations: 13.98 kB / 0.9574 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004048/0.9605, allocations: 143.4 kB / 0.9576 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.9605, allocations: 1.844 kB / 0.9576 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9605, allocations: 0 / 0.9576 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.9605, allocations: 0 / 0.9576 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.9607, allocations: 178.1 kB / 0.9578 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.9607, allocations: 0 / 0.9578 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.239e-05/0.9608, allocations: 23.98 kB / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.9608, allocations: 0 / 0.9578 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.9608, allocations: 9.266 kB / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9608, allocations: 0 / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.9608, allocations: 0 / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.9612, allocations: 232 kB / 0.958 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.9613, allocations: 78.27 kB / 0.9581 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.9613, allocations: 1.406 kB / 0.9581 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.9614, allocations: 26.61 kB / 0.9581 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.9615, allocations: 10.31 kB / 0.9581 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.9615, allocations: 1.531 kB / 0.9581 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.679e-05/0.9615, allocations: 91.8 kB / 0.9582 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9615, allocations: 0 / 0.9582 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002298/0.9618, allocations: 8.656 kB / 0.9582 GB, free: 4.047 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001497/0.9619, allocations: 100.6 kB / 0.9583 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004005/0.9623, allocations: 99.23 kB / 0.9584 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.9623, allocations: 0 / 0.9584 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.9625, allocations: 56.3 kB / 0.9585 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.9628, allocations: 2.562 kB / 0.9585 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.9632, allocations: 162.4 kB / 0.9586 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.9634, allocations: 0.6946 MB / 0.9593 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.049e-05/0.9634, allocations: 12.14 kB / 0.9593 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.9635, allocations: 9.25 kB / 0.9593 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of SimCode: time 6.31e-07/0.9635, allocations: 0 / 0.9593 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of Templates: time 0.003533/0.967, allocations: 0.6091 MB / 0.9599 GB, free: 2.707 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches