Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.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.Tutorial.SpaceCooling.System1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1") translateModel(Buildings.Examples.Tutorial.SpaceCooling.System1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1") [: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.199/1.199, allocations: 249.4 MB / 256.7 MB, free: 6.957 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.0009555/0.0009555, allocations: 169.3 kB / 316 MB, free: 3.539 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.024/1.024, allocations: 205.2 MB / 0.5667 GB, free: 15.61 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.000805/0.000805, allocations: 81.78 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.38e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1412, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.132/3.273, allocations: 2.187 GB / 3.072 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001707/3.273, allocations: 82.2 kB / 3.072 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.2668/3.54, allocations: 161.5 MB / 3.229 GB, free: 19.21 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.129e-05/3.54, allocations: 12 kB / 3.229 GB, free: 19.2 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006673/3.541, allocations: 0.6265 MB / 3.23 GB, free: 18.53 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/3.541, allocations: 8.031 kB / 3.23 GB, free: 18.52 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008691/3.542, allocations: 143.4 kB / 3.23 GB, free: 18.38 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005221/3.542, allocations: 419.1 kB / 3.23 GB, free: 17.93 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/3.542, allocations: 8 kB / 3.23 GB, free: 17.93 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/3.542, allocations: 16 kB / 3.231 GB, free: 17.91 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002735/3.542, allocations: 177 kB / 3.231 GB, free: 17.73 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/3.543, allocations: 245.7 kB / 3.231 GB, free: 17.48 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/3.543, allocations: 0 / 3.231 GB, free: 17.48 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/3.543, allocations: 0 / 3.231 GB, free: 17.48 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/3.543, allocations: 16.41 kB / 3.231 GB, free: 17.47 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/3.544, allocations: 1.257 MB / 3.232 GB, free: 16.09 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003837/3.544, allocations: 195 kB / 3.232 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.616e-05/3.545, allocations: 76.8 kB / 3.232 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/3.545, allocations: 7.906 kB / 3.232 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.595e-05/3.545, allocations: 30.56 kB / 3.232 GB, free: 15.77 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=19): time 1.243e-06/3.545, allocations: 0 / 3.232 GB, free: 15.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.0005531/3.545, allocations: 226.4 kB / 3.233 GB, free: 15.54 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.283e-05/3.545, allocations: 55.41 kB / 3.233 GB, free: 15.47 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/3.545, allocations: 247.5 kB / 3.233 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/3.545, allocations: 25.7 kB / 3.233 GB, free: 15.18 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.555e-05/3.545, allocations: 160.1 kB / 3.233 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/3.546, allocations: 74.88 kB / 3.233 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/3.546, allocations: 0 / 3.233 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.647e-05/3.546, allocations: 338.8 kB / 3.234 GB, free: 14.61 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.721e-05/3.546, allocations: 55.94 kB / 3.234 GB, free: 14.55 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.859e-05/3.546, allocations: 122.7 kB / 3.234 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.425e-05/3.546, allocations: 71.97 kB / 3.234 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/3.546, allocations: 4.031 kB / 3.234 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002514/3.546, allocations: 218.8 kB / 3.234 GB, free: 14.12 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/3.546, allocations: 4 kB / 3.234 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/3.546, allocations: 4 kB / 3.234 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/3.546, allocations: 3.938 kB / 3.234 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/3.546, allocations: 47.92 kB / 3.234 GB, free: 14.06 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/3.546, allocations: 4 kB / 3.234 GB, free: 14.05 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/3.547, allocations: 23.94 kB / 3.234 GB, free: 14.03 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/3.547, allocations: 4 kB / 3.234 GB, free: 14.03 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.186e-05/3.547, allocations: 112.9 kB / 3.234 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.232e-05/3.547, allocations: 31.62 kB / 3.234 GB, free: 13.88 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.232e-05/3.547, allocations: 34.08 kB / 3.234 GB, free: 13.84 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/3.547, allocations: 0 / 3.234 GB, free: 13.84 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/3.547, allocations: 4 kB / 3.234 GB, free: 13.84 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/3.547, allocations: 4 kB / 3.234 GB, free: 13.84 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/3.547, allocations: 361.8 kB / 3.235 GB, free: 13.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/3.547, allocations: 0 / 3.235 GB, free: 13.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/3.547, allocations: 35.97 kB / 3.235 GB, free: 13.41 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/3.548, allocations: 44.77 kB / 3.235 GB, free: 13.36 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/3.548, allocations: 8 kB / 3.235 GB, free: 13.36 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007846/3.548, allocations: 1.365 MB / 3.236 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/3.548, allocations: 0 / 3.236 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004048/3.549, allocations: 399.4 kB / 3.236 GB, free: 11.47 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/3.549, allocations: 132.7 kB / 3.237 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/3.549, allocations: 3.938 kB / 3.237 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/3.549, allocations: 15.89 kB / 3.237 GB, free: 11.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/3.549, allocations: 7.984 kB / 3.237 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/3.549, allocations: 15.94 kB / 3.237 GB, free: 11.28 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001232/3.549, allocations: 191.1 kB / 3.237 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000448/3.55, allocations: 151.7 kB / 3.237 GB, free: 10.94 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006416/3.551, allocations: 0.8183 MB / 3.238 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002103/3.551, allocations: 148 kB / 3.238 GB, free: 9.977 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/3.551, allocations: 384 / 3.238 GB, free: 9.977 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/3.551, allocations: 181.8 kB / 3.238 GB, free: 9.789 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007321/3.552, allocations: 169.8 kB / 3.238 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/3.553, allocations: 0.5506 MB / 3.239 GB, free: 9.047 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/3.553, allocations: 0.838 MB / 3.24 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of SimCode: time 3.21e-07/3.553, allocations: 0 / 3.24 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of Templates: time 0.2875/3.84, allocations: 9.612 MB / 3.249 GB, free: 203 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.sim & ./Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_Tutorial_SpaceCooling_System1.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches