Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7487/0.7487, allocations: 141.8 MB / 149.1 MB, free: 11.49 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 183.5 kB / 182 MB, free: 8.242 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.3 MB / 436 MB, free: 432 kB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009361, allocations: 96.77 kB / 0.507 GB, free: 9.445 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001949/0.001949, allocations: 290.3 kB / 0.5885 GB, free: 6.266 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4495/0.4515, allocations: 89.62 MB / 0.676 GB, free: 167.3 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.6086, allocations: 82.79 MB / 0.7568 GB, free: 116.2 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1194/0.728, allocations: 108.2 MB / 0.8625 GB, free: 7.793 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.7283, allocations: 74.06 kB / 0.8626 GB, free: 7.723 MB / 0.5419 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.01054/0.7388, allocations: 4.026 MB / 0.8665 GB, free: 3.645 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.7389, allocations: 9 kB / 0.8665 GB, free: 3.637 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/0.739, allocations: 15.81 kB / 0.8666 GB, free: 3.621 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.7393, allocations: 222.8 kB / 0.8668 GB, free: 3.363 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.7394, allocations: 0 / 0.8668 GB, free: 3.363 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.7394, allocations: 8 kB / 0.8668 GB, free: 3.355 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001162/0.7395, allocations: 39.97 kB / 0.8668 GB, free: 3.316 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.7396, allocations: 83.38 kB / 0.8669 GB, free: 3.223 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.7397, allocations: 0 / 0.8669 GB, free: 3.223 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.7397, allocations: 0 / 0.8669 GB, free: 3.223 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.7397, allocations: 7.906 kB / 0.8669 GB, free: 3.215 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002034/0.7399, allocations: 215 kB / 0.8671 GB, free: 2.965 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.647e-05/0.74, allocations: 89.17 kB / 0.8672 GB, free: 2.859 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.522e-05/0.7401, allocations: 57.8 kB / 0.8672 GB, free: 2.797 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.7401, allocations: 0 / 0.8672 GB, free: 2.797 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001057/0.7402, allocations: 116.9 kB / 0.8674 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.7402, allocations: 0 / 0.8674 GB, free: 2.664 MB / 0.5419 GB Notification: Performance of matching and sorting (n=14): time 0.0002995/0.7405, allocations: 137.5 kB / 0.8675 GB, free: 2.523 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.7406, allocations: 85.11 kB / 0.8676 GB, free: 2.422 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.071e-05/0.7406, allocations: 134.6 kB / 0.8677 GB, free: 2.285 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.7407, allocations: 29.7 kB / 0.8677 GB, free: 2.25 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.081e-05/0.7407, allocations: 104.5 kB / 0.8678 GB, free: 2.145 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.7408, allocations: 39.55 kB / 0.8679 GB, free: 2.105 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.7408, allocations: 3.938 kB / 0.8679 GB, free: 2.102 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.492e-05/0.7408, allocations: 326.8 kB / 0.8682 GB, free: 1.773 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.93e-05/0.7409, allocations: 40.17 kB / 0.8682 GB, free: 1.73 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.741, allocations: 205.5 kB / 0.8684 GB, free: 1.469 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.7412, allocations: 67.89 kB / 0.8685 GB, free: 1.402 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7412, allocations: 4 kB / 0.8685 GB, free: 1.398 MB / 0.5419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002432/0.7414, allocations: 173.3 kB / 0.8686 GB, free: 1.223 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.7415, allocations: 4 kB / 0.8686 GB, free: 1.219 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.7415, allocations: 4 kB / 0.8687 GB, free: 1.215 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.7415, allocations: 4 kB / 0.8687 GB, free: 1.211 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.943e-05/0.7416, allocations: 7.984 kB / 0.8687 GB, free: 1.203 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.7416, allocations: 4 kB / 0.8687 GB, free: 1.199 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.7419, allocations: 79.78 kB / 0.8687 GB, free: 1.121 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.7419, allocations: 4 kB / 0.8687 GB, free: 1.117 MB / 0.5419 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 7.786e-05/0.742, allocations: 116.9 kB / 0.8689 GB, free: 0.9961 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.742, allocations: 15.81 kB / 0.8689 GB, free: 0.9805 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.868e-05/0.742, allocations: 16.48 kB / 0.8689 GB, free: 0.9648 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.7421, allocations: 3.938 kB / 0.8689 GB, free: 0.9609 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.7421, allocations: 0 / 0.8689 GB, free: 0.9609 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.7421, allocations: 4 kB / 0.8689 GB, free: 0.957 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.7422, allocations: 166.1 kB / 0.8691 GB, free: 0.7578 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7422, allocations: 0 / 0.8691 GB, free: 0.7578 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.7422, allocations: 8 kB / 0.8691 GB, free: 0.75 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.7422, allocations: 0 / 0.8691 GB, free: 0.75 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.7423, allocations: 4 kB / 0.8691 GB, free: 0.7461 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7423, allocations: 0 / 0.8691 GB, free: 0.7461 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.7423, allocations: 7.984 kB / 0.8691 GB, free: 0.7383 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002087/0.7425, allocations: 179.4 kB / 0.8692 GB, free: 0.5352 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000271/0.7428, allocations: 0.5458 MB / 0.8698 GB, free: 15.96 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.102e-05/0.7428, allocations: 88.92 kB / 0.8699 GB, free: 15.86 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.7429, allocations: 7.984 kB / 0.8699 GB, free: 15.84 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.933e-05/0.7429, allocations: 4 kB / 0.8699 GB, free: 15.84 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.743, allocations: 4 kB / 0.8699 GB, free: 15.84 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.743, allocations: 7.984 kB / 0.8699 GB, free: 15.83 MB / 0.5575 GB Notification: Performance of sort global known variables: time 7.001e-05/0.7431, allocations: 114.7 kB / 0.87 GB, free: 15.72 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.001006/0.7441, allocations: 91.77 kB / 0.8701 GB, free: 15.63 MB / 0.5575 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.0003691/0.7445, allocations: 175.1 kB / 0.8702 GB, free: 15.45 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.7447, allocations: 159.3 kB / 0.8704 GB, free: 15.28 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7447, allocations: 0 / 0.8704 GB, free: 15.28 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 6.5e-05/0.7448, allocations: 47.97 kB / 0.8704 GB, free: 15.23 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.7449, allocations: 3.938 kB / 0.8705 GB, free: 15.23 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003417/0.7453, allocations: 172.1 kB / 0.8706 GB, free: 15.04 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.7456, allocations: 0.7192 MB / 0.8713 GB, free: 14.29 MB / 0.5575 GB Notification: Performance of SimCode: time 2.61e-07/0.7456, allocations: 0 / 0.8713 GB, free: 14.29 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)