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.0009315/0.0009316, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0009835/0.0009835, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001698/0.001698, allocations: 266.3 kB / 291.3 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.9484/0.9484, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004071/0.0004071, allocations: 13.81 kB / 0.598 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1603, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.001353/0.1617, allocations: 1.108 MB / 0.6856 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007291/0.1624, allocations: 471.4 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.863e-05/0.1624, allocations: 3.938 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.695e-05/0.1625, allocations: 4.562 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/0.1626, allocations: 11.92 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.1631, allocations: 201.4 kB / 0.6862 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.1633, allocations: 116.8 kB / 0.6863 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.082e-05/0.1633, allocations: 4 kB / 0.6863 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.007e-05/0.1634, allocations: 52.45 kB / 0.6864 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.354e-05/0.1635, allocations: 49.92 kB / 0.6864 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.1635, allocations: 4 kB / 0.6864 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.1638, allocations: 147.8 kB / 0.6866 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.1638, allocations: 35.89 kB / 0.6866 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.924e-05/0.1639, allocations: 42.27 kB / 0.6866 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.1641, allocations: 164 kB / 0.6868 GB, free: 13.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1641, allocations: 7.422 kB / 0.6868 GB, free: 13.06 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1641, allocations: 0 / 0.6868 GB, free: 13.06 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1641, allocations: 0 / 0.6868 GB, free: 13.06 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.0004896/0.1646, allocations: 418.9 kB / 0.6872 GB, free: 12.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.1647, allocations: 12.03 kB / 0.6872 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.1647, allocations: 15.86 kB / 0.6872 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.1649, allocations: 203.4 kB / 0.6874 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.1649, allocations: 8.5 kB / 0.6874 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.165, allocations: 12.52 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.1651, allocations: 90.3 kB / 0.6875 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.1651, allocations: 0 / 0.6875 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.1651, allocations: 0 / 0.6875 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1652, allocations: 0 / 0.6875 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.1653, allocations: 39.94 kB / 0.6876 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002154/0.1655, allocations: 235.2 kB / 0.6878 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.1656, allocations: 81.91 kB / 0.6879 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.849e-05/0.1657, allocations: 59.53 kB / 0.6879 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.1657, allocations: 0 / 0.6879 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.1659, allocations: 115.1 kB / 0.688 GB, free: 11.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.1659, allocations: 0 / 0.688 GB, free: 11.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.000398/0.1663, allocations: 181.5 kB / 0.6882 GB, free: 11.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.1664, allocations: 96.16 kB / 0.6883 GB, free: 11.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1665, allocations: 159.8 kB / 0.6885 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.1665, allocations: 33.7 kB / 0.6885 GB, free: 11.12 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.1666, allocations: 100.5 kB / 0.6886 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.1666, allocations: 35.55 kB / 0.6886 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.1666, allocations: 4 kB / 0.6886 GB, free: 10.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1668, allocations: 323.5 kB / 0.6889 GB, free: 10.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.409e-05/0.1668, allocations: 41.05 kB / 0.689 GB, free: 10.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.167, allocations: 211.1 kB / 0.6892 GB, free: 10.35 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.446e-05/0.1671, allocations: 55.92 kB / 0.6892 GB, free: 10.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1671, allocations: 0 / 0.6892 GB, free: 10.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002032/0.1673, allocations: 149.5 kB / 0.6894 GB, free: 10.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.1674, allocations: 4 kB / 0.6894 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.1674, allocations: 4 kB / 0.6894 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1674, allocations: 7.984 kB / 0.6894 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.919e-05/0.1675, allocations: 11.94 kB / 0.6894 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1675, allocations: 3.953 kB / 0.6894 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.1678, allocations: 94.56 kB / 0.6895 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1678, allocations: 8 kB / 0.6895 GB, free: 10.01 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1679, allocations: 130.5 kB / 0.6896 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.1679, allocations: 11.91 kB / 0.6896 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.168, allocations: 12.72 kB / 0.6897 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.168, allocations: 0 / 0.6897 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.168, allocations: 7.984 kB / 0.6897 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.168, allocations: 3.953 kB / 0.6897 GB, free: 9.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.1681, allocations: 189.5 kB / 0.6898 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1681, allocations: 0 / 0.6898 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.393e-05/0.1682, allocations: 15.92 kB / 0.6899 GB, free: 9.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1682, allocations: 0 / 0.6899 GB, free: 9.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.1682, allocations: 4 kB / 0.6899 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1682, allocations: 4 kB / 0.6899 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1682, allocations: 4 kB / 0.6899 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000199/0.1684, allocations: 177.8 kB / 0.69 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.957e-05/0.1685, allocations: 92.86 kB / 0.6901 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.1685, allocations: 0 / 0.6901 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.13e-05/0.1685, allocations: 7.984 kB / 0.6901 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.1686, allocations: 11.94 kB / 0.6901 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1686, allocations: 12 kB / 0.6902 GB, free: 9.242 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.1687, allocations: 116.6 kB / 0.6903 GB, free: 9.129 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1687, allocations: 0 / 0.6903 GB, free: 9.129 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.1689, allocations: 71.98 kB / 0.6903 GB, free: 9.059 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 (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.0002053/0.1692, allocations: 162.6 kB / 0.6905 GB, free: 8.895 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.1694, allocations: 175.2 kB / 0.6907 GB, free: 8.711 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1694, allocations: 0 / 0.6907 GB, free: 8.711 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.564e-05/0.1695, allocations: 47.98 kB / 0.6907 GB, free: 8.664 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.1696, allocations: 8 kB / 0.6907 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.17, allocations: 246.5 kB / 0.6909 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1703, allocations: 0.7043 MB / 0.6916 GB, free: 7.652 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.686e-05/0.1703, allocations: 8.672 kB / 0.6916 GB, free: 7.641 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.1703, allocations: 11.44 kB / 0.6917 GB, free: 7.629 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1703, allocations: 0 / 0.6917 GB, free: 7.629 MB / 494.1 MB Notification: Performance of Templates: time 0.004705/0.1751, allocations: 2.329 MB / 0.6939 GB, free: 5.332 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)