Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.685/1.685, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0008997/0.0008996, allocations: 180.2 kB / 490.8 MB, free: 1.926 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.047/1.047, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.0008252/0.0008252, allocations: 100.7 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.45e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1644, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.6096, allocations: 150.7 MB / 1.359 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.6099, allocations: 87.48 kB / 1.359 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.003988/0.6139, allocations: 1.253 MB / 1.36 GB, free: 16.99 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.6139, allocations: 1.438 kB / 1.36 GB, free: 16.99 MB / 0.823 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.0004595/0.6144, allocations: 438.6 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.6144, allocations: 13.3 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.6145, allocations: 12.28 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.6146, allocations: 186.6 kB / 1.361 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.6146, allocations: 5.438 kB / 1.361 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.6146, allocations: 7.062 kB / 1.361 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.929e-05/0.6148, allocations: 32.55 kB / 1.361 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.6149, allocations: 72.92 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-06/0.6149, allocations: 0 / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.6149, allocations: 1.984 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.6149, allocations: 1.125 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004508/0.6154, allocations: 324.1 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.788e-05/0.6155, allocations: 55.81 kB / 1.361 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.6155, allocations: 34.83 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.6155, allocations: 2.188 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.471e-05/0.6156, allocations: 74.88 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.6156, allocations: 0 / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001681/0.6158, allocations: 77.42 kB / 1.361 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.244e-05/0.6158, allocations: 81.22 kB / 1.361 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.029e-05/0.6159, allocations: 114.2 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.6159, allocations: 27.69 kB / 1.362 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.483e-05/0.616, allocations: 92.94 kB / 1.362 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.616, allocations: 28.17 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/0.616, allocations: 0.9688 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.554e-05/0.6161, allocations: 324.1 kB / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.024e-05/0.6161, allocations: 29.88 kB / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.267e-05/0.6162, allocations: 27.73 kB / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.037e-05/0.6162, allocations: 18.53 kB / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.6162, allocations: 0 / 1.362 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001346/0.6164, allocations: 100.1 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.6164, allocations: 5.156 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.6164, allocations: 4.25 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.6164, allocations: 0 / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.6165, allocations: 23.73 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.6166, allocations: 5.844 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.6167, allocations: 27.72 kB / 1.362 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.6167, allocations: 3.719 kB / 1.362 GB, free: 31.25 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 6.661e-05/0.6168, allocations: 131.5 kB / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.6168, allocations: 13.12 kB / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.277e-05/0.6168, allocations: 7.688 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.6168, allocations: 1.656 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.6168, allocations: 3.938 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.6168, allocations: 2.172 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.6171, allocations: 324.8 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6171, allocations: 1.922 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.537e-05/0.6172, allocations: 17.69 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.6172, allocations: 0 / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.6172, allocations: 2.109 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.6172, allocations: 5.812 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.6172, allocations: 0 / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001368/0.6173, allocations: 185 kB / 1.363 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.6174, allocations: 91.41 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.6174, allocations: 3.172 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.6176, allocations: 23.23 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.02e-05/0.6176, allocations: 22.59 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.6177, allocations: 4.297 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.65e-05/0.6177, allocations: 102.8 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002059/0.6179, allocations: 15.44 kB / 1.363 GB, free: 30.49 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 9.406e-05/0.618, allocations: 104.6 kB / 1.363 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001528/0.6182, allocations: 118.7 kB / 1.363 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.6182, allocations: 4 kB / 1.363 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.279e-05/0.6183, allocations: 71.34 kB / 1.363 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.6184, allocations: 9.891 kB / 1.363 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003033/0.6187, allocations: 126 kB / 1.364 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.619, allocations: 0.7068 MB / 1.364 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/0.619, allocations: 4 kB / 1.364 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of Templates: time 0.002785/0.6218, allocations: 1.214 MB / 1.365 GB, free: 29.43 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches