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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001566/0.001566, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001661/0.001661, allocations: 192.6 kB / 16.25 MB, free: 6.637 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.2 MB / 0.6643 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8436/0.8451, allocations: 140.4 MB / 0.9491 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00276/0.848, allocations: 1.582 MB / 0.9506 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007367/0.8487, allocations: 445.8 kB / 0.9511 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.704e-05/0.8488, allocations: 1.094 kB / 0.9511 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.8489, allocations: 7.922 kB / 0.9511 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.958e-05/0.849, allocations: 18.3 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.8492, allocations: 20.2 kB / 0.9511 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.8494, allocations: 95.48 kB / 0.9512 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.8495, allocations: 30.31 kB / 0.9512 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.8496, allocations: 30.61 kB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.195e-05/0.8497, allocations: 45.55 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.8498, allocations: 7.031 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.789e-05/0.8498, allocations: 5.5 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.8498, allocations: 16.03 kB / 0.9513 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.541e-05/0.8499, allocations: 32.81 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.85, allocations: 70.28 kB / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.85, allocations: 0 / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8501, allocations: 0 / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.8501, allocations: 0 / 0.9514 GB, free: 7.289 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.0006742/0.8508, allocations: 459.1 kB / 0.9519 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.8508, allocations: 12.34 kB / 0.9519 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.8509, allocations: 10.06 kB / 0.9519 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.851, allocations: 184.3 kB / 0.9521 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.851, allocations: 1.781 kB / 0.9521 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.8511, allocations: 10.09 kB / 0.9521 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.8514, allocations: 93.81 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.8514, allocations: 5.312 kB / 0.9522 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.8514, allocations: 0 / 0.9522 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.8514, allocations: 5.375 kB / 0.9522 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.8517, allocations: 73.17 kB / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005243/0.8522, allocations: 333.5 kB / 0.9526 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.8525, allocations: 89.23 kB / 0.9527 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.8527, allocations: 52.12 kB / 0.9527 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.8527, allocations: 0 / 0.9527 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003066/0.853, allocations: 105.4 kB / 0.9528 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.853, allocations: 0 / 0.9528 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005813/0.8536, allocations: 211 kB / 0.953 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.8536, allocations: 83.77 kB / 0.9531 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.885e-05/0.8537, allocations: 129.8 kB / 0.9532 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.8538, allocations: 30.67 kB / 0.9532 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.344e-05/0.8538, allocations: 104.4 kB / 0.9533 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.8538, allocations: 14.34 kB / 0.9533 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.8539, allocations: 30.86 kB / 0.9534 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.8539, allocations: 321.1 kB / 0.9537 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.8541, allocations: 46.36 kB / 0.9537 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.8543, allocations: 57.27 kB / 0.9538 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.8545, allocations: 167.1 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.8545, allocations: 0 / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003935/0.8549, allocations: 210.3 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.855, allocations: 68.83 kB / 0.9542 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.855, allocations: 0 / 0.9542 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.855, allocations: 1.281 kB / 0.9542 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.8552, allocations: 18.48 kB / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.8552, allocations: 0 / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.8553, allocations: 18.2 kB / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.8553, allocations: 10.16 kB / 0.9543 GB, free: 4.715 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 9.307e-05/0.8554, allocations: 151.4 kB / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.8554, allocations: 4.438 kB / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.8555, allocations: 10.16 kB / 0.9544 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.8555, allocations: 5.438 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8555, allocations: 0 / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.8555, allocations: 1.5 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004622/0.856, allocations: 437.5 kB / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.856, allocations: 0 / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.139e-05/0.8561, allocations: 21.31 kB / 0.9549 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.8561, allocations: 0 / 0.9549 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.8561, allocations: 5.719 kB / 0.9549 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.8561, allocations: 5.375 kB / 0.9549 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.8561, allocations: 0 / 0.9549 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.8565, allocations: 276.5 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.8565, allocations: 87.36 kB / 0.9552 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.8566, allocations: 2.531 kB / 0.9552 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.8567, allocations: 23.59 kB / 0.9552 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.8568, allocations: 21.27 kB / 0.9553 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.8568, allocations: 2.531 kB / 0.9553 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.76e-05/0.8569, allocations: 107.3 kB / 0.9554 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8569, allocations: 0 / 0.9554 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002287/0.8571, allocations: 15.78 kB / 0.9554 GB, free: 3.676 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.000108/0.8572, allocations: 107.8 kB / 0.9555 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004247/0.8577, allocations: 228.9 kB / 0.9557 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8577, allocations: 0 / 0.9557 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.8579, allocations: 105.6 kB / 0.9558 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.8582, allocations: 10.91 kB / 0.9558 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000532/0.8587, allocations: 216.3 kB / 0.956 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.8589, allocations: 0.6959 MB / 0.9567 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.923e-05/0.8589, allocations: 17.73 kB / 0.9567 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.859, allocations: 16.25 kB / 0.9567 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.859, allocations: 0 / 0.9567 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of Templates: time 0.003969/0.863, allocations: 1.208 MB / 0.9579 GB, free: 1.797 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/jenkins/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