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.001321/0.00132, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001102/0.001102, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.304/1.304, allocations: 222.9 MB / 239.9 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 283.1 kB / 290.4 MB, free: 2.027 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.4978 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 93.7 kB / 0.5947 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1396, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002313/0.1419, allocations: 1.46 MB / 0.6811 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008375/0.1428, allocations: 0.5042 MB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.989e-05/0.1428, allocations: 0 / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.626e-05/0.1429, allocations: 4.812 kB / 0.6816 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.143, allocations: 7.922 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006335/0.1436, allocations: 213.6 kB / 0.6818 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000176/0.1438, allocations: 149.6 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.834e-05/0.1439, allocations: 4 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.505e-05/0.1439, allocations: 51.91 kB / 0.682 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.556e-05/0.144, allocations: 43.83 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.144, allocations: 16 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002215/0.1443, allocations: 171.8 kB / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.1443, allocations: 35.91 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.52e-05/0.1444, allocations: 51.78 kB / 0.6823 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.1447, allocations: 227.7 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1447, allocations: 0 / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1447, allocations: 3.938 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1447, allocations: 0 / 0.6825 GB, free: 14.13 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.000498/0.1452, allocations: 455 kB / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.1452, allocations: 12.03 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.119e-05/0.1453, allocations: 12.84 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.1455, allocations: 212.1 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1455, allocations: 8.375 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.1455, allocations: 8.375 kB / 0.6832 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.1457, allocations: 79.95 kB / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1457, allocations: 4.125 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1457, allocations: 11.92 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1457, allocations: 4 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.932e-05/0.1458, allocations: 35.92 kB / 0.6833 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.1461, allocations: 234.5 kB / 0.6835 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.1462, allocations: 77.19 kB / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.023e-05/0.1463, allocations: 57.81 kB / 0.6836 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1463, allocations: 0 / 0.6836 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.1465, allocations: 111.8 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.1465, allocations: 3.938 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003548/0.1469, allocations: 197.3 kB / 0.6839 GB, free: 12.44 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.1469, allocations: 85.05 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1471, allocations: 155.7 kB / 0.6842 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.1471, allocations: 37.7 kB / 0.6842 GB, free: 12.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.1472, allocations: 100.5 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.1472, allocations: 27.56 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/0.1473, allocations: 57.69 kB / 0.6844 GB, free: 11.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1474, allocations: 322.8 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.1475, allocations: 39.98 kB / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.1477, allocations: 196.5 kB / 0.6849 GB, free: 11.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.1478, allocations: 105.5 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1478, allocations: 4 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002155/0.148, allocations: 169.3 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.1481, allocations: 4 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.1481, allocations: 4 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1481, allocations: 0 / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.846e-05/0.1482, allocations: 8 kB / 0.6852 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1482, allocations: 0 / 0.6852 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.1484, allocations: 79.69 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1485, allocations: 7.984 kB / 0.6853 GB, free: 10.94 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 9.998e-05/0.1486, allocations: 135.1 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.1486, allocations: 11.84 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.01e-05/0.1486, allocations: 24.8 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1486, allocations: 3.984 kB / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1486, allocations: 0 / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1487, allocations: 0 / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.1488, allocations: 189.6 kB / 0.6856 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1488, allocations: 3.938 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-05/0.1488, allocations: 8 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1488, allocations: 4 kB / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.1489, allocations: 0 / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1489, allocations: 0 / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1489, allocations: 0 / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.1491, allocations: 193.7 kB / 0.6858 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.1491, allocations: 96.88 kB / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.1492, allocations: 7.938 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.052e-05/0.1492, allocations: 4 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.1492, allocations: 7.984 kB / 0.6859 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.1493, allocations: 0 / 0.6859 GB, free: 10.17 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.382e-05/0.1493, allocations: 121.5 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1493, allocations: 0 / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.1496, allocations: 68 kB / 0.6861 GB, free: 9.984 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.000208/0.1498, allocations: 168.2 kB / 0.6863 GB, free: 9.812 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002373/0.1501, allocations: 163.3 kB / 0.6864 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1501, allocations: 0 / 0.6864 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.595e-05/0.1502, allocations: 47.92 kB / 0.6865 GB, free: 9.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.1503, allocations: 13.91 kB / 0.6865 GB, free: 9.582 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.1507, allocations: 255.4 kB / 0.6867 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.151, allocations: 0.7041 MB / 0.6874 GB, free: 8.574 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.435e-05/0.151, allocations: 8.656 kB / 0.6874 GB, free: 8.562 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.1511, allocations: 15.44 kB / 0.6875 GB, free: 8.547 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1511, allocations: 0 / 0.6875 GB, free: 8.547 MB / 494.1 MB Notification: Performance of Templates: time 0.004961/0.156, allocations: 2.484 MB / 0.6899 GB, free: 6.098 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)