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.00706/0.00706, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001673/0.001673, allocations: 189.6 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002509/0.002509, allocations: 286.3 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9167/0.9167, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 95.8 kB / 0.6814 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1457, allocations: 86.98 MB / 0.7664 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002294/0.148, allocations: 1.412 MB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008186/0.1489, allocations: 0.4904 MB / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.796e-05/0.1489, allocations: 0 / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.259e-05/0.149, allocations: 7.922 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.852e-05/0.149, allocations: 11.92 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.1497, allocations: 242.9 kB / 0.7685 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.1499, allocations: 139.8 kB / 0.7686 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.1499, allocations: 4 kB / 0.7686 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.776e-05/0.15, allocations: 55.89 kB / 0.7686 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.862e-05/0.1501, allocations: 47.77 kB / 0.7687 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.1502, allocations: 8 kB / 0.7687 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.1504, allocations: 167.8 kB / 0.7689 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.1505, allocations: 35.89 kB / 0.7689 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.102e-05/0.1506, allocations: 55.78 kB / 0.769 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.1509, allocations: 235.4 kB / 0.7692 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1509, allocations: 0 / 0.7692 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1509, allocations: 0 / 0.7692 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.1509, allocations: 0 / 0.7692 GB, free: 5.574 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.0005392/0.1514, allocations: 451 kB / 0.7696 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.1515, allocations: 8.031 kB / 0.7696 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.067e-05/0.1515, allocations: 16.84 kB / 0.7696 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.1517, allocations: 212 kB / 0.7698 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1518, allocations: 12.38 kB / 0.7698 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.922e-05/0.1518, allocations: 12.36 kB / 0.7699 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.152, allocations: 79.95 kB / 0.7699 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-06/0.152, allocations: 4.125 kB / 0.7699 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.152, allocations: 3.938 kB / 0.7699 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.152, allocations: 0 / 0.7699 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.213e-05/0.1521, allocations: 43.91 kB / 0.77 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002385/0.1523, allocations: 242.4 kB / 0.7702 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.1524, allocations: 73.2 kB / 0.7703 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.257e-05/0.1525, allocations: 57.84 kB / 0.7703 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.1525, allocations: 0 / 0.7703 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.1527, allocations: 117 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.1527, allocations: 0 / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0003216/0.153, allocations: 193.3 kB / 0.7706 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.1531, allocations: 81.11 kB / 0.7707 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.1532, allocations: 151.7 kB / 0.7709 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1532, allocations: 33.7 kB / 0.7709 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.1533, allocations: 104.5 kB / 0.771 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.1534, allocations: 43.45 kB / 0.771 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.856e-05/0.1534, allocations: 49.7 kB / 0.7711 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.1535, allocations: 322.8 kB / 0.7714 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.299e-05/0.1536, allocations: 39.98 kB / 0.7714 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.1538, allocations: 199.3 kB / 0.7716 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.154, allocations: 89.7 kB / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.154, allocations: 0 / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000214/0.1542, allocations: 173.3 kB / 0.7719 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.1542, allocations: 8 kB / 0.7719 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.1542, allocations: 4 kB / 0.7719 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1542, allocations: 4 kB / 0.7719 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.603e-05/0.1543, allocations: 11.92 kB / 0.7719 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.1543, allocations: 4 kB / 0.7719 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.1546, allocations: 76.59 kB / 0.772 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1546, allocations: 4 kB / 0.772 GB, free: 2.387 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.0001027/0.1547, allocations: 130.5 kB / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.1547, allocations: 19.75 kB / 0.7721 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.1548, allocations: 12.72 kB / 0.7721 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1548, allocations: 4 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1548, allocations: 3.938 kB / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1548, allocations: 0 / 0.7721 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.1549, allocations: 193.6 kB / 0.7723 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1549, allocations: 7.938 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.155, allocations: 4 kB / 0.7723 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.155, allocations: 0 / 0.7723 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.155, allocations: 7.938 kB / 0.7723 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.155, allocations: 0 / 0.7723 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.155, allocations: 7.922 kB / 0.7723 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.1552, allocations: 178.4 kB / 0.7725 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-05/0.1553, allocations: 96.8 kB / 0.7726 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.1553, allocations: 4.094 kB / 0.7726 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.107e-05/0.1553, allocations: 4 kB / 0.7726 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.1554, allocations: 7.969 kB / 0.7726 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.1554, allocations: 4 kB / 0.7726 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.287e-05/0.1555, allocations: 121.6 kB / 0.7727 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1555, allocations: 0 / 0.7727 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002685/0.1557, allocations: 71.98 kB / 0.7728 GB, free: 1.43 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.0002218/0.156, allocations: 171.1 kB / 0.773 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002436/0.1562, allocations: 163.3 kB / 0.7731 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1562, allocations: 3.938 kB / 0.7731 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.458e-05/0.1563, allocations: 43.98 kB / 0.7732 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.1565, allocations: 10.12 kB / 0.7732 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.1568, allocations: 232.5 kB / 0.7734 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.1571, allocations: 0.7041 MB / 0.7741 GB, free: 44 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.286e-05/0.1571, allocations: 8.656 kB / 0.7741 GB, free: 32 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.148e-05/0.1572, allocations: 15.44 kB / 0.7741 GB, free: 16 kB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.1572, allocations: 0 / 0.7741 GB, free: 16 kB / 0.5606 GB Notification: Performance of Templates: time 0.271/0.4281, allocations: 2.557 MB / 0.7766 GB, free: 14.3 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)