Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008246/0.0008249, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006214/0.006214, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.433/1.433, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.000346, allocations: 8.5 kB / 0.9158 GB, free: 33.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3492, allocations: 162.2 MB / 1.074 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001826/0.351, allocations: 1.243 MB / 1.075 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00079/0.3519, allocations: 454.9 kB / 1.076 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.558e-05/0.3519, allocations: 0 / 1.076 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.3521, allocations: 0 / 1.076 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.3522, allocations: 11.88 kB / 1.076 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.3524, allocations: 31.95 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.3525, allocations: 79.7 kB / 1.076 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.3527, allocations: 16.17 kB / 1.076 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.3528, allocations: 35.91 kB / 1.076 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.229e-05/0.3529, allocations: 35.77 kB / 1.076 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.3529, allocations: 8 kB / 1.076 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.539e-05/0.353, allocations: 4 kB / 1.076 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.353, allocations: 11.92 kB / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.983e-05/0.3531, allocations: 57.5 kB / 1.076 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.3532, allocations: 67.98 kB / 1.076 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3532, allocations: 4 kB / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3533, allocations: 0 / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.3533, allocations: 0 / 1.076 GB, free: 5.48 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007034/0.354, allocations: 442.7 kB / 1.077 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.354, allocations: 8.031 kB / 1.077 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.3541, allocations: 8.844 kB / 1.077 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.3543, allocations: 184.2 kB / 1.077 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.3543, allocations: 12.36 kB / 1.077 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.3543, allocations: 4.375 kB / 1.077 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.3547, allocations: 105.7 kB / 1.077 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.3547, allocations: 0 / 1.077 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.3547, allocations: 4 kB / 1.077 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3547, allocations: 4 kB / 1.077 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.355, allocations: 87.92 kB / 1.077 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.3557, allocations: 344.6 kB / 1.077 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.356, allocations: 98.52 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.3562, allocations: 60.95 kB / 1.077 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.3562, allocations: 4 kB / 1.077 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.3566, allocations: 111.4 kB / 1.078 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.3566, allocations: 4 kB / 1.078 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006711/0.3573, allocations: 231.2 kB / 1.078 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.3573, allocations: 85.09 kB / 1.078 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3575, allocations: 126.1 kB / 1.078 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.3575, allocations: 29.69 kB / 1.078 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.3576, allocations: 103.9 kB / 1.078 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.3576, allocations: 19.8 kB / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.3576, allocations: 21.7 kB / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3578, allocations: 326.8 kB / 1.078 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.358, allocations: 51.97 kB / 1.079 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.3582, allocations: 63.83 kB / 1.079 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.3585, allocations: 185.9 kB / 1.079 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3585, allocations: 0 / 1.079 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005244/0.3591, allocations: 228.9 kB / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.878e-05/0.3591, allocations: 63.39 kB / 1.079 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3591, allocations: 4 kB / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3591, allocations: 0 / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.3593, allocations: 19.98 kB / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3593, allocations: 0 / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.3594, allocations: 27.83 kB / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.3595, allocations: 7.938 kB / 1.079 GB, free: 2.168 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: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001449/0.3596, allocations: 153.3 kB / 1.079 GB, free: 2.004 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.3596, allocations: 7.984 kB / 1.079 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.3597, allocations: 12.66 kB / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3597, allocations: 4 kB / 1.079 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3597, allocations: 4 kB / 1.079 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3597, allocations: 3.984 kB / 1.079 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006525/0.3604, allocations: 448.1 kB / 1.08 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3604, allocations: 3.984 kB / 1.08 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.779e-05/0.3605, allocations: 15.98 kB / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3605, allocations: 0 / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3605, allocations: 0 / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3605, allocations: 7.938 kB / 1.08 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3605, allocations: 0 / 1.08 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004632/0.361, allocations: 289.4 kB / 1.08 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.3611, allocations: 85.02 kB / 1.08 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.3611, allocations: 288 / 1.08 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.3612, allocations: 27.91 kB / 1.08 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.3614, allocations: 19.98 kB / 1.08 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.3614, allocations: 11.92 kB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.552e-05/0.3615, allocations: 101.7 kB / 1.08 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3615, allocations: 3.938 kB / 1.08 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002385/0.3617, allocations: 20 kB / 1.08 GB, free: 0.8555 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001385/0.3619, allocations: 103.2 kB / 1.08 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004985/0.3624, allocations: 234.7 kB / 1.081 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3624, allocations: 4 kB / 1.081 GB, free: 500 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.3627, allocations: 119.4 kB / 1.081 GB, free: 368 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.363, allocations: 8 kB / 1.081 GB, free: 360 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004922/0.3635, allocations: 229.2 kB / 1.081 GB, free: 104 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3638, allocations: 0.6926 MB / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.873e-05/0.3638, allocations: 15.77 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.3639, allocations: 19.44 kB / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3639, allocations: 0 / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of Templates: time 0.003995/0.3679, allocations: 1.123 MB / 1.083 GB, free: 14.24 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)