Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.445/2.445, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001316/0.001316, allocations: 187 kB / 498.1 MB, free: 5.742 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.786/1.786, allocations: 223.2 MB / 0.7948 GB, free: 18.77 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.0009809/0.0009813, allocations: 100.3 kB / 0.9346 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004879/0.0004884, allocations: 8.438 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3091, allocations: 142.3 MB / 1.223 GB, free: 89.57 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.5177, allocations: 149.7 MB / 1.369 GB, free: 3.723 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003835/0.5182, allocations: 71.95 kB / 1.369 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.53, allocations: 3.984 MB / 1.373 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.136e-06/0.5301, allocations: 0 / 1.373 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.5301, allocations: 0 / 1.373 GB, free: 15.65 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.0005902/0.5307, allocations: 434.9 kB / 1.373 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.5308, allocations: 11.97 kB / 1.373 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.5308, allocations: 11.91 kB / 1.373 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.5312, allocations: 226.8 kB / 1.374 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.5312, allocations: 4 kB / 1.374 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.5313, allocations: 19.98 kB / 1.374 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.5315, allocations: 83.36 kB / 1.374 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.5315, allocations: 4 kB / 1.374 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.5315, allocations: 0 / 1.374 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.5315, allocations: 3.953 kB / 1.374 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.5316, allocations: 47.91 kB / 1.374 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002849/0.5319, allocations: 246.4 kB / 1.374 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.532, allocations: 81.23 kB / 1.374 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.5321, allocations: 3.938 kB / 1.374 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.5323, allocations: 117.2 kB / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.5323, allocations: 0 / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.00049/0.5328, allocations: 363.6 kB / 1.375 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.5328, allocations: 81.11 kB / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.533, allocations: 145.7 kB / 1.375 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.533, allocations: 33.7 kB / 1.375 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.5331, allocations: 100.5 kB / 1.375 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.5332, allocations: 43.53 kB / 1.375 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.5332, allocations: 0 / 1.375 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5334, allocations: 330.8 kB / 1.375 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.489e-05/0.5334, allocations: 44.16 kB / 1.375 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.5337, allocations: 213.9 kB / 1.375 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.5338, allocations: 67.8 kB / 1.376 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5338, allocations: 4 kB / 1.376 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002461/0.534, allocations: 161.5 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.5341, allocations: 8 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/0.5341, allocations: 4 kB / 1.376 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.5341, allocations: 3.953 kB / 1.376 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.034e-05/0.5342, allocations: 11.98 kB / 1.376 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5342, allocations: 0 / 1.376 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.5345, allocations: 91.75 kB / 1.376 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.5345, allocations: 7.938 kB / 1.376 GB, free: 12.36 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.0001359/0.5347, allocations: 149.7 kB / 1.376 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.5347, allocations: 11.81 kB / 1.376 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.645e-05/0.5347, allocations: 12.72 kB / 1.376 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.5347, allocations: 0 / 1.376 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.5348, allocations: 3.953 kB / 1.376 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.5348, allocations: 4 kB / 1.376 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.5349, allocations: 189.6 kB / 1.376 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5349, allocations: 3.938 kB / 1.376 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.095e-05/0.535, allocations: 8 kB / 1.376 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.535, allocations: 4 kB / 1.376 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.535, allocations: 4 kB / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.815e-06/0.535, allocations: 8 kB / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.535, allocations: 0 / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.5353, allocations: 203.5 kB / 1.376 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.149e-05/0.5354, allocations: 100.8 kB / 1.377 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.5354, allocations: 4 kB / 1.377 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.115e-05/0.5354, allocations: 8 kB / 1.377 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.5355, allocations: 11.94 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.5355, allocations: 4 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.732e-05/0.5356, allocations: 117 kB / 1.377 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5356, allocations: 0 / 1.377 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003311/0.5359, allocations: 79.94 kB / 1.377 GB, free: 11.34 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.0002788/0.5362, allocations: 180 kB / 1.377 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002837/0.5365, allocations: 163.3 kB / 1.377 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5365, allocations: 0 / 1.377 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 6.959e-05/0.5366, allocations: 47.92 kB / 1.377 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.5368, allocations: 8 kB / 1.377 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004294/0.5372, allocations: 234.9 kB / 1.377 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.5375, allocations: 0.7121 MB / 1.378 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.484e-05/0.5375, allocations: 4.672 kB / 1.378 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.076e-05/0.5376, allocations: 15.44 kB / 1.378 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of SimCode: time 2e-07/0.5376, allocations: 0 / 1.378 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of Templates: time 0.005133/0.5427, allocations: 2.309 MB / 1.38 GB, free: 7.637 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches