Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001819/0.001819, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0022/0.0022, allocations: 195.8 kB / 16.14 MB, free: 6.688 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.81/2.81, allocations: 472.6 MB / 0.7447 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 65.98 kB / 0.9113 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3597, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002959/0.3627, allocations: 1.598 MB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00036/0.3631, allocations: 115.6 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.3631, allocations: 4 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.3633, allocations: 7.875 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.179e-05/0.3633, allocations: 3.938 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.3636, allocations: 27.97 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.67e-05/0.3637, allocations: 55.84 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3638, allocations: 23.98 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.192e-05/0.3638, allocations: 23.91 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.3639, allocations: 31.84 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.3639, allocations: 4 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.364, allocations: 4 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.364, allocations: 19.98 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.3641, allocations: 23.81 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.3642, allocations: 55.84 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3642, allocations: 0 / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.877e-06/0.3642, allocations: 0 / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.207e-06/0.3642, allocations: 3.938 kB / 1.069 GB, free: 8.902 MB / 0.8262 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.0005384/0.3648, allocations: 375.6 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.3648, allocations: 8.031 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.3649, allocations: 12.84 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.365, allocations: 188.2 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.365, allocations: 4.375 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.3651, allocations: 4.375 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.3654, allocations: 86.2 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.3654, allocations: 192 / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.3654, allocations: 3.938 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.3654, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.3657, allocations: 87.91 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005318/0.3663, allocations: 320.7 kB / 1.07 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.3665, allocations: 62.62 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.3666, allocations: 44.84 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.3667, allocations: 0 / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.3667, allocations: 30.56 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.3667, allocations: 4 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005567/0.3673, allocations: 141.6 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.3673, allocations: 55.41 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3674, allocations: 121.6 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3675, allocations: 29.7 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.222e-05/0.3675, allocations: 99.98 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.3675, allocations: 3.906 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.3676, allocations: 21.7 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3677, allocations: 314.8 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.3679, allocations: 39.89 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.368, allocations: 39.95 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.3683, allocations: 72.78 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3683, allocations: 0 / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000345/0.3687, allocations: 109.5 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3687, allocations: 4 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3687, allocations: 0 / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3687, allocations: 0 / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3689, allocations: 15.98 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3689, allocations: 7.922 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.571e-05/0.369, allocations: 15.98 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.369, allocations: 0 / 1.072 GB, free: 6.398 MB / 0.8262 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 0.0001043/0.3691, allocations: 121.8 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.3692, allocations: 4 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000396/0.3696, allocations: 109.5 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3696, allocations: 4 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3696, allocations: 0 / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3696, allocations: 0 / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.3698, allocations: 185.6 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3698, allocations: 4 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.3699, allocations: 15.98 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3699, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.3699, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3699, allocations: 3.938 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.37, allocations: 3.984 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003895/0.3704, allocations: 203.3 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.3704, allocations: 92.94 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.3704, allocations: 0 / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3706, allocations: 7.984 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.3706, allocations: 8 kB / 1.072 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.3706, allocations: 0 / 1.072 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.559e-05/0.3707, allocations: 91.27 kB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3707, allocations: 8 kB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002482/0.371, allocations: 11.94 kB / 1.073 GB, free: 5.434 MB / 0.8262 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.0001708/0.3711, allocations: 107.1 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003596/0.3715, allocations: 75.86 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3715, allocations: 0 / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.3717, allocations: 47.95 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.372, allocations: 4.422 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003515/0.3724, allocations: 156.3 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.3726, allocations: 0.6965 MB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.27e-05/0.3727, allocations: 11.98 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/0.3727, allocations: 15.38 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3727, allocations: 0 / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of Templates: time 0.003078/0.3758, allocations: 0.6441 MB / 1.074 GB, free: 3.629 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)