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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9101/0.9101, allocations: 143.4 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 175.9 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.2 MB / 447.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.0009014, allocations: 100.2 kB / 0.5188 GB, free: 1.145 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001797/0.001797, allocations: 268.3 kB / 0.6005 GB, free: 48.72 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006374/0.0006374, allocations: 9.875 kB / 0.6929 GB, free: 59.65 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1741, allocations: 82.79 MB / 0.7737 GB, free: 13.84 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.3211, allocations: 109.1 MB / 0.8802 GB, free: 0.6367 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.3213, allocations: 73.98 kB / 0.8803 GB, free: 0.5664 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3129/0.6342, allocations: 3.968 MB / 0.8841 GB, free: 109 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6342, allocations: 0 / 0.8841 GB, free: 109 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.6343, allocations: 3.031 kB / 0.8842 GB, free: 109 MB / 0.5417 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.000405/0.6347, allocations: 436.9 kB / 0.8846 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.6347, allocations: 9.656 kB / 0.8846 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.349e-05/0.6348, allocations: 13.75 kB / 0.8846 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.635, allocations: 229 kB / 0.8848 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.6351, allocations: 5.156 kB / 0.8848 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.6351, allocations: 14.5 kB / 0.8848 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.6353, allocations: 84.05 kB / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.6353, allocations: 0 / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.6353, allocations: 3.641 kB / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.6353, allocations: 0 / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.022e-05/0.6354, allocations: 44.08 kB / 0.885 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002384/0.6357, allocations: 248.7 kB / 0.8852 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.6358, allocations: 81.44 kB / 0.8853 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.6358, allocations: 0 / 0.8853 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.6359, allocations: 119.2 kB / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.636, allocations: 0 / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.0003789/0.6363, allocations: 364.7 kB / 0.8857 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.6364, allocations: 89.14 kB / 0.8858 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/0.6365, allocations: 132.1 kB / 0.8859 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.6365, allocations: 35.66 kB / 0.886 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.6366, allocations: 100.9 kB / 0.8861 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.6366, allocations: 39.91 kB / 0.8861 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-06/0.6366, allocations: 4 kB / 0.8861 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.793e-05/0.6367, allocations: 330.8 kB / 0.8864 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.115e-05/0.6368, allocations: 46.61 kB / 0.8865 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.6369, allocations: 211.8 kB / 0.8867 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.352e-05/0.637, allocations: 73.62 kB / 0.8867 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6371, allocations: 4 kB / 0.8867 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002215/0.6373, allocations: 169.6 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.6373, allocations: 5.781 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/0.6373, allocations: 4.203 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.6373, allocations: 6.812 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.86e-05/0.6374, allocations: 7.562 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.6374, allocations: 5.109 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.6377, allocations: 90.38 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.6377, allocations: 6.172 kB / 0.887 GB, free: 106.9 MB / 0.5417 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 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.33e-05/0.6378, allocations: 150.9 kB / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.6379, allocations: 9.938 kB / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.6379, allocations: 11.86 kB / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.6379, allocations: 3.047 kB / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.6379, allocations: 0 / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.6379, allocations: 4.531 kB / 0.8872 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.638, allocations: 198.3 kB / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.6381, allocations: 0 / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.307e-05/0.6381, allocations: 10.23 kB / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.6381, allocations: 3.469 kB / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.6381, allocations: 7.281 kB / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.6381, allocations: 0 / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6381, allocations: 0 / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.6384, allocations: 207.1 kB / 0.8876 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.486e-05/0.6384, allocations: 87.08 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.6384, allocations: 5.062 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.725e-05/0.6385, allocations: 10.17 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.6385, allocations: 4.719 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.6385, allocations: 4.891 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.529e-05/0.6386, allocations: 116.7 kB / 0.8878 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6386, allocations: 0 / 0.8878 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003095/0.6389, allocations: 89.56 kB / 0.8879 GB, free: 106.2 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002321/0.6392, allocations: 177.8 kB / 0.8881 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.6394, allocations: 163.7 kB / 0.8882 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6394, allocations: 0 / 0.8882 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.3e-05/0.6395, allocations: 47.89 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001058/0.6396, allocations: 3.906 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003607/0.64, allocations: 240.2 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.6401, allocations: 0.7076 MB / 0.8892 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.833e-05/0.6402, allocations: 12.83 kB / 0.8892 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.018e-05/0.6402, allocations: 13.52 kB / 0.8892 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.6402, allocations: 4 kB / 0.8892 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.004908/0.6451, allocations: 2.302 MB / 0.8915 GB, free: 105 MB / 0.5417 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)