Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") [: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.186/1.186, allocations: 249.4 MB / 256.7 MB, free: 15.77 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 191.9 kB / 316 MB, free: 7.148 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.198/1.198, allocations: 205.1 MB / 0.5667 GB, free: 23.57 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.0007524/0.0007524, allocations: 94.56 kB / 0.671 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 6.151e-06/6.171e-06, allocations: 0 / 0.7807 GB, free: 280 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3215, allocations: 106.3 MB / 0.8845 GB, free: 76.16 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4505, allocations: 132.9 MB / 1.014 GB, free: 7.059 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4507, allocations: 71.95 kB / 1.014 GB, free: 6.988 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.008504/0.4592, allocations: 3.152 MB / 1.017 GB, free: 3.828 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.366e-05/0.4593, allocations: 4 kB / 1.017 GB, free: 3.824 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005351/0.4598, allocations: 450.3 kB / 1.018 GB, free: 3.34 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.4598, allocations: 11.97 kB / 1.018 GB, free: 3.328 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.776e-05/0.4599, allocations: 19.81 kB / 1.018 GB, free: 3.309 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.4602, allocations: 223.2 kB / 1.018 GB, free: 3.051 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.4602, allocations: 4 kB / 1.018 GB, free: 3.047 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.4602, allocations: 12 kB / 1.018 GB, free: 3.035 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.894e-05/0.4603, allocations: 43.84 kB / 1.018 GB, free: 2.992 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.4605, allocations: 111.6 kB / 1.018 GB, free: 2.863 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.4605, allocations: 0 / 1.018 GB, free: 2.863 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.4605, allocations: 0 / 1.018 GB, free: 2.863 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4605, allocations: 8 kB / 1.018 GB, free: 2.855 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008082/0.4614, allocations: 0.7163 MB / 1.019 GB, free: 2.086 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 6.097e-05/0.4614, allocations: 34.56 kB / 1.019 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.547e-05/0.4615, allocations: 24.86 kB / 1.019 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.4615, allocations: 0 / 1.019 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/0.4616, allocations: 103.1 kB / 1.019 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 1.042e-06/0.4616, allocations: 0 / 1.019 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.0002025/0.4618, allocations: 97.42 kB / 1.019 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.4619, allocations: 132.6 kB / 1.019 GB, free: 1.629 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.462, allocations: 161.3 kB / 1.02 GB, free: 1.465 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.462, allocations: 29.7 kB / 1.02 GB, free: 1.43 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.4621, allocations: 119.9 kB / 1.02 GB, free: 1.309 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.4621, allocations: 31.56 kB / 1.02 GB, free: 1.277 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.4621, allocations: 0 / 1.02 GB, free: 1.277 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.4623, allocations: 334.7 kB / 1.02 GB, free: 0.9414 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.566e-05/0.4623, allocations: 20.38 kB / 1.02 GB, free: 0.918 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.874e-05/0.4624, allocations: 135.4 kB / 1.02 GB, free: 0.7383 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.992e-05/0.4625, allocations: 39.98 kB / 1.02 GB, free: 0.6992 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4625, allocations: 0 / 1.02 GB, free: 0.6992 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002154/0.4627, allocations: 149.6 kB / 1.02 GB, free: 0.5469 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.4627, allocations: 12.05 kB / 1.02 GB, free: 0.5352 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4627, allocations: 4 kB / 1.02 GB, free: 0.5312 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.4627, allocations: 4 kB / 1.02 GB, free: 0.5273 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.4629, allocations: 39.92 kB / 1.02 GB, free: 500 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.4629, allocations: 4 kB / 1.02 GB, free: 496 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.4631, allocations: 27.89 kB / 1.02 GB, free: 468 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.4631, allocations: 12 kB / 1.02 GB, free: 456 kB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.43e-05/0.4632, allocations: 119 kB / 1.021 GB, free: 332 kB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.4632, allocations: 23.72 kB / 1.021 GB, free: 308 kB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.4632, allocations: 13.41 kB / 1.021 GB, free: 296 kB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4632, allocations: 0 / 1.021 GB, free: 296 kB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.4632, allocations: 4 kB / 1.021 GB, free: 292 kB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.381e-06/0.4633, allocations: 7.984 kB / 1.021 GB, free: 284 kB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005686/0.4638, allocations: 466.1 kB / 1.021 GB, free: 15.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4638, allocations: 4 kB / 1.021 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.464, allocations: 19.98 kB / 1.021 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.464, allocations: 4 kB / 1.021 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.464, allocations: 3.984 kB / 1.021 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.464, allocations: 4 kB / 1.021 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.464, allocations: 3.906 kB / 1.021 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002689/0.4643, allocations: 349.3 kB / 1.021 GB, free: 15.36 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.4643, allocations: 89.16 kB / 1.022 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.4644, allocations: 4 kB / 1.022 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.4646, allocations: 20.11 kB / 1.022 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.4646, allocations: 19.97 kB / 1.022 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.4646, allocations: 7.984 kB / 1.022 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.271e-05/0.4647, allocations: 124.3 kB / 1.022 GB, free: 15.08 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003027/0.465, allocations: 31.84 kB / 1.022 GB, free: 15.05 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001249/0.4652, allocations: 112.3 kB / 1.022 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000144/0.4653, allocations: 71.88 kB / 1.022 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4653, allocations: 0 / 1.022 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 6.855e-05/0.4654, allocations: 40.03 kB / 1.022 GB, free: 14.82 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.4658, allocations: 49.2 kB / 1.022 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004212/0.4662, allocations: 243.8 kB / 1.022 GB, free: 14.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.4665, allocations: 0.7432 MB / 1.023 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of SimCode: time 2.5e-07/0.4665, allocations: 4 kB / 1.023 GB, free: 13.72 MB / 0.6823 GB Notification: Performance of Templates: time 0.003954/0.4705, allocations: 1.765 MB / 1.025 GB, free: 11.98 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches