Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_9_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.001041/0.001041, allocations: 99.11 kB / 16.02 MB, free: 76 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.001499/0.001499, allocations: 185.9 kB / 16.92 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.549/2.549, allocations: 390.9 MB / 0.667 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003557, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7586/0.759, allocations: 142.4 MB / 0.9557 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001519/0.7606, allocations: 1.24 MB / 0.9569 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006937/0.7613, allocations: 452.4 kB / 0.9574 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.316e-05/0.7613, allocations: 3.938 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.565e-05/0.7614, allocations: 5.234 kB / 0.9574 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.415e-05/0.7615, allocations: 13.23 kB / 0.9574 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.7617, allocations: 28.97 kB / 0.9574 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.7618, allocations: 76 kB / 0.9575 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.7619, allocations: 24.44 kB / 0.9575 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.7621, allocations: 33.34 kB / 0.9575 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.969e-05/0.7622, allocations: 30.44 kB / 0.9576 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.7622, allocations: 3.25 kB / 0.9576 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.506e-05/0.7622, allocations: 2.156 kB / 0.9576 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.325e-05/0.7623, allocations: 15.17 kB / 0.9576 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.075e-05/0.7623, allocations: 58.19 kB / 0.9576 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.807e-05/0.7624, allocations: 54.17 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.423e-06/0.7624, allocations: 1.125 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7625, allocations: 0 / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.7625, allocations: 0 / 0.9577 GB, free: 6.164 MB / 0.7169 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.0006341/0.7631, allocations: 439.7 kB / 0.9581 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.7632, allocations: 9.219 kB / 0.9581 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.7632, allocations: 17.38 kB / 0.9581 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.7633, allocations: 186.8 kB / 0.9583 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.7634, allocations: 7.125 kB / 0.9583 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.7634, allocations: 5.125 kB / 0.9583 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.7637, allocations: 109.9 kB / 0.9584 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.7637, allocations: 0 / 0.9584 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.7637, allocations: 1.531 kB / 0.9584 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.7638, allocations: 5.156 kB / 0.9584 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.7641, allocations: 86.45 kB / 0.9585 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005308/0.7646, allocations: 344 kB / 0.9588 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.7649, allocations: 97.36 kB / 0.9589 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.7651, allocations: 62.53 kB / 0.959 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.7651, allocations: 2 kB / 0.959 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.7654, allocations: 111.1 kB / 0.9591 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/0.7654, allocations: 3.984 kB / 0.9591 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006682/0.7661, allocations: 233.4 kB / 0.9593 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.7662, allocations: 82.83 kB / 0.9594 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.303e-05/0.7663, allocations: 140.4 kB / 0.9595 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.7663, allocations: 31.27 kB / 0.9596 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.7664, allocations: 96.08 kB / 0.9597 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.7664, allocations: 22.34 kB / 0.9597 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.7664, allocations: 21.48 kB / 0.9597 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.863e-05/0.7665, allocations: 321.4 kB / 0.96 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.7667, allocations: 58.23 kB / 0.9601 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.7669, allocations: 58.33 kB / 0.9601 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003159/0.7672, allocations: 181 kB / 0.9603 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.7672, allocations: 1.375 kB / 0.9603 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004119/0.7676, allocations: 229 kB / 0.9605 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.7677, allocations: 67.36 kB / 0.9606 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.7677, allocations: 0 / 0.9606 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.7677, allocations: 0 / 0.9606 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.7678, allocations: 19.11 kB / 0.9606 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.7679, allocations: 0 / 0.9606 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.768, allocations: 23.11 kB / 0.9606 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.768, allocations: 6.688 kB / 0.9606 GB, free: 3.59 MB / 0.7169 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 8.66e-05/0.7681, allocations: 154.3 kB / 0.9608 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.7681, allocations: 8.031 kB / 0.9608 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.7682, allocations: 11.75 kB / 0.9608 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7682, allocations: 1.375 kB / 0.9608 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.7682, allocations: 0 / 0.9608 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7682, allocations: 3.938 kB / 0.9608 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.7687, allocations: 451.4 kB / 0.9612 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.7687, allocations: 0.9375 kB / 0.9612 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.963e-05/0.7688, allocations: 24.91 kB / 0.9613 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.7688, allocations: 0 / 0.9613 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.7689, allocations: 1.438 kB / 0.9613 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.7689, allocations: 5.25 kB / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7689, allocations: 0 / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004192/0.7693, allocations: 286.8 kB / 0.9615 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.863e-05/0.7693, allocations: 87.05 kB / 0.9616 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.7694, allocations: 2.062 kB / 0.9616 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.7695, allocations: 24.58 kB / 0.9616 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.7696, allocations: 25 kB / 0.9617 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.7697, allocations: 11.08 kB / 0.9617 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.263e-05/0.7697, allocations: 102.9 kB / 0.9618 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7697, allocations: 0.75 kB / 0.9618 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002453/0.77, allocations: 15.88 kB / 0.9618 GB, free: 2.547 MB / 0.7169 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.0001265/0.7701, allocations: 98.84 kB / 0.9619 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004606/0.7706, allocations: 242.1 kB / 0.9621 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7706, allocations: 0 / 0.9621 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.7708, allocations: 124.6 kB / 0.9622 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.7712, allocations: 10.62 kB / 0.9622 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005009/0.7717, allocations: 249.1 kB / 0.9625 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.7718, allocations: 0.6994 MB / 0.9632 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.7719, allocations: 14.42 kB / 0.9632 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.7719, allocations: 0 / 0.9632 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of Templates: time 0.002975/0.7749, allocations: 1.25 MB / 0.9644 GB, free: 0.6133 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches