Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_maint.7.0.x_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_maint.7.0.x_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.005305/0.005305, allocations: 102.8 kB / 15.73 MB, free: 6.055 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.001283/0.001284, allocations: 191.6 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 222.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.268/1.268, allocations: 251.7 MB / 0.5094 GB, free: 400 kB / 430.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 71.89 kB / 0.7258 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.4619, allocations: 104.7 MB / 0.828 GB, free: 2.637 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002506/0.4645, allocations: 1.531 MB / 0.8295 GB, free: 1.086 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0008493/0.4653, allocations: 0.4939 MB / 0.83 GB, free: 0.5859 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.592e-05/0.4654, allocations: 0 / 0.83 GB, free: 0.5859 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 9.027e-05/0.4655, allocations: 7.922 kB / 0.83 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 5.063e-05/0.4656, allocations: 15.88 kB / 0.83 GB, free: 0.5625 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.4658, allocations: 35.88 kB / 0.8301 GB, free: 0.5273 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.4659, allocations: 83.78 kB / 0.8301 GB, free: 456 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.466, allocations: 20.17 kB / 0.8302 GB, free: 436 kB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.4662, allocations: 47.83 kB / 0.8302 GB, free: 388 kB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 7.615e-05/0.4662, allocations: 31.84 kB / 0.8302 GB, free: 356 kB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.4663, allocations: 8 kB / 0.8302 GB, free: 348 kB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 1.537e-05/0.4663, allocations: 8 kB / 0.8302 GB, free: 340 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 4.93e-05/0.4663, allocations: 11.92 kB / 0.8303 GB, free: 328 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 5.998e-05/0.4664, allocations: 35.8 kB / 0.8303 GB, free: 292 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.4666, allocations: 79.22 kB / 0.8304 GB, free: 216 kB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4666, allocations: 0 / 0.8304 GB, free: 216 kB / 0.6231 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4666, allocations: 4 kB / 0.8304 GB, free: 212 kB / 0.6231 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.4666, allocations: 0 / 0.8304 GB, free: 212 kB / 0.6231 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.000637/0.4672, allocations: 444.9 kB / 0.8308 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.4673, allocations: 8.031 kB / 0.8308 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.382e-05/0.4673, allocations: 8.844 kB / 0.8308 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.4675, allocations: 191.6 kB / 0.831 GB, free: 15.48 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.4675, allocations: 8.375 kB / 0.831 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.4675, allocations: 4.375 kB / 0.831 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.4678, allocations: 97.7 kB / 0.8311 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.4678, allocations: 7.984 kB / 0.8311 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.4678, allocations: 4 kB / 0.8311 GB, free: 15.35 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.4678, allocations: 0 / 0.8311 GB, free: 15.35 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.4681, allocations: 67.94 kB / 0.8312 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000509/0.4686, allocations: 336.6 kB / 0.8315 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.4689, allocations: 86.45 kB / 0.8316 GB, free: 14.81 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.469, allocations: 56.89 kB / 0.8316 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.469, allocations: 0 / 0.8316 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.4693, allocations: 103.3 kB / 0.8317 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.4693, allocations: 0 / 0.8317 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of matching and sorting (n=7): time 0.0005554/0.4699, allocations: 215.2 kB / 0.8319 GB, free: 14.42 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.4699, allocations: 85.09 kB / 0.832 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.856e-05/0.4701, allocations: 132.8 kB / 0.8321 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.4701, allocations: 29.7 kB / 0.8322 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 6.09e-05/0.4701, allocations: 96.05 kB / 0.8323 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.4702, allocations: 23.73 kB / 0.8323 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.4702, allocations: 21.72 kB / 0.8323 GB, free: 14 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4703, allocations: 322.8 kB / 0.8326 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.4705, allocations: 55.95 kB / 0.8327 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.4707, allocations: 51.91 kB / 0.8327 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.471, allocations: 165.9 kB / 0.8329 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.471, allocations: 4 kB / 0.8329 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003847/0.4714, allocations: 212.9 kB / 0.8331 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/0.4714, allocations: 59.41 kB / 0.8331 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.4714, allocations: 0 / 0.8331 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.4715, allocations: 0 / 0.8331 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.4716, allocations: 16.27 kB / 0.8332 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.4716, allocations: 0 / 0.8332 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.4717, allocations: 27.86 kB / 0.8332 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.4717, allocations: 11.88 kB / 0.8332 GB, free: 13.03 MB / 0.6387 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.0001048/0.4719, allocations: 147.5 kB / 0.8333 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.4719, allocations: 7.906 kB / 0.8333 GB, free: 12.86 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.4719, allocations: 16.7 kB / 0.8334 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.4719, allocations: 0 / 0.8334 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4719, allocations: 0 / 0.8334 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4719, allocations: 0 / 0.8334 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005193/0.4725, allocations: 440 kB / 0.8338 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.4725, allocations: 8 kB / 0.8338 GB, free: 12.34 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.563e-05/0.4725, allocations: 11.98 kB / 0.8338 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.4726, allocations: 0 / 0.8338 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.4726, allocations: 0 / 0.8338 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.4726, allocations: 11.88 kB / 0.8338 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4726, allocations: 0 / 0.8338 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.473, allocations: 269.4 kB / 0.8341 GB, free: 12.04 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.473, allocations: 85 kB / 0.8341 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.4731, allocations: 8 kB / 0.8342 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.4732, allocations: 15.92 kB / 0.8342 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.4733, allocations: 19.97 kB / 0.8342 GB, free: 11.89 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4733, allocations: 8 kB / 0.8342 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 5.438e-05/0.4734, allocations: 95.27 kB / 0.8343 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4734, allocations: 0 / 0.8343 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002268/0.4736, allocations: 20 kB / 0.8343 GB, free: 11.77 MB / 0.6387 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 9.939e-05/0.4737, allocations: 108.3 kB / 0.8344 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.000404/0.4741, allocations: 226.7 kB / 0.8346 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.4741, allocations: 0 / 0.8346 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.4743, allocations: 111.4 kB / 0.8347 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.4746, allocations: 22.42 kB / 0.8348 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00044/0.475, allocations: 195.1 kB / 0.8349 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.4753, allocations: 0.6961 MB / 0.8356 GB, free: 10.33 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 5.797e-05/0.4754, allocations: 15.98 kB / 0.8356 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.446e-05/0.4754, allocations: 11.44 kB / 0.8356 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of SimCode: time 2.3e-07/0.4754, allocations: 0 / 0.8356 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of Templates: time 0.003384/0.4788, allocations: 1.316 MB / 0.8369 GB, free: 9.027 MB / 0.6387 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)