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.001177/0.001177, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 196.1 kB / 16.53 MB, free: 6.656 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.277/1.277, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00195/0.00195, allocations: 283.2 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9314/0.9314, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 99.94 kB / 0.5952 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1492, allocations: 86.98 MB / 0.6802 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002665/0.1519, allocations: 1.4 MB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008114/0.1528, allocations: 499 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.292e-05/0.1528, allocations: 0.5312 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.771e-05/0.1529, allocations: 7.922 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.852e-05/0.153, allocations: 9.844 kB / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.1536, allocations: 241 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.1538, allocations: 151.7 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.405e-05/0.1539, allocations: 4 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.908e-05/0.1539, allocations: 51.91 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.035e-05/0.154, allocations: 43.83 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.154, allocations: 8 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002318/0.1543, allocations: 171.8 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.1543, allocations: 35.91 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.1544, allocations: 51.78 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.1547, allocations: 231.7 kB / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1547, allocations: 0 / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1547, allocations: 0 / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1548, allocations: 0 / 0.683 GB, free: 13.81 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.000497/0.1553, allocations: 447 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.1553, allocations: 8.031 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.1553, allocations: 16.83 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.1555, allocations: 212 kB / 0.6836 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1556, allocations: 4.375 kB / 0.6836 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.1556, allocations: 20.38 kB / 0.6837 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.1557, allocations: 83.95 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.1557, allocations: 192 / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.1558, allocations: 3.938 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.1558, allocations: 3.984 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.522e-05/0.1559, allocations: 43.86 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002131/0.1561, allocations: 226.5 kB / 0.684 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1562, allocations: 85.25 kB / 0.6841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.394e-05/0.1563, allocations: 57.8 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.1563, allocations: 3.938 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/0.1565, allocations: 110.5 kB / 0.6843 GB, free: 12.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.1565, allocations: 0 / 0.6843 GB, free: 12.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003152/0.1568, allocations: 201.2 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.1569, allocations: 85.11 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.157, allocations: 152.9 kB / 0.6847 GB, free: 11.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.157, allocations: 37.7 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.1571, allocations: 104.5 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.886e-05/0.1572, allocations: 31.56 kB / 0.6848 GB, free: 11.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.046e-05/0.1572, allocations: 57.69 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1573, allocations: 326.8 kB / 0.6852 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.1574, allocations: 43.98 kB / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.1576, allocations: 200.1 kB / 0.6854 GB, free: 10.99 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.1578, allocations: 97.62 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1578, allocations: 3.938 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002171/0.158, allocations: 165.3 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.158, allocations: 4 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.158, allocations: 4 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.158, allocations: 0 / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.745e-05/0.1581, allocations: 15.94 kB / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.1581, allocations: 0 / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.1584, allocations: 77.58 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.1584, allocations: 8 kB / 0.6858 GB, free: 10.61 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.0001179/0.1585, allocations: 131.1 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.926e-05/0.1586, allocations: 15.78 kB / 0.6859 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1586, allocations: 16.7 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1586, allocations: 4 kB / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1586, allocations: 0 / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1586, allocations: 0 / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1588, allocations: 189.6 kB / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1588, allocations: 3.938 kB / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-05/0.1588, allocations: 15.94 kB / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1588, allocations: 0 / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1588, allocations: 4 kB / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1588, allocations: 0 / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1588, allocations: 0 / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.1591, allocations: 181.8 kB / 0.6863 GB, free: 9.984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.1591, allocations: 88.89 kB / 0.6864 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.1591, allocations: 19.92 kB / 0.6864 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.012e-05/0.1592, allocations: 4 kB / 0.6864 GB, free: 9.855 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.1592, allocations: 4 kB / 0.6864 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.1592, allocations: 7.984 kB / 0.6865 GB, free: 9.844 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.643e-05/0.1593, allocations: 111.2 kB / 0.6866 GB, free: 9.734 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.333e-06/0.1593, allocations: 0 / 0.6866 GB, free: 9.734 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.1596, allocations: 75.94 kB / 0.6866 GB, free: 9.66 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.0002182/0.1598, allocations: 164.3 kB / 0.6868 GB, free: 9.492 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002443/0.1601, allocations: 175.2 kB / 0.687 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1601, allocations: 0 / 0.687 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.705e-05/0.1602, allocations: 44.17 kB / 0.687 GB, free: 9.266 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.1603, allocations: 6 kB / 0.687 GB, free: 9.262 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003663/0.1607, allocations: 227.5 kB / 0.6872 GB, free: 9.012 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.161, allocations: 0.7119 MB / 0.6879 GB, free: 8.273 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.297e-05/0.161, allocations: 8.656 kB / 0.6879 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.222e-05/0.161, allocations: 15.44 kB / 0.6879 GB, free: 8.246 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.161, allocations: 0 / 0.6879 GB, free: 8.246 MB / 494.1 MB Notification: Performance of Templates: time 0.005081/0.1661, allocations: 2.525 MB / 0.6904 GB, free: 5.758 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)