Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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) 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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.442/1.442, allocations: 249.3 MB / 261.8 MB, free: 5.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001568, allocations: 176.8 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 86.48 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.83e-05, allocations: 8 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.172, allocations: 106.3 MB / 0.8918 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5747/0.7467, allocations: 132.2 MB / 1.021 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.747, allocations: 69.77 kB / 1.021 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009908/0.7569, allocations: 3.296 MB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7569, allocations: 0 / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.7569, allocations: 0 / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007963/0.7577, allocations: 0.5333 MB / 1.025 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.7578, allocations: 12.03 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.252e-05/0.7579, allocations: 27.89 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005368/0.7584, allocations: 271.4 kB / 1.025 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.7585, allocations: 15.98 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-05/0.7585, allocations: 35.61 kB / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.7589, allocations: 248.5 kB / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.7589, allocations: 0 / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.7589, allocations: 0 / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.759, allocations: 4 kB / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.7591, allocations: 92.33 kB / 1.025 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003741/0.7595, allocations: 388.6 kB / 1.026 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.7598, allocations: 224.5 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.76, allocations: 119.5 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.76, allocations: 4 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003585/0.7604, allocations: 265 kB / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.7604, allocations: 0 / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=24): time 0.000679/0.7611, allocations: 416.2 kB / 1.027 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.7612, allocations: 148.2 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.7613, allocations: 132.2 kB / 1.027 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.7614, allocations: 48.62 kB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.7614, allocations: 100.8 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.7615, allocations: 69.42 kB / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/0.7615, allocations: 11.38 kB / 1.027 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.7617, allocations: 329.6 kB / 1.028 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.762, allocations: 175.7 kB / 1.028 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.7622, allocations: 213.4 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.7625, allocations: 233.1 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7625, allocations: 0 / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001005/0.7636, allocations: 0.7142 MB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/0.7636, allocations: 82.39 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.7637, allocations: 4 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.7637, allocations: 0 / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.7638, allocations: 19.92 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.7638, allocations: 4.062 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.7642, allocations: 79.02 kB / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/0.7643, allocations: 23.23 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.nexStaInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStoInd,$PRE.occSchWee.iPerSta,occSchWee.iPerSta,$PRE.occSchWee.iPerSto,occSchWee.iPerSto,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.nexStaInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStoInd,$PRE.occSchDay.iPerSta,occSchDay.iPerSta,$PRE.occSchDay.iPerSto,occSchDay.iPerSto,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001456/0.7644, allocations: 150 kB / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.7645, allocations: 15.81 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.755e-05/0.7645, allocations: 25.19 kB / 1.029 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.7645, allocations: 4 kB / 1.029 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.7645, allocations: 4 kB / 1.029 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.7646, allocations: 0 / 1.029 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.7648, allocations: 264.5 kB / 1.029 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7648, allocations: 0 / 1.029 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.955e-05/0.7649, allocations: 15.36 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.7649, allocations: 4 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.765, allocations: 19.16 kB / 1.029 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.765, allocations: 7.953 kB / 1.029 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.765, allocations: 7.938 kB / 1.03 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.7656, allocations: 473.9 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.931e-05/0.7657, allocations: 88.92 kB / 1.03 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.7658, allocations: 23.17 kB / 1.03 GB, free: 9.914 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.7659, allocations: 18.97 kB / 1.03 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.766, allocations: 19.41 kB / 1.03 GB, free: 9.883 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.766, allocations: 19.73 kB / 1.03 GB, free: 9.867 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.326e-05/0.7661, allocations: 124.1 kB / 1.03 GB, free: 9.758 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7661, allocations: 7.938 kB / 1.03 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003297/0.7665, allocations: 82.14 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc) * Number of discrete states: 14 (occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,occSchDay.occupied,occSchDay.tOcc,occSchDay.nexStaInd,occSchDay.iPerSta,occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,occSchWee.occupied,occSchWee.tOcc,occSchWee.nexStaInd,occSchWee.iPerSta) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0002399/0.7667, allocations: 141.4 kB / 1.03 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007581/0.7675, allocations: 0.6753 MB / 1.031 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7675, allocations: 0 / 1.031 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.7677, allocations: 152.7 kB / 1.031 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.7678, allocations: 19.42 kB / 1.031 GB, free: 8.953 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005673/0.7684, allocations: 295.4 kB / 1.032 GB, free: 8.68 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.7688, allocations: 0.7278 MB / 1.032 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.542e-05/0.7688, allocations: 13.2 kB / 1.032 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.38e-05/0.7688, allocations: 19.44 kB / 1.032 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.7689, allocations: 0 / 1.032 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of Templates: time 0.005858/0.7747, allocations: 3.162 MB / 1.035 GB, free: 4.781 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches