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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.8142/0.8142, allocations: 140.1 MB / 156 MB, free: 5.141 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 186.1 kB / 188.5 MB, free: 15.79 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.4 MB / 426.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007674/0.0007673, allocations: 94.34 kB / 0.4945 GB, free: 8.379 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001794/0.001794, allocations: 266.3 kB / 0.5728 GB, free: 66.2 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004804, allocations: 19.98 kB / 0.662 GB, free: 6.789 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4151, allocations: 79.3 MB / 0.7395 GB, free: 46.32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1376/0.5528, allocations: 107.5 MB / 0.8445 GB, free: 2.656 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.5531, allocations: 67.97 kB / 0.8445 GB, free: 2.59 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.01087/0.564, allocations: 3.955 MB / 0.8484 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of FrontEnd: time 5.41e-06/0.564, allocations: 0 / 0.8484 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.5641, allocations: 3.938 kB / 0.8484 GB, free: 14.62 MB / 0.5261 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.0004827/0.5645, allocations: 435 kB / 0.8488 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.5646, allocations: 8.031 kB / 0.8488 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.5646, allocations: 12.84 kB / 0.8488 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.5649, allocations: 220.3 kB / 0.849 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.5649, allocations: 4.375 kB / 0.849 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.565, allocations: 16.38 kB / 0.8491 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.5651, allocations: 87.92 kB / 0.8491 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.5652, allocations: 11.81 kB / 0.8492 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.5652, allocations: 0 / 0.8492 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.5652, allocations: 0 / 0.8492 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.972e-05/0.5653, allocations: 43.97 kB / 0.8492 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002438/0.5655, allocations: 250.4 kB / 0.8494 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.5656, allocations: 85.17 kB / 0.8495 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.5658, allocations: 61.78 kB / 0.8496 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.5658, allocations: 0 / 0.8496 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.566, allocations: 121 kB / 0.8497 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=14): time 2.825e-06/0.566, allocations: 0 / 0.8497 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14): time 0.000364/0.5663, allocations: 197.4 kB / 0.8499 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.5664, allocations: 93.03 kB / 0.85 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.5665, allocations: 148.4 kB / 0.8501 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.5666, allocations: 37.7 kB / 0.8501 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.5666, allocations: 108.6 kB / 0.8502 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.59e-05/0.5667, allocations: 31.55 kB / 0.8503 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-06/0.5667, allocations: 4 kB / 0.8503 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5668, allocations: 322.8 kB / 0.8506 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.618e-05/0.5669, allocations: 43.97 kB / 0.8506 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.5671, allocations: 219.2 kB / 0.8508 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.5673, allocations: 101.6 kB / 0.8509 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5673, allocations: 0 / 0.8509 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002497/0.5675, allocations: 177.2 kB / 0.8511 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.5676, allocations: 8 kB / 0.8511 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.5676, allocations: 4 kB / 0.8511 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.5676, allocations: 0 / 0.8511 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.5677, allocations: 11.98 kB / 0.8511 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.5677, allocations: 0 / 0.8511 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.568, allocations: 87.81 kB / 0.8512 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.568, allocations: 8 kB / 0.8512 GB, free: 11.41 MB / 0.5261 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 0.000121/0.5681, allocations: 141.8 kB / 0.8514 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.5682, allocations: 11.84 kB / 0.8514 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.99e-05/0.5682, allocations: 12.72 kB / 0.8514 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5682, allocations: 0 / 0.8514 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5682, allocations: 4 kB / 0.8514 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.5682, allocations: 0 / 0.8514 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.5684, allocations: 205.4 kB / 0.8516 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5684, allocations: 0 / 0.8516 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.5684, allocations: 12 kB / 0.8516 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.5684, allocations: 0 / 0.8516 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-06/0.5684, allocations: 4 kB / 0.8516 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5685, allocations: 4 kB / 0.8516 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5685, allocations: 0 / 0.8516 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.5687, allocations: 194.3 kB / 0.8518 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.843e-05/0.5688, allocations: 89 kB / 0.8519 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.5688, allocations: 4 kB / 0.8519 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.936e-05/0.5688, allocations: 7.938 kB / 0.8519 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.5689, allocations: 11.98 kB / 0.8519 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.5689, allocations: 4 kB / 0.8519 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.273e-05/0.569, allocations: 118 kB / 0.852 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/0.569, allocations: 0 / 0.852 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003152/0.5693, allocations: 79.94 kB / 0.8521 GB, free: 10.42 MB / 0.5261 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.0002544/0.5696, allocations: 179.1 kB / 0.8523 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002498/0.5698, allocations: 163.3 kB / 0.8524 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.5699, allocations: 0 / 0.8524 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.858e-05/0.5699, allocations: 52.09 kB / 0.8525 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.5701, allocations: 11.88 kB / 0.8525 GB, free: 10 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.5705, allocations: 253.5 kB / 0.8527 GB, free: 9.727 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.5708, allocations: 0.7043 MB / 0.8534 GB, free: 8.996 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.352e-05/0.5709, allocations: 12.66 kB / 0.8534 GB, free: 8.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.5709, allocations: 11.44 kB / 0.8534 GB, free: 8.969 MB / 0.5261 GB Notification: Performance of SimCode: time 3.01e-07/0.5709, allocations: 0 / 0.8534 GB, free: 8.969 MB / 0.5261 GB Notification: Performance of Templates: time 0.005091/0.576, allocations: 2.348 MB / 0.8557 GB, free: 6.648 MB / 0.5261 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)