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.001053/0.001053, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 68.59 kB / 0.912 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3678, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003429/0.3713, allocations: 1.549 MB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003888/0.3717, allocations: 111.7 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.773e-05/0.3718, allocations: 0 / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3719, allocations: 11.92 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.613e-05/0.372, allocations: 3.938 kB / 1.07 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.3723, allocations: 31.91 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.3724, allocations: 63.78 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.3726, allocations: 23.97 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.241e-05/0.3727, allocations: 23.92 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.656e-05/0.3728, allocations: 31.91 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.3728, allocations: 7.938 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.262e-05/0.3729, allocations: 12 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.3729, allocations: 11.98 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.429e-05/0.373, allocations: 23.86 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.3731, allocations: 59.8 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3731, allocations: 0 / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3731, allocations: 0 / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.3732, allocations: 0 / 1.07 GB, free: 8.441 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.0005885/0.3737, allocations: 383.5 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3738, allocations: 12.03 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/0.3739, allocations: 12.84 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.374, allocations: 180.2 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3741, allocations: 4.375 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.3741, allocations: 8.359 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.3744, allocations: 86.14 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3744, allocations: 192 / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3744, allocations: 7.938 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3744, allocations: 4 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.3748, allocations: 75.92 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.3753, allocations: 328.7 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.3756, allocations: 58.53 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.3757, allocations: 36.92 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.3758, allocations: 0 / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.3758, allocations: 46.53 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.502e-06/0.3758, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005593/0.3764, allocations: 141.7 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3764, allocations: 51.41 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.827e-05/0.3765, allocations: 121.7 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.3766, allocations: 29.7 kB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.3766, allocations: 95.97 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.3766, allocations: 11.89 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/0.3767, allocations: 13.72 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3768, allocations: 322.7 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.377, allocations: 31.95 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.3771, allocations: 43.94 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.3774, allocations: 80.72 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3774, allocations: 0 / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003341/0.3778, allocations: 105.5 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.3778, allocations: 9.406 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3778, allocations: 3.984 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3778, allocations: 0 / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.378, allocations: 11.98 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.378, allocations: 4 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.559e-05/0.3781, allocations: 7.984 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.3781, allocations: 8 kB / 1.072 GB, free: 5.926 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 8.305e-05/0.3782, allocations: 122.4 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.3782, allocations: 0 / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003975/0.3786, allocations: 117.5 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3786, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3786, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.3786, allocations: 4 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3788, allocations: 177.6 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3788, allocations: 4 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.652e-05/0.3789, allocations: 15.97 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3789, allocations: 0 / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.379, allocations: 0 / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.379, allocations: 4 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.379, allocations: 0 / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.3794, allocations: 211.2 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.3794, allocations: 81.02 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.3795, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.3796, allocations: 11.98 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.3796, allocations: 7.984 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.3796, allocations: 4 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.245e-05/0.3797, allocations: 95.27 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3797, allocations: 7.875 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000243/0.3799, allocations: 11.94 kB / 1.073 GB, free: 4.961 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.0001602/0.3801, allocations: 99.72 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000372/0.3805, allocations: 87.86 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3805, allocations: 0 / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.3807, allocations: 35.95 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.381, allocations: 8.422 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.3814, allocations: 157.5 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.3816, allocations: 0.6924 MB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.977e-05/0.3817, allocations: 8 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.696e-05/0.3817, allocations: 7.438 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3817, allocations: 0 / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of Templates: time 0.003223/0.385, allocations: 0.7681 MB / 1.075 GB, free: 3.051 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)