Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [: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.762/1.762, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009324/0.0009324, allocations: 181.3 kB / 487 MB, free: 5.34 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.153/1.153, allocations: 221.3 MB / 0.7819 GB, free: 1.324 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.0009272/0.0009272, allocations: 99.36 kB / 0.9213 GB, free: 2.555 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.149e-06/5.17e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1742, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4912/0.6655, allocations: 148.9 MB / 1.351 GB, free: 16.15 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.6657, allocations: 68.7 kB / 1.351 GB, free: 16.15 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.009931/0.6756, allocations: 3.612 MB / 1.354 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.6756, allocations: 1.719 kB / 1.354 GB, free: 15.93 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003265/0.676, allocations: 426.5 kB / 1.355 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.676, allocations: 8.375 kB / 1.355 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.6761, allocations: 17.11 kB / 1.355 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.6763, allocations: 217.3 kB / 1.355 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.6763, allocations: 0.9688 kB / 1.355 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.6764, allocations: 9.375 kB / 1.355 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001028/0.6765, allocations: 41.98 kB / 1.355 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.6766, allocations: 82.48 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.6766, allocations: 4.75 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6766, allocations: 4.656 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.6766, allocations: 1 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.6768, allocations: 208.1 kB / 1.355 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.687e-05/0.6769, allocations: 87.38 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.391e-05/0.677, allocations: 56.02 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.677, allocations: 4.781 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.6771, allocations: 111.2 kB / 1.355 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.6772, allocations: 0 / 1.355 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0002883/0.6774, allocations: 140.3 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.6775, allocations: 86.23 kB / 1.356 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.773e-05/0.6776, allocations: 142.6 kB / 1.356 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.6776, allocations: 30.25 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.6776, allocations: 91.64 kB / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.6777, allocations: 37.77 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.6777, allocations: 0 / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.147e-05/0.6777, allocations: 323.4 kB / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.6778, allocations: 45.47 kB / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.678, allocations: 213.2 kB / 1.356 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.6781, allocations: 73.98 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.6781, allocations: 1.156 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002516/0.6784, allocations: 168.6 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.298e-06/0.6784, allocations: 9.281 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.6784, allocations: 5.859 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.6784, allocations: 1.312 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.051e-05/0.6785, allocations: 12.27 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.6785, allocations: 5.5 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.6788, allocations: 76.34 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.6788, allocations: 13.97 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.896e-05/0.6789, allocations: 109.6 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.6789, allocations: 12.47 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.6789, allocations: 12.84 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.6789, allocations: 1.719 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.6789, allocations: 0.9688 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.6789, allocations: 2.531 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.577e-05/0.679, allocations: 168.5 kB / 1.357 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.679, allocations: 0.7812 kB / 1.357 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.373e-05/0.6791, allocations: 14.72 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.6791, allocations: 1.5 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.6791, allocations: 3.812 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6791, allocations: 1.125 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.6791, allocations: 3.938 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002063/0.6793, allocations: 173.6 kB / 1.357 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.6794, allocations: 92.39 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.6794, allocations: 3.203 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.531e-05/0.6794, allocations: 3.812 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.796e-05/0.6795, allocations: 8.953 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.6795, allocations: 4.25 kB / 1.357 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.838e-05/0.6795, allocations: 113.8 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002777/0.6798, allocations: 83.16 kB / 1.358 GB, free: 13.43 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0002192/0.68, allocations: 177.4 kB / 1.358 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002136/0.6803, allocations: 160.5 kB / 1.358 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.6803, allocations: 0 / 1.358 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.249e-05/0.6803, allocations: 44.53 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001023/0.6804, allocations: 6.438 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002878/0.6807, allocations: 155 kB / 1.358 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.6809, allocations: 0.7248 MB / 1.359 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of SimCode: time 2.51e-07/0.6809, allocations: 0 / 1.359 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of Templates: time 0.004772/0.6857, allocations: 2.395 MB / 1.361 GB, free: 12.21 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches