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.004181/0.004181, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.0009904/0.0009904, allocations: 193.2 kB / 16.67 MB, free: 5.969 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 / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002132, allocations: 286.1 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9354/0.9354, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 99.86 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1424, allocations: 86.97 MB / 0.7664 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002134/0.1446, allocations: 1.4 MB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008124/0.1454, allocations: 0.4944 MB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.998e-05/0.1454, allocations: 0 / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.596e-05/0.1455, allocations: 7.938 kB / 0.7682 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.95e-05/0.1456, allocations: 11.86 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006557/0.1462, allocations: 235.4 kB / 0.7684 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000193/0.1464, allocations: 151.7 kB / 0.7686 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.904e-05/0.1465, allocations: 8 kB / 0.7686 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.313e-05/0.1465, allocations: 55.91 kB / 0.7687 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.625e-05/0.1466, allocations: 47.81 kB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.1467, allocations: 8 kB / 0.7687 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1469, allocations: 163.8 kB / 0.7689 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.443e-05/0.147, allocations: 35.91 kB / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.309e-05/0.1471, allocations: 59.77 kB / 0.769 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002913/0.1474, allocations: 235.2 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1474, allocations: 4 kB / 0.7692 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.92e-07/0.1474, allocations: 0 / 0.7692 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.1474, allocations: 0 / 0.7692 GB, free: 5.551 MB / 0.5606 GB 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.0005104/0.1479, allocations: 458.7 kB / 0.7696 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.1479, allocations: 8.031 kB / 0.7696 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/0.148, allocations: 20.78 kB / 0.7696 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1482, allocations: 204.2 kB / 0.7698 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1482, allocations: 8.375 kB / 0.7698 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.1482, allocations: 8.375 kB / 0.7699 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.1484, allocations: 87.94 kB / 0.7699 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.862e-06/0.1484, allocations: 192 / 0.7699 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.1484, allocations: 7.938 kB / 0.7699 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1484, allocations: 0 / 0.7699 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.956e-05/0.1485, allocations: 39.92 kB / 0.77 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000226/0.1487, allocations: 226.5 kB / 0.7702 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.1488, allocations: 81.19 kB / 0.7703 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.183e-05/0.1489, allocations: 61.73 kB / 0.7703 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.1489, allocations: 0 / 0.7703 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.1491, allocations: 108.5 kB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 2.415e-06/0.1491, allocations: 7.984 kB / 0.7705 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.000322/0.1495, allocations: 197.3 kB / 0.7706 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.1495, allocations: 85.11 kB / 0.7707 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1496, allocations: 148.2 kB / 0.7709 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1497, allocations: 37.64 kB / 0.7709 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.1497, allocations: 104.5 kB / 0.771 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.1498, allocations: 43.67 kB / 0.771 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/0.1499, allocations: 53.64 kB / 0.7711 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.15, allocations: 326.8 kB / 0.7714 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.08e-05/0.1501, allocations: 39.98 kB / 0.7714 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.1503, allocations: 199.4 kB / 0.7716 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1504, allocations: 93.64 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1504, allocations: 0 / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002221/0.1506, allocations: 165.4 kB / 0.7719 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1506, allocations: 8 kB / 0.7719 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.1507, allocations: 0 / 0.7719 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.1507, allocations: 4 kB / 0.7719 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.606e-05/0.1508, allocations: 11.94 kB / 0.7719 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.1508, allocations: 0 / 0.7719 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.151, allocations: 75.84 kB / 0.772 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.1511, allocations: 4.625 kB / 0.772 GB, free: 2.367 MB / 0.5606 GB 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.0001074/0.1512, allocations: 142.4 kB / 0.7721 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.1512, allocations: 15.88 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.1512, allocations: 12.72 kB / 0.7721 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1512, allocations: 0 / 0.7721 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1512, allocations: 3.938 kB / 0.7721 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1513, allocations: 3.938 kB / 0.7721 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.1514, allocations: 197.6 kB / 0.7723 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1514, allocations: 3.938 kB / 0.7723 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.1514, allocations: 8 kB / 0.7723 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1514, allocations: 8 kB / 0.7724 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1515, allocations: 4 kB / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1515, allocations: 0 / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1515, allocations: 0 / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.1517, allocations: 174.4 kB / 0.7725 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.1517, allocations: 96.94 kB / 0.7726 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.1518, allocations: 3.938 kB / 0.7726 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.019e-05/0.1518, allocations: 8 kB / 0.7726 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.1519, allocations: 11.98 kB / 0.7726 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.1519, allocations: 3.938 kB / 0.7726 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.975e-05/0.1519, allocations: 113.1 kB / 0.7728 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1519, allocations: 0 / 0.7728 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002738/0.1522, allocations: 75.81 kB / 0.7728 GB, free: 1.402 MB / 0.5606 GB 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.0002194/0.1524, allocations: 159.1 kB / 0.773 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002562/0.1527, allocations: 171.4 kB / 0.7731 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1527, allocations: 0 / 0.7731 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.798e-05/0.1528, allocations: 55.84 kB / 0.7732 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001533/0.153, allocations: 14.28 kB / 0.7732 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003449/0.1533, allocations: 225.5 kB / 0.7734 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1536, allocations: 0.7041 MB / 0.7741 GB, free: 16 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.2749/0.4284, allocations: 13.94 kB / 0.7741 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.4285, allocations: 12.53 kB / 0.7741 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/0.4285, allocations: 0 / 0.7741 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of Templates: time 0.005648/0.4342, allocations: 2.516 MB / 0.7766 GB, free: 14.29 MB / 0.5606 GB 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)