Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.178/1.178, allocations: 249.4 MB / 256.7 MB, free: 7.062 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009945/0.0009945, allocations: 181 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.013/1.013, allocations: 205.1 MB / 0.5667 GB, free: 15.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008188/0.0008187, allocations: 90.86 kB / 0.671 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.53e-06/5.541e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.5247, allocations: 133.5 MB / 1.015 GB, free: 5.23 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.525, allocations: 91.48 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004101/0.5291, allocations: 1.206 MB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.5291, allocations: 0 / 1.016 GB, free: 4.176 MB / 0.6355 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.0004873/0.5296, allocations: 443.5 kB / 1.017 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.5297, allocations: 12.03 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.5297, allocations: 12.44 kB / 1.017 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.5299, allocations: 198.5 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.5299, allocations: 3.938 kB / 1.017 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.5299, allocations: 4 kB / 1.017 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001056/0.5301, allocations: 34.8 kB / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.5302, allocations: 69.92 kB / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.5302, allocations: 0 / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.5302, allocations: 0 / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.5302, allocations: 0 / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.5307, allocations: 328.4 kB / 1.017 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.865e-05/0.5308, allocations: 44.77 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.552e-05/0.5309, allocations: 40.19 kB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.5309, allocations: 0 / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/0.531, allocations: 73.48 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.531, allocations: 7.938 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001767/0.5312, allocations: 81.69 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.5312, allocations: 85.09 kB / 1.018 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.247e-05/0.5313, allocations: 107.3 kB / 1.018 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.5313, allocations: 33.69 kB / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.5314, allocations: 91.73 kB / 1.018 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.5314, allocations: 15.73 kB / 1.018 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.5314, allocations: 4 kB / 1.018 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.635e-05/0.5315, allocations: 318.3 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.248e-05/0.5316, allocations: 30.73 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.482e-05/0.5316, allocations: 27.12 kB / 1.018 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.207e-05/0.5317, allocations: 18.92 kB / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5317, allocations: 3.938 kB / 1.018 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001689/0.5319, allocations: 103.4 kB / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.5319, allocations: 8 kB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.5319, allocations: 3.938 kB / 1.018 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.5319, allocations: 0 / 1.018 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.532, allocations: 23.98 kB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.5321, allocations: 3.938 kB / 1.018 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.5322, allocations: 23.98 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.5322, allocations: 3.984 kB / 1.018 GB, free: 1.902 MB / 0.6355 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 7.817e-05/0.5323, allocations: 137.3 kB / 1.018 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.5323, allocations: 7.906 kB / 1.019 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.484e-05/0.5324, allocations: 11.75 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.5324, allocations: 0 / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.5324, allocations: 0 / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.5324, allocations: 0 / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.5326, allocations: 329.3 kB / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5326, allocations: 0 / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.5327, allocations: 27.8 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.5328, allocations: 4 kB / 1.019 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.5328, allocations: 7.969 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5328, allocations: 0 / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.5328, allocations: 0 / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001629/0.533, allocations: 187.4 kB / 1.019 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.322e-05/0.533, allocations: 85.02 kB / 1.019 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.533, allocations: 0 / 1.019 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.5332, allocations: 23.98 kB / 1.019 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.348e-05/0.5333, allocations: 22.41 kB / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.5333, allocations: 7.984 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.582e-05/0.5334, allocations: 92.95 kB / 1.019 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002192/0.5336, allocations: 19.94 kB / 1.019 GB, free: 0.9297 MB / 0.6355 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 9.927e-05/0.5337, allocations: 111.1 kB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001715/0.5339, allocations: 119.3 kB / 1.02 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5339, allocations: 4 kB / 1.02 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-05/0.534, allocations: 63.14 kB / 1.02 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.5341, allocations: 7.984 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003335/0.5345, allocations: 141.5 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/0.5348, allocations: 0.7036 MB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/0.5348, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of Templates: time 0.002887/0.5377, allocations: 1.212 MB / 1.022 GB, free: 14.59 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches