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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.253/2.253, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 180.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009159/0.0009159, allocations: 106.1 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.682e-05/1.676e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2742, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.009/1.284, allocations: 150 MB / 1.352 GB, free: 18.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/1.284, allocations: 90.08 kB / 1.353 GB, free: 18.16 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005192/1.289, allocations: 1.543 MB / 1.354 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.052e-06/1.289, allocations: 0 / 1.354 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.061e-05/1.289, allocations: 3.844 kB / 1.354 GB, free: 33.78 MB / 0.8386 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.0005173/1.29, allocations: 437 kB / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/1.29, allocations: 11.62 kB / 1.354 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.579e-05/1.29, allocations: 7.719 kB / 1.354 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/1.29, allocations: 196 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/1.29, allocations: 4.562 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/1.29, allocations: 3.812 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001189/1.29, allocations: 31.12 kB / 1.355 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/1.29, allocations: 68.22 kB / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/1.29, allocations: 4 kB / 1.355 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/1.29, allocations: 7.875 kB / 1.355 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/1.29, allocations: 0 / 1.355 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/1.291, allocations: 317.8 kB / 1.355 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.064e-05/1.291, allocations: 45.47 kB / 1.355 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.175e-05/1.291, allocations: 28.92 kB / 1.355 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/1.291, allocations: 6.625 kB / 1.355 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/1.291, allocations: 84.83 kB / 1.355 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/1.291, allocations: 0 / 1.355 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002385/1.291, allocations: 98.2 kB / 1.355 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/1.292, allocations: 81.47 kB / 1.355 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.895e-05/1.292, allocations: 118.2 kB / 1.356 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/1.292, allocations: 29.52 kB / 1.356 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/1.292, allocations: 97.14 kB / 1.356 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/1.292, allocations: 20.27 kB / 1.356 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/1.292, allocations: 0 / 1.356 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001217/1.292, allocations: 324.2 kB / 1.356 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.137e-05/1.292, allocations: 27.72 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.171e-05/1.292, allocations: 31.67 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.434e-05/1.292, allocations: 21.14 kB / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.292, allocations: 0 / 1.356 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001669/1.292, allocations: 111.5 kB / 1.356 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/1.292, allocations: 62.89 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.292, allocations: 0 / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/1.292, allocations: 4.453 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/1.292, allocations: 18.78 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/1.292, allocations: 4.797 kB / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/1.293, allocations: 28.12 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/1.293, allocations: 8.281 kB / 1.356 GB, free: 31.98 MB / 0.8386 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.818e-05/1.293, allocations: 133 kB / 1.356 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/1.293, allocations: 8.406 kB / 1.356 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.183e-05/1.293, allocations: 17.41 kB / 1.356 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/1.293, allocations: 0 / 1.356 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.293, allocations: 4 kB / 1.356 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/1.293, allocations: 0.6562 kB / 1.356 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/1.293, allocations: 345 kB / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.293, allocations: 0 / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-05/1.293, allocations: 20.3 kB / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/1.293, allocations: 0 / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/1.293, allocations: 1.031 kB / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/1.293, allocations: 0 / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.293, allocations: 7.906 kB / 1.357 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/1.293, allocations: 199.5 kB / 1.357 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.819e-05/1.293, allocations: 85.66 kB / 1.357 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/1.293, allocations: 4.547 kB / 1.357 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/1.294, allocations: 16.97 kB / 1.357 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.294, allocations: 31.66 kB / 1.357 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/1.294, allocations: 1.266 kB / 1.357 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.358e-05/1.294, allocations: 98.94 kB / 1.357 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.294, allocations: 0 / 1.357 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002219/1.294, allocations: 15.47 kB / 1.357 GB, free: 31.23 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001245/1.294, allocations: 108.2 kB / 1.357 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00019/1.294, allocations: 177.3 kB / 1.357 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.294, allocations: 0 / 1.357 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.178e-05/1.294, allocations: 99.94 kB / 1.358 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/1.295, allocations: 6.969 kB / 1.358 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003257/1.295, allocations: 126.8 kB / 1.358 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/1.295, allocations: 0.6981 MB / 1.358 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.03e-05/1.295, allocations: 18.95 kB / 1.358 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/1.295, allocations: 8 kB / 1.358 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.295, allocations: 0 / 1.358 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of Templates: time 0.003251/1.299, allocations: 1.032 MB / 1.359 GB, free: 30.07 MB / 0.8386 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","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches