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.202/2.202, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001304/0.001304, allocations: 187.3 kB / 498.1 MB, free: 5.676 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.745/1.745, allocations: 223.2 MB / 0.7948 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 106.3 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003748, allocations: 6.844 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3172, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.5172, allocations: 150.7 MB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003813/0.5177, allocations: 91.94 kB / 1.37 GB, free: 11.25 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005065/0.5228, allocations: 1.562 MB / 1.372 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.476e-06/0.5228, allocations: 3.938 kB / 1.372 GB, free: 9.684 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.5228, allocations: 3.938 kB / 1.372 GB, free: 9.68 MB / 0.8698 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.0006017/0.5234, allocations: 442.5 kB / 1.372 GB, free: 9.188 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.5235, allocations: 8.031 kB / 1.372 GB, free: 9.18 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.5235, allocations: 11.91 kB / 1.372 GB, free: 9.168 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.5238, allocations: 190.9 kB / 1.372 GB, free: 8.941 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.5238, allocations: 7.938 kB / 1.372 GB, free: 8.934 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.5238, allocations: 4 kB / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.5241, allocations: 93.64 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.5241, allocations: 0 / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.5242, allocations: 11.98 kB / 1.372 GB, free: 8.82 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.5242, allocations: 4 kB / 1.372 GB, free: 8.816 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.5245, allocations: 83.94 kB / 1.373 GB, free: 8.734 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.525, allocations: 352.5 kB / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.5253, allocations: 94.52 kB / 1.373 GB, free: 8.238 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.5254, allocations: 4 kB / 1.373 GB, free: 8.234 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.5256, allocations: 115.5 kB / 1.373 GB, free: 8.109 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 3.296e-06/0.5256, allocations: 3.984 kB / 1.373 GB, free: 8.105 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0006285/0.5263, allocations: 235.4 kB / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.5263, allocations: 81.11 kB / 1.373 GB, free: 7.766 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.5265, allocations: 121.2 kB / 1.373 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.5265, allocations: 25.7 kB / 1.374 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.648e-05/0.5265, allocations: 92.14 kB / 1.374 GB, free: 7.512 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.5266, allocations: 27.64 kB / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-06/0.5266, allocations: 0 / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.5267, allocations: 322.8 kB / 1.374 GB, free: 7.16 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.5269, allocations: 59.89 kB / 1.374 GB, free: 7.102 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.527, allocations: 59.95 kB / 1.374 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.5272, allocations: 103.5 kB / 1.374 GB, free: 6.93 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.5272, allocations: 0 / 1.374 GB, free: 6.93 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004272/0.5277, allocations: 228.9 kB / 1.374 GB, free: 6.688 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.125e-05/0.5277, allocations: 60.5 kB / 1.374 GB, free: 6.617 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.5277, allocations: 4 kB / 1.374 GB, free: 6.613 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.5278, allocations: 0 / 1.374 GB, free: 6.613 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.5279, allocations: 23.94 kB / 1.374 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.5279, allocations: 4.062 kB / 1.374 GB, free: 6.586 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.5281, allocations: 27.97 kB / 1.374 GB, free: 6.559 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.5281, allocations: 8 kB / 1.374 GB, free: 6.551 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.5282, allocations: 139.5 kB / 1.375 GB, free: 6.398 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.5282, allocations: 7.906 kB / 1.375 GB, free: 6.391 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.5283, allocations: 16.7 kB / 1.375 GB, free: 6.371 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5283, allocations: 7.875 kB / 1.375 GB, free: 6.363 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5283, allocations: 7.953 kB / 1.375 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.5283, allocations: 0 / 1.375 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005841/0.5289, allocations: 440.2 kB / 1.375 GB, free: 5.863 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5289, allocations: 4 kB / 1.375 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.719e-05/0.529, allocations: 15.98 kB / 1.375 GB, free: 5.844 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.529, allocations: 4 kB / 1.375 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.529, allocations: 4 kB / 1.375 GB, free: 5.836 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.529, allocations: 3.953 kB / 1.375 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.529, allocations: 0 / 1.375 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004333/0.5295, allocations: 285 kB / 1.375 GB, free: 5.531 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.5295, allocations: 85.02 kB / 1.375 GB, free: 5.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.5296, allocations: 7.984 kB / 1.375 GB, free: 5.422 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.5297, allocations: 23.98 kB / 1.375 GB, free: 5.398 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5299, allocations: 23.92 kB / 1.376 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.5299, allocations: 4 kB / 1.376 GB, free: 5.371 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 8.6e-05/0.53, allocations: 102.1 kB / 1.376 GB, free: 5.273 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.53, allocations: 0 / 1.376 GB, free: 5.273 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002266/0.5302, allocations: 19.98 kB / 1.376 GB, free: 5.254 MB / 0.8698 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 (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.0001416/0.5304, allocations: 107 kB / 1.376 GB, free: 5.141 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004517/0.5308, allocations: 242.7 kB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5308, allocations: 0 / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.531, allocations: 119.4 kB / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.5312, allocations: 11.94 kB / 1.376 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004973/0.5318, allocations: 228.9 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.532, allocations: 0.6965 MB / 1.377 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.531e-05/0.5321, allocations: 11.77 kB / 1.377 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.5321, allocations: 15.44 kB / 1.377 GB, free: 3.742 MB / 0.8698 GB Notification: Performance of SimCode: time 2.21e-07/0.5321, allocations: 0 / 1.377 GB, free: 3.742 MB / 0.8698 GB Notification: Performance of Templates: time 0.003431/0.5356, allocations: 1.093 MB / 1.378 GB, free: 2.664 MB / 0.8698 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