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") [: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 9.1.1-maint.9.1.x/package.mo): time 1.708/1.708, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009111/0.0009111, allocations: 180.4 kB / 487 MB, free: 5.395 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.076/1.076, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0008353/0.0008353, allocations: 91.02 kB / 0.9213 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.119e-06/5.129e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1637, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4528/0.6165, allocations: 149.9 MB / 1.352 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.6168, allocations: 91.25 kB / 1.352 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.004295/0.6211, allocations: 1.241 MB / 1.353 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.6211, allocations: 1.844 kB / 1.353 GB, free: 15.83 MB / 0.8073 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.0004313/0.6216, allocations: 444.6 kB / 1.353 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.6216, allocations: 9.281 kB / 1.353 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.6217, allocations: 12.81 kB / 1.353 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.6218, allocations: 194.8 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.6218, allocations: 1.75 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.6219, allocations: 4.094 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001163/0.622, allocations: 37.17 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.6221, allocations: 67.41 kB / 1.354 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.6221, allocations: 1.641 kB / 1.354 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.6221, allocations: 5.031 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6222, allocations: 1.062 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004737/0.6226, allocations: 322.9 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.32e-05/0.6227, allocations: 47.44 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.791e-05/0.6228, allocations: 38.12 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.6228, allocations: 1.094 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.894e-05/0.6229, allocations: 81.22 kB / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.6229, allocations: 0 / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.000179/0.6231, allocations: 78.98 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.6232, allocations: 79.55 kB / 1.354 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.394e-05/0.6232, allocations: 118.2 kB / 1.354 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.6232, allocations: 30.77 kB / 1.354 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.522e-05/0.6233, allocations: 90.22 kB / 1.355 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.6233, allocations: 24.25 kB / 1.355 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-06/0.6233, allocations: 0.9688 kB / 1.355 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.568e-05/0.6233, allocations: 319.1 kB / 1.355 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.405e-05/0.6234, allocations: 26.59 kB / 1.355 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.902e-05/0.6235, allocations: 32.95 kB / 1.355 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.327e-05/0.6235, allocations: 22.16 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6235, allocations: 1.125 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001506/0.6237, allocations: 98.62 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.6237, allocations: 4.688 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.6237, allocations: 0 / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.6237, allocations: 2.156 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.6238, allocations: 23.5 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.6239, allocations: 1.453 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.624, allocations: 27.38 kB / 1.355 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.624, allocations: 3.344 kB / 1.355 GB, free: 14.09 MB / 0.8073 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 5.654e-05/0.6241, allocations: 135.8 kB / 1.355 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.6241, allocations: 7.875 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.468e-05/0.6241, allocations: 15.39 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.6241, allocations: 1.406 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.6242, allocations: 7.844 kB / 1.355 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.6242, allocations: 4.766 kB / 1.355 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.6244, allocations: 318.5 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.6244, allocations: 0 / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.6245, allocations: 22.53 kB / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.6245, allocations: 1.547 kB / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.6245, allocations: 5.547 kB / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.6245, allocations: 1.406 kB / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6245, allocations: 0 / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001485/0.6247, allocations: 177.2 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.14e-05/0.6247, allocations: 87 kB / 1.356 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.6248, allocations: 3.891 kB / 1.356 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.6249, allocations: 24.09 kB / 1.356 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.692e-05/0.625, allocations: 20.09 kB / 1.356 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.625, allocations: 6.203 kB / 1.356 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.84e-05/0.6251, allocations: 104 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002248/0.6253, allocations: 24.08 kB / 1.356 GB, free: 13.34 MB / 0.8073 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.747e-05/0.6254, allocations: 110.7 kB / 1.356 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001638/0.6256, allocations: 118.1 kB / 1.356 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.6256, allocations: 0 / 1.356 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.209e-05/0.6257, allocations: 67.2 kB / 1.356 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.6259, allocations: 7.984 kB / 1.356 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003442/0.6262, allocations: 128.1 kB / 1.356 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.6264, allocations: 0.7069 MB / 1.357 GB, free: 28.37 MB / 0.823 GB Notification: Performance of SimCode: time 2.2e-07/0.6264, allocations: 0 / 1.357 GB, free: 28.37 MB / 0.823 GB Notification: Performance of Templates: time 0.003048/0.6295, allocations: 1.213 MB / 1.358 GB, free: 28.28 MB / 0.823 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