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.26/2.26, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.00118/0.00118, allocations: 184.2 kB / 492.3 MB, free: 0.6055 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.557/1.557, allocations: 221.3 MB / 0.7872 GB, free: 12.88 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.0009061/0.0009059, allocations: 98.75 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.751e-05/2.753e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.26, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.827/1.087, allocations: 149.6 MB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/1.087, allocations: 69.56 kB / 1.359 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01056/1.098, allocations: 3.949 MB / 1.362 GB, free: 34.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/1.098, allocations: 0 / 1.362 GB, free: 34.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.533e-06/1.098, allocations: 4 kB / 1.362 GB, free: 34.52 MB / 0.8386 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.0003793/1.098, allocations: 422 kB / 1.363 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/1.098, allocations: 7.688 kB / 1.363 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/1.098, allocations: 23.28 kB / 1.363 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/1.099, allocations: 215.7 kB / 1.363 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/1.099, allocations: 7.75 kB / 1.363 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/1.099, allocations: 19.19 kB / 1.363 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/1.099, allocations: 86.89 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/1.099, allocations: 1.453 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/1.099, allocations: 0 / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/1.099, allocations: 0 / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.466e-05/1.099, allocations: 48.16 kB / 1.363 GB, free: 33.85 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/1.099, allocations: 243.4 kB / 1.363 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.294e-05/1.099, allocations: 83.77 kB / 1.363 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.526e-05/1.099, allocations: 57.66 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/1.099, allocations: 0 / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/1.1, allocations: 115.4 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/1.1, allocations: 0 / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002727/1.1, allocations: 170.8 kB / 1.364 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/1.1, allocations: 83.58 kB / 1.364 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.617e-05/1.1, allocations: 144.2 kB / 1.364 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/1.1, allocations: 34.09 kB / 1.364 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.795e-05/1.1, allocations: 102.6 kB / 1.364 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/1.1, allocations: 33.03 kB / 1.364 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/1.1, allocations: 7.5 kB / 1.364 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.163e-05/1.1, allocations: 329 kB / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.253e-05/1.1, allocations: 38.81 kB / 1.365 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/1.1, allocations: 216.2 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.425e-05/1.101, allocations: 65.97 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/1.101, allocations: 0 / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001958/1.101, allocations: 171.1 kB / 1.365 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/1.101, allocations: 8.781 kB / 1.365 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/1.101, allocations: 5.016 kB / 1.365 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/1.101, allocations: 3.781 kB / 1.365 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.457e-05/1.101, allocations: 14.03 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/1.101, allocations: 3.875 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/1.101, allocations: 86.62 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/1.101, allocations: 11.16 kB / 1.365 GB, free: 32.59 MB / 0.8386 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 () * 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 7.012e-05/1.101, allocations: 121.2 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/1.101, allocations: 14.5 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/1.101, allocations: 14.41 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/1.101, allocations: 3.938 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/1.101, allocations: 11.77 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/1.101, allocations: 0 / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.095e-05/1.101, allocations: 189.5 kB / 1.365 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.101, allocations: 4.031 kB / 1.365 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.091e-05/1.101, allocations: 11.44 kB / 1.365 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/1.101, allocations: 7.922 kB / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/1.101, allocations: 7.875 kB / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.101, allocations: 0 / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.101, allocations: 6.891 kB / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/1.102, allocations: 202.2 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/1.102, allocations: 84.95 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/1.102, allocations: 3.812 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-05/1.102, allocations: 14.39 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/1.102, allocations: 10.41 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/1.102, allocations: 3.969 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.508e-05/1.102, allocations: 111.1 kB / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.102, allocations: 0 / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002713/1.102, allocations: 91.25 kB / 1.366 GB, free: 31.95 MB / 0.8386 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) * 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.0001947/1.102, allocations: 170.9 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001852/1.103, allocations: 163.8 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.103, allocations: 3.812 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.909e-05/1.103, allocations: 44.78 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001175/1.103, allocations: 2.812 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/1.103, allocations: 164.4 kB / 1.367 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/1.103, allocations: 0.7052 MB / 1.367 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.435e-05/1.103, allocations: 11.5 kB / 1.367 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.918e-05/1.103, allocations: 18.5 kB / 1.367 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.103, allocations: 0 / 1.367 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.004181/1.108, allocations: 2.312 MB / 1.369 GB, free: 30.76 MB / 0.8386 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