Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.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.Controls.Continuous.Examples.OffTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|offTim1.u|offTim1.y|offTim2.u|offTim2.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.734/1.734, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0008627/0.0008627, allocations: 169.3 kB / 490.8 MB, free: 1.98 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.065/1.065, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0008258/0.0008258, allocations: 94.78 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.539e-06/4.559e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1673, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.6261, allocations: 149.9 MB / 1.358 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.6263, allocations: 72.41 kB / 1.358 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.0025/0.6288, allocations: 0.8228 MB / 1.359 GB, free: 17.39 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.6288, allocations: 1.281 kB / 1.359 GB, free: 17.39 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.0003114/0.6291, allocations: 346.6 kB / 1.359 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.6292, allocations: 10.08 kB / 1.359 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.6292, allocations: 3 kB / 1.359 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.827e-05/0.6293, allocations: 178.5 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.6293, allocations: 1.969 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.6293, allocations: 4.016 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.594e-05/0.6294, allocations: 17.66 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.968e-05/0.6295, allocations: 54.25 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.6295, allocations: 0 / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.6295, allocations: 0.9062 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.6295, allocations: 1.547 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003303/0.6299, allocations: 276.2 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.851e-05/0.63, allocations: 54.95 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.53e-05/0.63, allocations: 23.16 kB / 1.36 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.63, allocations: 1.219 kB / 1.36 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.597e-05/0.6301, allocations: 68.17 kB / 1.36 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.6301, allocations: 1.062 kB / 1.36 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.000134/0.6302, allocations: 66.3 kB / 1.36 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.873e-05/0.6303, allocations: 58.17 kB / 1.36 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.306e-05/0.6303, allocations: 97.64 kB / 1.36 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.6303, allocations: 25.7 kB / 1.36 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.73e-05/0.6304, allocations: 91.06 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.6304, allocations: 19.66 kB / 1.36 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-06/0.6304, allocations: 0 / 1.36 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.479e-05/0.6305, allocations: 322 kB / 1.36 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.541e-05/0.6305, allocations: 13.22 kB / 1.36 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.633e-05/0.6306, allocations: 39.81 kB / 1.36 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.331e-05/0.6306, allocations: 20.23 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.6306, allocations: 0 / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001054/0.6307, allocations: 88.62 kB / 1.361 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/0.6307, allocations: 9.906 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.6307, allocations: 0.9688 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.6307, allocations: 1.344 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.016e-05/0.6308, allocations: 17.78 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.6308, allocations: 1.156 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.451e-05/0.6309, allocations: 17.11 kB / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.6309, allocations: 6.781 kB / 1.361 GB, free: 31.74 MB / 0.8386 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 5.324e-05/0.631, allocations: 109.5 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.631, allocations: 6.531 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.497e-05/0.631, allocations: 7.438 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.631, allocations: 1.953 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.631, allocations: 1.531 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.631, allocations: 0.5625 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.6313, allocations: 325.2 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6313, allocations: 5.438 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.398e-05/0.6313, allocations: 3.766 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.6314, allocations: 1.281 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.6314, allocations: 4.609 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.6314, allocations: 3 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6314, allocations: 0.6094 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001046/0.6315, allocations: 171 kB / 1.361 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.6315, allocations: 80.7 kB / 1.361 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.6315, allocations: 5.109 kB / 1.361 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/0.6316, allocations: 11.17 kB / 1.361 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.6317, allocations: 13.11 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.6317, allocations: 1.312 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.894e-05/0.6317, allocations: 86.34 kB / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002013/0.6319, allocations: 11.91 kB / 1.361 GB, free: 31.02 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: 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 7.257e-05/0.632, allocations: 95.66 kB / 1.362 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.694e-05/0.6321, allocations: 46.06 kB / 1.362 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.6321, allocations: 0 / 1.362 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.206e-05/0.6321, allocations: 26.58 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.6323, allocations: 11.78 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002755/0.6326, allocations: 110.1 kB / 1.362 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.6328, allocations: 0.6996 MB / 1.362 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of SimCode: time 7.62e-07/0.6328, allocations: 4 kB / 1.362 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.002199/0.635, allocations: 0.7158 MB / 1.363 GB, free: 30.07 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches