Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.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.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer") translateModel(Buildings.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer") [: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.79/1.79, allocations: 387.2 MB / 394.5 MB, free: 13.73 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.0009863/0.0009863, allocations: 188.5 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.169/1.169, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.0008216/0.0008215, allocations: 103.1 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.849e-06/4.87e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1816, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.491/0.6727, allocations: 149.1 MB / 1.351 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.6729, allocations: 72.75 kB / 1.351 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002485/0.6754, allocations: 0.8254 MB / 1.352 GB, free: 15.92 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.6754, allocations: 1.094 kB / 1.352 GB, free: 15.92 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.0002623/0.6757, allocations: 348.3 kB / 1.352 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.6757, allocations: 8.438 kB / 1.352 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.901e-05/0.6757, allocations: 2.469 kB / 1.352 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.064e-05/0.6758, allocations: 175.8 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.6758, allocations: 1.062 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.6759, allocations: 5.781 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.36e-05/0.6759, allocations: 23.47 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.797e-05/0.676, allocations: 47.08 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.676, allocations: 5.406 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.676, allocations: 1.688 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.676, allocations: 1.281 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002963/0.6763, allocations: 275.8 kB / 1.353 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.019e-05/0.6764, allocations: 47.55 kB / 1.353 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.6765, allocations: 25.81 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.6765, allocations: 1.281 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.968e-05/0.6765, allocations: 64.67 kB / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.6765, allocations: 0 / 1.353 GB, free: 15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0001317/0.6767, allocations: 71.02 kB / 1.353 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.883e-05/0.6767, allocations: 60.81 kB / 1.353 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.453e-05/0.6768, allocations: 96.22 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.6768, allocations: 27.67 kB / 1.353 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.816e-05/0.6768, allocations: 90.52 kB / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.6768, allocations: 18.22 kB / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.6768, allocations: 0 / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.6769, allocations: 319 kB / 1.353 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.654e-05/0.6769, allocations: 16.25 kB / 1.353 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.53e-05/0.6769, allocations: 42.97 kB / 1.353 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.163e-05/0.677, allocations: 20.14 kB / 1.353 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.677, allocations: 3.906 kB / 1.353 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001067/0.6771, allocations: 80.64 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.6771, allocations: 7.469 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.6771, allocations: 2.188 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.6771, allocations: 6.5 kB / 1.353 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.371e-05/0.6772, allocations: 17.38 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.6772, allocations: 0.9688 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.6773, allocations: 15.25 kB / 1.354 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.6773, allocations: 6.438 kB / 1.354 GB, free: 14.27 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 4.146e-05/0.6773, allocations: 104.5 kB / 1.354 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.6774, allocations: 10.62 kB / 1.354 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.6774, allocations: 9.781 kB / 1.354 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.6774, allocations: 1.531 kB / 1.354 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.6774, allocations: 0 / 1.354 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.6774, allocations: 0.8438 kB / 1.354 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003012/0.6777, allocations: 330.1 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6777, allocations: 0.9375 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-05/0.6778, allocations: 3.922 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.6778, allocations: 4.906 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.6778, allocations: 1.219 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.6778, allocations: 1.906 kB / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6778, allocations: 0 / 1.354 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001016/0.6779, allocations: 169.2 kB / 1.354 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.542e-05/0.6779, allocations: 82.89 kB / 1.354 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.6779, allocations: 6.688 kB / 1.354 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.892e-05/0.678, allocations: 7.625 kB / 1.354 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.6781, allocations: 6.25 kB / 1.354 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.6781, allocations: 7.656 kB / 1.354 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.927e-05/0.6781, allocations: 87.67 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002086/0.6783, allocations: 14.28 kB / 1.354 GB, free: 13.54 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: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 6.003e-05/0.6784, allocations: 101.1 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.674e-05/0.6785, allocations: 47.53 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 9.22e-07/0.6785, allocations: 0 / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.6786, allocations: 31.17 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.6787, allocations: 7.578 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002825/0.679, allocations: 113 kB / 1.355 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.6791, allocations: 0.7021 MB / 1.355 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of SimCode: time 2.41e-07/0.6792, allocations: 0 / 1.355 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of Templates: time 0.002282/0.6814, allocations: 0.7064 MB / 1.356 GB, free: 12.61 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches