Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.336/2.336, allocations: 393.5 MB / 408.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 191.8 kB / 0.4902 GB, free: 2.145 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.813/1.813, allocations: 223.1 MB / 0.7992 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009657, allocations: 104 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004004, allocations: 8.625 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3641, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1948/0.5589, allocations: 150.5 MB / 1.376 GB, free: 3.191 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.5591, allocations: 75.95 kB / 1.376 GB, free: 3.117 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0118/0.571, allocations: 3.969 MB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.873e-06/0.571, allocations: 0 / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.571, allocations: 4 kB / 1.38 GB, free: 15.13 MB / 0.8855 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.0006047/0.5716, allocations: 438.8 kB / 1.38 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.5717, allocations: 8.562 kB / 1.381 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.749e-05/0.5718, allocations: 11.91 kB / 1.381 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.5721, allocations: 223.6 kB / 1.381 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.5722, allocations: 8 kB / 1.381 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.5722, allocations: 12 kB / 1.381 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.5724, allocations: 91.25 kB / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.5724, allocations: 0 / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.5724, allocations: 0 / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.5724, allocations: 7.953 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.5725, allocations: 47.83 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00029/0.5728, allocations: 246.5 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.573, allocations: 81.23 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.5731, allocations: 3.938 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.5733, allocations: 113.2 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.5733, allocations: 0 / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0005181/0.5738, allocations: 364 kB / 1.382 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/0.5739, allocations: 89.09 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.574, allocations: 138.6 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.5741, allocations: 37.7 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.911e-05/0.5742, allocations: 100.6 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.409e-05/0.5742, allocations: 39.53 kB / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-06/0.5742, allocations: 8 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.5744, allocations: 322.8 kB / 1.382 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.626e-05/0.5745, allocations: 48.16 kB / 1.382 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.5747, allocations: 214.2 kB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.5748, allocations: 63.84 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5748, allocations: 0 / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002629/0.5751, allocations: 177.3 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.5751, allocations: 9.391 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-05/0.5752, allocations: 12 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.5752, allocations: 3.953 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.068e-05/0.5753, allocations: 8 kB / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.5753, allocations: 0 / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.5756, allocations: 87.81 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.5756, allocations: 4 kB / 1.383 GB, free: 11.83 MB / 0.8855 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.0001486/0.5758, allocations: 149.8 kB / 1.383 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.5758, allocations: 7.906 kB / 1.383 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.5758, allocations: 16.7 kB / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.5758, allocations: 0 / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5759, allocations: 3.953 kB / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.5759, allocations: 0 / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.576, allocations: 201.5 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5761, allocations: 0 / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.775e-05/0.5761, allocations: 7.984 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.5761, allocations: 8 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.5761, allocations: 0 / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5761, allocations: 0 / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5761, allocations: 4 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.5764, allocations: 207.4 kB / 1.384 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.5765, allocations: 85.02 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.5765, allocations: 0 / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.734e-05/0.5766, allocations: 15.92 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.5766, allocations: 11.95 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.5766, allocations: 4 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.892e-05/0.5767, allocations: 113.1 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5767, allocations: 3.938 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004375/0.5772, allocations: 87.92 kB / 1.384 GB, free: 10.82 MB / 0.8855 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.0003512/0.5775, allocations: 173 kB / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002785/0.5778, allocations: 167.3 kB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5778, allocations: 0 / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.104e-05/0.5779, allocations: 43.92 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.578, allocations: 4 kB / 1.384 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004748/0.5785, allocations: 250.2 kB / 1.384 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.5788, allocations: 0.7051 MB / 1.385 GB, free: 9.414 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.801e-05/0.5789, allocations: 8.656 kB / 1.385 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.488e-05/0.5789, allocations: 11.44 kB / 1.385 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of SimCode: time 3.81e-07/0.5789, allocations: 0 / 1.385 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of Templates: time 0.0055/0.5844, allocations: 2.31 MB / 1.387 GB, free: 7.109 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches