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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 194.5 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 290.3 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9369/0.9369, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 92.14 kB / 0.5945 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1449, allocations: 86.98 MB / 0.6794 GB, free: 1.227 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002358/0.1473, allocations: 1.471 MB / 0.6809 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008409/0.1482, allocations: 0.5205 MB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.622e-05/0.1482, allocations: 0 / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.782e-05/0.1483, allocations: 7.984 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.414e-05/0.1483, allocations: 4.656 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005662/0.1489, allocations: 204.2 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.1491, allocations: 143.7 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.905e-05/0.1491, allocations: 4 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.427e-05/0.1492, allocations: 48.78 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.042e-05/0.1493, allocations: 40.48 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.1493, allocations: 8 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.1496, allocations: 164.3 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.909e-05/0.1496, allocations: 33.12 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.945e-05/0.1497, allocations: 51.72 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.15, allocations: 220.6 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.15, allocations: 0 / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.15, allocations: 4 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.15, allocations: 4 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB 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.0005059/0.1505, allocations: 443.1 kB / 0.6827 GB, free: 13.84 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.1506, allocations: 12.02 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.87e-05/0.1506, allocations: 12.84 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.1508, allocations: 208.1 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1508, allocations: 4.375 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.1509, allocations: 16.38 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.151, allocations: 83.89 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.151, allocations: 192 / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.1511, allocations: 11.92 kB / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1511, allocations: 0 / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.221e-05/0.1511, allocations: 35.98 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002204/0.1514, allocations: 226.5 kB / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.1515, allocations: 97.11 kB / 0.6834 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.812e-05/0.1516, allocations: 49.81 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1516, allocations: 4 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001677/0.1518, allocations: 105 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1518, allocations: 3.938 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003277/0.1521, allocations: 201.3 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1522, allocations: 85.11 kB / 0.6838 GB, free: 12.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1523, allocations: 151.5 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.1523, allocations: 37.7 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.592e-05/0.1524, allocations: 100.5 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.1525, allocations: 35.56 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.319e-05/0.1525, allocations: 49.69 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1526, allocations: 326.8 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.955e-05/0.1527, allocations: 47.98 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1529, allocations: 197 kB / 0.6847 GB, free: 11.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.1531, allocations: 97.62 kB / 0.6848 GB, free: 11.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1531, allocations: 4 kB / 0.6848 GB, free: 11.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002298/0.1533, allocations: 177.2 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.1533, allocations: 4 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.1534, allocations: 4 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.1534, allocations: 0 / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.807e-05/0.1534, allocations: 8 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.1535, allocations: 0.625 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.1537, allocations: 79.75 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1537, allocations: 4 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.1539, allocations: 139.1 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.1539, allocations: 11.84 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.972e-05/0.1539, allocations: 16.7 kB / 0.6852 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.154, allocations: 0 / 0.6852 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.154, allocations: 4 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.154, allocations: 0 / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.1541, allocations: 189.6 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1541, allocations: 3.938 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.379e-05/0.1542, allocations: 8 kB / 0.6854 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1542, allocations: 0 / 0.6854 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.1542, allocations: 4 kB / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1542, allocations: 4 kB / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1542, allocations: 0 / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/0.1544, allocations: 185.7 kB / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.1545, allocations: 92.89 kB / 0.6857 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.1545, allocations: 7.984 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.396e-05/0.1546, allocations: 4 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.1546, allocations: 15.92 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.1546, allocations: 4 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.047e-05/0.1547, allocations: 113.1 kB / 0.6858 GB, free: 10.26 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1547, allocations: 0 / 0.6858 GB, free: 10.26 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.155, allocations: 75.94 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002165/0.1552, allocations: 163.2 kB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002328/0.1555, allocations: 163.3 kB / 0.6862 GB, free: 9.844 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1555, allocations: 4 kB / 0.6862 GB, free: 9.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.633e-05/0.1555, allocations: 43.92 kB / 0.6863 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.1557, allocations: 11.94 kB / 0.6863 GB, free: 9.785 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.1561, allocations: 252.2 kB / 0.6865 GB, free: 9.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1564, allocations: 0.7043 MB / 0.6872 GB, free: 8.781 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.796e-05/0.1564, allocations: 16.59 kB / 0.6872 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.1564, allocations: 15.44 kB / 0.6872 GB, free: 8.746 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1564, allocations: 0 / 0.6872 GB, free: 8.746 MB / 494.1 MB Notification: Performance of Templates: time 0.004683/0.1611, allocations: 2.406 MB / 0.6896 GB, free: 6.371 MB / 494.1 MB 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)