Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.713/1.713, 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.0008909/0.0008909, allocations: 177.3 kB / 490.8 MB, free: 1.941 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.061/1.061, allocations: 221.4 MB / 0.7863 GB, free: 13.7 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.0008173/0.0008173, allocations: 101 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.779e-06/4.809e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1661, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4521/0.6183, allocations: 149.6 MB / 1.358 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001708/0.6185, allocations: 69.45 kB / 1.358 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.009584/0.6281, allocations: 3.617 MB / 1.361 GB, free: 17.02 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.742e-06/0.6281, allocations: 6.062 kB / 1.361 GB, free: 17.02 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003416/0.6284, allocations: 422.6 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.6285, allocations: 8.906 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.6285, allocations: 16.25 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.6288, allocations: 217.5 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.6288, allocations: 2.625 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.6288, allocations: 8.562 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.627e-05/0.6289, allocations: 38.48 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.629, allocations: 93.86 kB / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.6291, allocations: 4 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.6291, allocations: 1.188 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.6291, allocations: 0.8438 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.6292, allocations: 208.7 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.778e-05/0.6293, allocations: 78.94 kB / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.717e-05/0.6294, allocations: 65.41 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.6294, allocations: 1.094 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.6295, allocations: 108.6 kB / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.6295, allocations: 0 / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002696/0.6298, allocations: 136.6 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.6299, allocations: 83.45 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.703e-05/0.6299, allocations: 142.9 kB / 1.363 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.63, allocations: 29.45 kB / 1.363 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.856e-05/0.6301, allocations: 95.28 kB / 1.363 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.6301, allocations: 35.62 kB / 1.363 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.6301, allocations: 0.9062 kB / 1.363 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.864e-05/0.6302, allocations: 321.7 kB / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.229e-05/0.6303, allocations: 44.33 kB / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.6304, allocations: 211.8 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.6305, allocations: 75.83 kB / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6305, allocations: 0 / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000232/0.6308, allocations: 162.7 kB / 1.364 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.065e-06/0.6308, allocations: 8.5 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.6308, allocations: 5.906 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.6308, allocations: 1.094 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.835e-05/0.6309, allocations: 19.73 kB / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.6309, allocations: 10.14 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.6312, allocations: 76.41 kB / 1.364 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.6312, allocations: 9.719 kB / 1.364 GB, free: 31.1 MB / 0.8386 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 6.799e-05/0.6313, allocations: 114.1 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.6313, allocations: 12.16 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.633e-05/0.6313, allocations: 12.97 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.6313, allocations: 6.641 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.6313, allocations: 0 / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.6313, allocations: 1.094 kB / 1.364 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.075e-05/0.6314, allocations: 169.8 kB / 1.364 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.6314, allocations: 6.688 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.218e-05/0.6315, allocations: 10.22 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6315, allocations: 0 / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.6315, allocations: 3.516 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6315, allocations: 0.9375 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.6315, allocations: 1.344 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001924/0.6317, allocations: 176.1 kB / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.6317, allocations: 93.94 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.6317, allocations: 1.25 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.251e-05/0.6318, allocations: 4.375 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.6318, allocations: 5 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.6318, allocations: 7.562 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.741e-05/0.6319, allocations: 110.8 kB / 1.365 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002521/0.6322, allocations: 83.59 kB / 1.365 GB, free: 30.52 MB / 0.8386 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.0001976/0.6324, allocations: 180.6 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001853/0.6326, allocations: 158.9 kB / 1.365 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.6326, allocations: 0 / 1.365 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.6326, allocations: 39.95 kB / 1.365 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.235e-05/0.6327, allocations: 11.73 kB / 1.365 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002552/0.633, allocations: 158.6 kB / 1.365 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.6332, allocations: 0.726 MB / 1.366 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.6332, allocations: 0 / 1.366 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.004147/0.6374, allocations: 2.382 MB / 1.368 GB, free: 29.3 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches