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.001455/0.001455, allocations: 103 kB / 16.35 MB, free: 5.875 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.001418/0.001418, allocations: 195.9 kB / 17.3 MB, free: 5.516 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.266/1.266, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002171/0.002171, allocations: 284.3 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9066/0.9066, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 93.3 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 86.97 MB / 0.6816 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002397/0.1468, allocations: 1.418 MB / 0.683 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007904/0.1476, allocations: 494.3 kB / 0.6834 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.076e-05/0.1477, allocations: 0 / 0.6834 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.336e-05/0.1477, allocations: 11.86 kB / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.752e-05/0.1478, allocations: 11.92 kB / 0.6835 GB, free: 5.551 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.1484, allocations: 238.2 kB / 0.6837 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.1486, allocations: 143.7 kB / 0.6838 GB, free: 5.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.1487, allocations: 11.98 kB / 0.6838 GB, free: 5.168 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.004e-05/0.1487, allocations: 55.89 kB / 0.6839 GB, free: 5.113 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.1488, allocations: 35.84 kB / 0.6839 GB, free: 5.078 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.1489, allocations: 12 kB / 0.6839 GB, free: 5.066 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.1491, allocations: 171.8 kB / 0.6841 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.744e-05/0.1492, allocations: 35.89 kB / 0.6841 GB, free: 4.863 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.197e-05/0.1492, allocations: 47.8 kB / 0.6842 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.1495, allocations: 239.4 kB / 0.6844 GB, free: 4.582 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1496, allocations: 4 kB / 0.6844 GB, free: 4.578 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1496, allocations: 0 / 0.6844 GB, free: 4.578 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1496, allocations: 0 / 0.6844 GB, free: 4.578 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.0005047/0.1501, allocations: 447 kB / 0.6848 GB, free: 4.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.1501, allocations: 8.031 kB / 0.6848 GB, free: 4.082 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.1502, allocations: 12.84 kB / 0.6849 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.1504, allocations: 213.5 kB / 0.6851 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1504, allocations: 8.359 kB / 0.6851 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.1504, allocations: 16.38 kB / 0.6851 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.1506, allocations: 79.95 kB / 0.6852 GB, free: 3.711 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1506, allocations: 4.188 kB / 0.6852 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1506, allocations: 3.938 kB / 0.6852 GB, free: 3.703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.1506, allocations: 0 / 0.6852 GB, free: 3.703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.873e-05/0.1507, allocations: 43.91 kB / 0.6852 GB, free: 3.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.1509, allocations: 226.4 kB / 0.6854 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.151, allocations: 93.23 kB / 0.6855 GB, free: 3.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.661e-05/0.1511, allocations: 57.75 kB / 0.6856 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.692e-06/0.1511, allocations: 0 / 0.6856 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.1513, allocations: 108.1 kB / 0.6857 GB, free: 3.094 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.1513, allocations: 4 kB / 0.6857 GB, free: 3.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003122/0.1516, allocations: 185.4 kB / 0.6859 GB, free: 2.902 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.1517, allocations: 93.08 kB / 0.6859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.1518, allocations: 159.2 kB / 0.6861 GB, free: 2.629 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.1518, allocations: 33.7 kB / 0.6861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.013e-05/0.1519, allocations: 96.52 kB / 0.6862 GB, free: 2.488 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.1519, allocations: 35.55 kB / 0.6863 GB, free: 2.453 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/0.152, allocations: 45.7 kB / 0.6863 GB, free: 2.402 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1521, allocations: 334.8 kB / 0.6866 GB, free: 2.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.407e-05/0.1522, allocations: 47.92 kB / 0.6867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.1524, allocations: 196.7 kB / 0.6869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.1525, allocations: 105.5 kB / 0.687 GB, free: 1.664 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1525, allocations: 0 / 0.687 GB, free: 1.664 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002132/0.1528, allocations: 161.4 kB / 0.6871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1528, allocations: 4 kB / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.1528, allocations: 4 kB / 0.6871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.1528, allocations: 0 / 0.6871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.797e-05/0.1529, allocations: 15.92 kB / 0.6871 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.1529, allocations: 4.625 kB / 0.6871 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.1532, allocations: 75.75 kB / 0.6872 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1532, allocations: 4 kB / 0.6872 GB, free: 1.395 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.0001034/0.1533, allocations: 137.8 kB / 0.6873 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.1533, allocations: 11.84 kB / 0.6874 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.1533, allocations: 12.72 kB / 0.6874 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1533, allocations: 4.094 kB / 0.6874 GB, free: 1.223 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1534, allocations: 4 kB / 0.6874 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1534, allocations: 7.969 kB / 0.6874 GB, free: 1.211 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.1535, allocations: 185.6 kB / 0.6876 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1535, allocations: 3.938 kB / 0.6876 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.592e-05/0.1535, allocations: 15.92 kB / 0.6876 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1536, allocations: 4 kB / 0.6876 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1536, allocations: 4 kB / 0.6876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1536, allocations: 0 / 0.6876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1536, allocations: 0 / 0.6876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002058/0.1538, allocations: 181.8 kB / 0.6878 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.1538, allocations: 88.89 kB / 0.6878 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.1539, allocations: 4 kB / 0.6878 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.105e-05/0.1539, allocations: 11.98 kB / 0.6879 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.121e-05/0.154, allocations: 7.938 kB / 0.6879 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.154, allocations: 4 kB / 0.6879 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.672e-05/0.1541, allocations: 113.5 kB / 0.688 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1541, allocations: 0 / 0.688 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.1543, allocations: 75.98 kB / 0.688 GB, free: 448 kB / 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.0002059/0.1545, allocations: 175.6 kB / 0.6882 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000224/0.1548, allocations: 163.3 kB / 0.6884 GB, free: 88 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1548, allocations: 4 kB / 0.6884 GB, free: 84 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.984e-05/0.1548, allocations: 35.98 kB / 0.6884 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.155, allocations: 14.28 kB / 0.6884 GB, free: 36 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2191/0.3742, allocations: 213.6 kB / 0.6886 GB, free: 18.01 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.3743, allocations: 0.7061 MB / 0.6893 GB, free: 17.31 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.622e-05/0.3744, allocations: 8.609 kB / 0.6893 GB, free: 17.31 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.446e-05/0.3744, allocations: 13.78 kB / 0.6893 GB, free: 17.3 MB / 494.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3744, allocations: 4.125 kB / 0.6893 GB, free: 17.3 MB / 494.1 MB Notification: Performance of Templates: time 0.005416/0.3798, allocations: 2.514 MB / 0.6918 GB, free: 17.21 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)