Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008747/0.0008747, allocations: 80.8 kB / 20.75 MB, free: 3.738 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 161.4 kB / 24.17 MB, free: 328 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9065/0.9065, allocations: 177.1 MB / 204.6 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.825/1.825, allocations: 377.9 MB / 0.624 GB, free: 8.387 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0.875 kB / 0.76 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052e-05/1.168e-05, allocations: 8 kB / 0.76 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001695/0.001707, allocations: 1.594 MB / 0.7616 GB, free: 5.078 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0006251/0.002332, allocations: 0.5092 MB / 0.7621 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.873e-05/0.002381, allocations: 0.7812 kB / 0.7621 GB, free: 4.57 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 7.702e-05/0.002458, allocations: 4.922 kB / 0.7621 GB, free: 4.566 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 4.682e-05/0.002505, allocations: 18.47 kB / 0.7621 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.002695, allocations: 49.14 kB / 0.7621 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.002809, allocations: 89.52 kB / 0.7622 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.552e-05/0.002874, allocations: 11.98 kB / 0.7622 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.003, allocations: 63.81 kB / 0.7623 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.003056, allocations: 31.91 kB / 0.7623 GB, free: 4.324 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.003072, allocations: 4 kB / 0.7623 GB, free: 4.32 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 3.279e-05/0.003104, allocations: 13.45 kB / 0.7623 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.562e-05/0.00314, allocations: 15.92 kB / 0.7623 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.00317, allocations: 19.98 kB / 0.7624 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 9.921e-05/0.00327, allocations: 67.73 kB / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.003272, allocations: 5.25 kB / 0.7624 GB, free: 4.203 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.5e-07/0.003273, allocations: 0 / 0.7624 GB, free: 4.203 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.795e-06/0.003275, allocations: 0 / 0.7624 GB, free: 4.203 MB / 0.7136 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.0003484/0.003624, allocations: 345.2 kB / 0.7628 GB, free: 3.832 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.416e-05/0.003648, allocations: 8.031 kB / 0.7628 GB, free: 3.824 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.869e-05/0.003737, allocations: 29.5 kB / 0.7628 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.003851, allocations: 127.9 kB / 0.7629 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.003862, allocations: 4.906 kB / 0.7629 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.003875, allocations: 5 kB / 0.7629 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.004, allocations: 113.9 kB / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.004006, allocations: 192 / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-06/0.004014, allocations: 384 / 0.763 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.004019, allocations: 7.938 kB / 0.763 GB, free: 3.508 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.657e-05/0.004056, allocations: 46.84 kB / 0.7631 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002338/0.004289, allocations: 183.1 kB / 0.7633 GB, free: 3.262 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.659e-05/0.004356, allocations: 61.8 kB / 0.7633 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.026e-05/0.004386, allocations: 50.67 kB / 0.7634 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.004396, allocations: 0 / 0.7634 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.403e-05/0.00449, allocations: 105.7 kB / 0.7635 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 7.51e-07/0.00449, allocations: 0.75 kB / 0.7635 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001333/0.004624, allocations: 154.7 kB / 0.7636 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.004657, allocations: 85.84 kB / 0.7637 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.829e-05/0.004715, allocations: 126.6 kB / 0.7638 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.004729, allocations: 35.83 kB / 0.7639 GB, free: 2.555 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.344e-05/0.004762, allocations: 96.06 kB / 0.7639 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.004775, allocations: 19.84 kB / 0.764 GB, free: 2.438 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.004808, allocations: 25.7 kB / 0.764 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.391e-05/0.004872, allocations: 318.8 kB / 0.7643 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.777e-05/0.00491, allocations: 71.39 kB / 0.7644 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.079e-05/0.004941, allocations: 64.06 kB / 0.7644 GB, free: 1.93 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.274e-05/0.005003, allocations: 124.7 kB / 0.7645 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.005005, allocations: 0.8125 kB / 0.7645 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001072/0.005112, allocations: 180.4 kB / 0.7647 GB, free: 1.578 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.00514, allocations: 67.86 kB / 0.7648 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/0.005143, allocations: 0 / 0.7648 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.005153, allocations: 0 / 0.7648 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.228e-05/0.005215, allocations: 27.91 kB / 0.7648 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-06/0.005218, allocations: 0 / 0.7648 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.727e-05/0.005265, allocations: 19.88 kB / 0.7648 GB, free: 1.457 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.005273, allocations: 7.109 kB / 0.7648 GB, free: 1.453 MB / 0.7136 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 6.053e-05/0.005334, allocations: 142.4 kB / 0.765 GB, free: 1.297 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.005347, allocations: 15.92 kB / 0.765 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.858e-05/0.005365, allocations: 12.78 kB / 0.765 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.005367, allocations: 0 / 0.765 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.52e-07/0.005368, allocations: 0 / 0.765 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.005371, allocations: 0 / 0.765 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.005515, allocations: 274.2 kB / 0.7653 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.005517, allocations: 5.812 kB / 0.7653 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.722e-05/0.005544, allocations: 15.92 kB / 0.7653 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.005546, allocations: 4 kB / 0.7653 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.005553, allocations: 4 kB / 0.7653 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.005553, allocations: 3.25 kB / 0.7653 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.005555, allocations: 3.984 kB / 0.7653 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.005876, allocations: 210.9 kB / 0.7655 GB, free: 0.6992 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-06/0.005884, allocations: 11.89 kB / 0.7655 GB, free: 0.6875 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.0059, allocations: 7.938 kB / 0.7655 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.041e-05/0.00595, allocations: 7.984 kB / 0.7655 GB, free: 0.6719 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.00601, allocations: 23.97 kB / 0.7655 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.006015, allocations: 0 / 0.7655 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.748e-05/0.006032, allocations: 24.08 kB / 0.7656 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.006032, allocations: 2.875 kB / 0.7656 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001223/0.006155, allocations: 23.94 kB / 0.7656 GB, free: 0.6016 MB / 0.7136 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 6.277e-05/0.006217, allocations: 84.88 kB / 0.7657 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001395/0.006357, allocations: 245 kB / 0.7659 GB, free: 232 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.006359, allocations: 0 / 0.7659 GB, free: 232 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.213e-05/0.006421, allocations: 115.4 kB / 0.766 GB, free: 96 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.006551, allocations: 16.62 kB / 0.766 GB, free: 80 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004233/0.006974, allocations: 231.1 kB / 0.7663 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.311e-05/0.007007, allocations: 63.34 kB / 0.7663 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.634e-05/0.007034, allocations: 1.219 kB / 0.7663 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.573e-05/0.007099, allocations: 68.02 kB / 0.7664 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of SimCode: time 7.31e-07/0.0071, allocations: 4.469 kB / 0.7664 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of Templates: time 0.002627/0.009727, allocations: 1.41 MB / 0.7678 GB, free: 14.33 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6091458960436285]