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.001509/0.001509, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.001643/0.001643, allocations: 192.3 kB / 17.29 MB, free: 5.527 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 / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 285.9 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9289/0.9289, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 94.12 kB / 0.5966 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1404, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002712/0.1432, allocations: 1.414 MB / 0.683 GB, free: 6.039 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008825/0.1441, allocations: 0.4905 MB / 0.6834 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.276e-05/0.1441, allocations: 0 / 0.6834 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.047e-05/0.1442, allocations: 7.875 kB / 0.6834 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.522e-05/0.1443, allocations: 15.86 kB / 0.6835 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007321/0.145, allocations: 242.5 kB / 0.6837 GB, free: 5.289 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.1452, allocations: 143.7 kB / 0.6838 GB, free: 5.148 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.1453, allocations: 7.984 kB / 0.6838 GB, free: 5.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.719e-05/0.1453, allocations: 55.89 kB / 0.6839 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.369e-05/0.1454, allocations: 35.84 kB / 0.6839 GB, free: 5.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.1455, allocations: 12 kB / 0.6839 GB, free: 5.039 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.1457, allocations: 171.8 kB / 0.6841 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.248e-05/0.1458, allocations: 35.89 kB / 0.6841 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.1459, allocations: 55.73 kB / 0.6842 GB, free: 4.781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.1462, allocations: 239.4 kB / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1462, allocations: 0 / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1462, allocations: 0 / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1462, allocations: 0 / 0.6844 GB, free: 4.547 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.0005184/0.1468, allocations: 448.7 kB / 0.6848 GB, free: 4.059 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.1468, allocations: 8.031 kB / 0.6849 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.1468, allocations: 12.84 kB / 0.6849 GB, free: 4.039 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.1471, allocations: 204.2 kB / 0.6851 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.1471, allocations: 12.38 kB / 0.6851 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.1471, allocations: 12.38 kB / 0.6851 GB, free: 3.777 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.1473, allocations: 83.89 kB / 0.6852 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.1473, allocations: 192 / 0.6852 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.1473, allocations: 3.938 kB / 0.6852 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1473, allocations: 0 / 0.6852 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.156e-05/0.1474, allocations: 39.97 kB / 0.6852 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002371/0.1476, allocations: 242.4 kB / 0.6854 GB, free: 3.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.1478, allocations: 85.19 kB / 0.6855 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.1e-05/0.1478, allocations: 53.81 kB / 0.6856 GB, free: 3.191 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.1479, allocations: 0 / 0.6856 GB, free: 3.191 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.1481, allocations: 121 kB / 0.6857 GB, free: 3.055 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.1481, allocations: 0 / 0.6857 GB, free: 3.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.000344/0.1484, allocations: 185.4 kB / 0.6859 GB, free: 2.867 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.1485, allocations: 89.08 kB / 0.6859 GB, free: 2.762 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.1486, allocations: 159.4 kB / 0.6861 GB, free: 2.598 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.1486, allocations: 33.7 kB / 0.6861 GB, free: 2.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.441e-05/0.1487, allocations: 100.5 kB / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.1488, allocations: 31.55 kB / 0.6863 GB, free: 2.422 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.489e-05/0.1488, allocations: 61.69 kB / 0.6863 GB, free: 2.355 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.149, allocations: 318.8 kB / 0.6866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.585e-05/0.149, allocations: 43.98 kB / 0.6867 GB, free: 1.992 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.1492, allocations: 199.3 kB / 0.6869 GB, free: 1.742 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.1494, allocations: 93.64 kB / 0.6869 GB, free: 1.645 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1494, allocations: 3.938 kB / 0.6869 GB, free: 1.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002356/0.1496, allocations: 165.8 kB / 0.6871 GB, free: 1.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1497, allocations: 4 kB / 0.6871 GB, free: 1.469 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.1497, allocations: 8.078 kB / 0.6871 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1497, allocations: 7.984 kB / 0.6871 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.055e-05/0.1498, allocations: 8 kB / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1498, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.1501, allocations: 79.75 kB / 0.6872 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1501, allocations: 4.156 kB / 0.6872 GB, free: 1.363 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.0001153/0.1502, allocations: 137.7 kB / 0.6873 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.08e-05/0.1502, allocations: 11.84 kB / 0.6874 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.1503, allocations: 20.7 kB / 0.6874 GB, free: 1.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1503, allocations: 4 kB / 0.6874 GB, free: 1.184 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1503, allocations: 0 / 0.6874 GB, free: 1.184 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1503, allocations: 0 / 0.6874 GB, free: 1.184 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.1504, allocations: 185.6 kB / 0.6876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1505, allocations: 7.938 kB / 0.6876 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.511e-05/0.1505, allocations: 11.98 kB / 0.6876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1505, allocations: 0 / 0.6876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1505, allocations: 4 kB / 0.6876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1505, allocations: 0 / 0.6876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1505, allocations: 3.984 kB / 0.6876 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.1508, allocations: 184.6 kB / 0.6878 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.1509, allocations: 92.89 kB / 0.6878 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.1509, allocations: 8 kB / 0.6879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.102e-05/0.1509, allocations: 3.984 kB / 0.6879 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.151, allocations: 4 kB / 0.6879 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.151, allocations: 4 kB / 0.6879 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.307e-05/0.1511, allocations: 117.8 kB / 0.688 GB, free: 496 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1511, allocations: 0 / 0.688 GB, free: 496 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002816/0.1514, allocations: 71.98 kB / 0.688 GB, free: 424 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.0002281/0.1516, allocations: 175.6 kB / 0.6882 GB, free: 240 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002436/0.1518, allocations: 167.3 kB / 0.6884 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1519, allocations: 0 / 0.6884 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.801e-05/0.1519, allocations: 43.92 kB / 0.6884 GB, free: 16 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.1521, allocations: 11.94 kB / 0.6884 GB, free: 4 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2151/0.3672, allocations: 208.5 kB / 0.6886 GB, free: 18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.3673, allocations: 0.7051 MB / 0.6893 GB, free: 17.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.231e-05/0.3674, allocations: 11.41 kB / 0.6893 GB, free: 17.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.3674, allocations: 12.98 kB / 0.6893 GB, free: 17.29 MB / 494.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3674, allocations: 0.5 kB / 0.6893 GB, free: 17.29 MB / 494.1 MB Notification: Performance of Templates: time 0.005454/0.3729, allocations: 2.522 MB / 0.6918 GB, free: 17.2 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)