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: translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule") translateModel(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.6976/0.6976, allocations: 141.8 MB / 149.1 MB, free: 11.75 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.001557/0.001558, allocations: 182.4 kB / 182 MB, free: 8.508 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.175/1.175, allocations: 221.4 MB / 436 MB, free: 0.7227 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 98.86 kB / 0.507 GB, free: 9.715 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001744/0.001744, allocations: 275 kB / 0.5885 GB, free: 6.535 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.59e-06, allocations: 0 / 0.6759 GB, free: 12.92 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3093, allocations: 82.78 MB / 0.7567 GB, free: 137.7 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.09675/0.4061, allocations: 108.2 MB / 0.8624 GB, free: 29.34 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.4063, allocations: 71.95 kB / 0.8625 GB, free: 29.27 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.009641/0.416, allocations: 3.625 MB / 0.866 GB, free: 25.69 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.416, allocations: 0 / 0.866 GB, free: 25.69 MB / 0.5575 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.0003731/0.4164, allocations: 418.2 kB / 0.8664 GB, free: 25.24 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.4164, allocations: 17.22 kB / 0.8665 GB, free: 25.22 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.4165, allocations: 15.81 kB / 0.8665 GB, free: 25.21 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.4167, allocations: 221.9 kB / 0.8667 GB, free: 24.95 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.4168, allocations: 0 / 0.8667 GB, free: 24.95 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.4168, allocations: 12 kB / 0.8667 GB, free: 24.94 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.341e-05/0.4169, allocations: 39.92 kB / 0.8667 GB, free: 24.9 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.417, allocations: 88.25 kB / 0.8668 GB, free: 24.8 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.417, allocations: 0 / 0.8668 GB, free: 24.8 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.417, allocations: 0 / 0.8668 GB, free: 24.8 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.4171, allocations: 3.906 kB / 0.8668 GB, free: 24.8 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.4172, allocations: 211.1 kB / 0.867 GB, free: 24.55 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.519e-05/0.4173, allocations: 81.19 kB / 0.8671 GB, free: 24.46 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.315e-05/0.4174, allocations: 57.81 kB / 0.8672 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.567e-06/0.4174, allocations: 4 kB / 0.8672 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/0.4175, allocations: 113 kB / 0.8673 GB, free: 24.26 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.4175, allocations: 0 / 0.8673 GB, free: 24.26 MB / 0.5575 GB Notification: Performance of matching and sorting (n=14): time 0.0002641/0.4178, allocations: 129.5 kB / 0.8674 GB, free: 24.13 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.4178, allocations: 97.08 kB / 0.8675 GB, free: 24.02 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.4179, allocations: 136.9 kB / 0.8676 GB, free: 23.88 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.4179, allocations: 29.7 kB / 0.8676 GB, free: 23.84 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.418, allocations: 88.58 kB / 0.8677 GB, free: 23.75 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.418, allocations: 31.55 kB / 0.8678 GB, free: 23.72 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/0.418, allocations: 0 / 0.8678 GB, free: 23.72 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.337e-05/0.4181, allocations: 330.8 kB / 0.8681 GB, free: 23.39 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.891e-05/0.4181, allocations: 44.17 kB / 0.8681 GB, free: 23.34 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.4183, allocations: 209.4 kB / 0.8683 GB, free: 23.07 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.4184, allocations: 73.8 kB / 0.8684 GB, free: 23 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.4184, allocations: 0 / 0.8684 GB, free: 23 MB / 0.5575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002233/0.4186, allocations: 166.3 kB / 0.8685 GB, free: 22.84 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.4187, allocations: 6.969 kB / 0.8686 GB, free: 22.83 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.4187, allocations: 7.984 kB / 0.8686 GB, free: 22.82 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.4187, allocations: 4.031 kB / 0.8686 GB, free: 22.82 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.539e-05/0.4188, allocations: 15.98 kB / 0.8686 GB, free: 22.8 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.4188, allocations: 1.953 kB / 0.8686 GB, free: 22.8 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.419, allocations: 79.78 kB / 0.8687 GB, free: 22.73 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.4191, allocations: 11.98 kB / 0.8687 GB, free: 22.71 MB / 0.5575 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.593e-05/0.4191, allocations: 109 kB / 0.8688 GB, free: 22.6 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.4192, allocations: 19.75 kB / 0.8688 GB, free: 22.58 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.4192, allocations: 8.5 kB / 0.8688 GB, free: 22.57 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4192, allocations: 4 kB / 0.8688 GB, free: 22.57 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4192, allocations: 0 / 0.8688 GB, free: 22.57 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.4192, allocations: 0 / 0.8688 GB, free: 22.57 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.554e-05/0.4193, allocations: 178 kB / 0.869 GB, free: 22.36 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4193, allocations: 4 kB / 0.869 GB, free: 22.35 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.498e-05/0.4194, allocations: 11.98 kB / 0.869 GB, free: 22.34 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4194, allocations: 0 / 0.869 GB, free: 22.34 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.4194, allocations: 0 / 0.869 GB, free: 22.34 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.4194, allocations: 8 kB / 0.869 GB, free: 22.33 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4194, allocations: 0 / 0.869 GB, free: 22.33 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000192/0.4196, allocations: 175.5 kB / 0.8692 GB, free: 22.13 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.225e-05/0.4196, allocations: 88.92 kB / 0.8692 GB, free: 22.03 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.4196, allocations: 7.922 kB / 0.8693 GB, free: 22.02 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.662e-05/0.4197, allocations: 4 kB / 0.8693 GB, free: 22.02 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.4197, allocations: 11.92 kB / 0.8693 GB, free: 22 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.4197, allocations: 8 kB / 0.8693 GB, free: 22 MB / 0.5575 GB Notification: Performance of sort global known variables: time 4.463e-05/0.4198, allocations: 114.1 kB / 0.8694 GB, free: 21.89 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0003109/0.4201, allocations: 75.92 kB / 0.8695 GB, free: 21.81 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.0002159/0.4203, allocations: 175.1 kB / 0.8696 GB, free: 21.63 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001735/0.4205, allocations: 159.3 kB / 0.8698 GB, free: 21.46 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.4205, allocations: 0 / 0.8698 GB, free: 21.46 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 4.759e-05/0.4206, allocations: 47.97 kB / 0.8698 GB, free: 21.42 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.538e-05/0.4207, allocations: 3.906 kB / 0.8698 GB, free: 21.41 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002484/0.4209, allocations: 160.1 kB / 0.87 GB, free: 21.23 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.4211, allocations: 0.7231 MB / 0.8707 GB, free: 20.48 MB / 0.5575 GB Notification: Performance of SimCode: time 2.4e-07/0.4211, allocations: 0 / 0.8707 GB, free: 20.48 MB / 0.5575 GB Notification: Performance of Templates: time 0.003958/0.425, allocations: 2.388 MB / 0.873 GB, free: 18.14 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)