Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.296/1.296, allocations: 249.4 MB / 256.7 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001038, allocations: 177.3 kB / 316 MB, free: 3.531 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.473/1.473, allocations: 205.2 MB / 0.5667 GB, free: 15.68 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.001017/0.001017, allocations: 87.28 kB / 0.671 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.592e-06/6.612e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2071, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5991/0.8063, allocations: 132.6 MB / 1.014 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.8066, allocations: 73.05 kB / 1.014 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.009997/0.8166, allocations: 2.968 MB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.8166, allocations: 4 kB / 1.017 GB, free: 2.902 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008515/0.8175, allocations: 0.5328 MB / 1.018 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.8175, allocations: 12.03 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.212e-05/0.8176, allocations: 23.91 kB / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006041/0.8182, allocations: 285.3 kB / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.8183, allocations: 19.7 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.625e-05/0.8184, allocations: 27.98 kB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001905/0.8186, allocations: 80.2 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.8189, allocations: 233.6 kB / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.8189, allocations: 0 / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.819, allocations: 11.92 kB / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.819, allocations: 4 kB / 1.018 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.8194, allocations: 344.3 kB / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.8196, allocations: 218.8 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.8198, allocations: 114.7 kB / 1.019 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.8198, allocations: 0 / 1.019 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000314/0.8201, allocations: 256.4 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.8201, allocations: 0 / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=24): time 0.0004917/0.8206, allocations: 274.2 kB / 1.019 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.8207, allocations: 147.8 kB / 1.019 GB, free: 432 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.8208, allocations: 139.3 kB / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.76e-05/0.8209, allocations: 36.33 kB / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/0.821, allocations: 95.95 kB / 1.02 GB, free: 160 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.478e-05/0.821, allocations: 69.05 kB / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.8211, allocations: 8 kB / 1.02 GB, free: 96 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.8212, allocations: 325.8 kB / 1.02 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.8215, allocations: 162.3 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.8217, allocations: 206.4 kB / 1.02 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.8221, allocations: 145.3 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8221, allocations: 0 / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000726/0.8228, allocations: 434.5 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.8228, allocations: 4 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.8228, allocations: 0 / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.8229, allocations: 7.984 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.823, allocations: 19.31 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.823, allocations: 11.83 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.8234, allocations: 75.83 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/0.8235, allocations: 22.8 kB / 1.021 GB, free: 14.92 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.nexStaInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStoInd,$PRE.occSchWee.iPerSta,occSchWee.iPerSta,$PRE.occSchWee.iPerSto,occSchWee.iPerSto,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.nexStaInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStoInd,$PRE.occSchDay.iPerSta,occSchDay.iPerSta,$PRE.occSchDay.iPerSto,occSchDay.iPerSto,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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 0.000122/0.8236, allocations: 138.2 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/0.8236, allocations: 19.81 kB / 1.021 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.363e-05/0.8237, allocations: 16.17 kB / 1.021 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.8237, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.8237, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.8237, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.8239, allocations: 236.2 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.8239, allocations: 0 / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.824, allocations: 11.94 kB / 1.022 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/0.824, allocations: 11.91 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.824, allocations: 15.03 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.824, allocations: 0 / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8241, allocations: 4 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004295/0.8245, allocations: 354.5 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.872e-05/0.8246, allocations: 88.92 kB / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.595e-05/0.8246, allocations: 18.55 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.8248, allocations: 23.88 kB / 1.022 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.8249, allocations: 15.22 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.8249, allocations: 19.42 kB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.518e-05/0.825, allocations: 119.7 kB / 1.022 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003046/0.8253, allocations: 71.88 kB / 1.022 GB, free: 13.79 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc) * Number of discrete states: 14 (occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,occSchDay.occupied,occSchDay.tOcc,occSchDay.nexStaInd,occSchDay.iPerSta,occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,occSchWee.occupied,occSchWee.tOcc,occSchWee.nexStaInd,occSchWee.iPerSta) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0002112/0.8255, allocations: 153.1 kB / 1.022 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000578/0.8261, allocations: 450.8 kB / 1.023 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8261, allocations: 0 / 1.023 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.8263, allocations: 153.2 kB / 1.023 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.8264, allocations: 15.3 kB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005863/0.827, allocations: 294.7 kB / 1.023 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/0.8274, allocations: 0.7388 MB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.8274, allocations: 4 kB / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of Templates: time 0.005925/0.8334, allocations: 3.153 MB / 1.027 GB, free: 9.055 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches