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.19/2.19, allocations: 390.5 MB / 398 MB, free: 10.92 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.001069/0.001093, allocations: 188.4 kB / 491.2 MB, free: 1.602 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.583/1.583, allocations: 221.5 MB / 0.7868 GB, free: 13.33 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.001091/0.001091, allocations: 95.52 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.482e-05/1.483e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3107, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.398, allocations: 149.7 MB / 1.359 GB, free: 17.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/1.398, allocations: 69.16 kB / 1.359 GB, free: 17.33 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01115/1.409, allocations: 3.94 MB / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.485e-06/1.409, allocations: 0 / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.092e-05/1.41, allocations: 3.938 kB / 1.362 GB, free: 32.81 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.000564/1.41, allocations: 431.2 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.41, allocations: 7.719 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.686e-05/1.41, allocations: 17.41 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/1.411, allocations: 213.1 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/1.411, allocations: 3.969 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/1.411, allocations: 7.688 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001142/1.411, allocations: 38.77 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/1.411, allocations: 86.52 kB / 1.363 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/1.411, allocations: 7.812 kB / 1.363 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/1.411, allocations: 5.688 kB / 1.363 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/1.411, allocations: 0 / 1.363 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/1.411, allocations: 209.6 kB / 1.363 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/1.411, allocations: 77.81 kB / 1.363 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.778e-05/1.411, allocations: 57.22 kB / 1.364 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/1.411, allocations: 3.938 kB / 1.364 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/1.412, allocations: 113.4 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/1.412, allocations: 0 / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003708/1.412, allocations: 167.6 kB / 1.364 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/1.412, allocations: 85.81 kB / 1.364 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/1.412, allocations: 140.2 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/1.412, allocations: 32.73 kB / 1.364 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/1.412, allocations: 101.9 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/1.412, allocations: 34.23 kB / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-06/1.412, allocations: 0 / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001368/1.412, allocations: 321.9 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.123e-05/1.412, allocations: 43.95 kB / 1.365 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/1.413, allocations: 205.9 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/1.413, allocations: 72.47 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/1.413, allocations: 0 / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002206/1.413, allocations: 156.6 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.413, allocations: 3.812 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/1.413, allocations: 13.22 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/1.413, allocations: 7.891 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.036e-05/1.413, allocations: 9.125 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/1.413, allocations: 13.27 kB / 1.365 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/1.413, allocations: 78.48 kB / 1.365 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/1.413, allocations: 11.62 kB / 1.365 GB, free: 30.89 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 9.818e-05/1.414, allocations: 112.5 kB / 1.365 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.874e-05/1.414, allocations: 16.86 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.613e-05/1.414, allocations: 13.72 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/1.414, allocations: 0 / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.414, allocations: 0 / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/1.414, allocations: 9.203 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/1.414, allocations: 162.7 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/1.414, allocations: 5.328 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.128e-05/1.414, allocations: 7.875 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/1.414, allocations: 0 / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/1.414, allocations: 5.594 kB / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.414, allocations: 0 / 1.365 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.414, allocations: 4 kB / 1.365 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/1.414, allocations: 201.3 kB / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/1.414, allocations: 89.73 kB / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/1.414, allocations: 0 / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.384e-05/1.414, allocations: 5.484 kB / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/1.414, allocations: 10.42 kB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/1.414, allocations: 13.06 kB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.927e-05/1.414, allocations: 108.1 kB / 1.366 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.414, allocations: 0 / 1.366 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003309/1.415, allocations: 84.84 kB / 1.366 GB, free: 30.3 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.0002584/1.415, allocations: 175.8 kB / 1.366 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000207/1.415, allocations: 156.1 kB / 1.366 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/1.415, allocations: 0 / 1.366 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.984e-05/1.415, allocations: 45.36 kB / 1.366 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/1.415, allocations: 7.781 kB / 1.366 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002999/1.416, allocations: 154.6 kB / 1.366 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/1.416, allocations: 0.7055 MB / 1.367 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.734e-05/1.416, allocations: 6.641 kB / 1.367 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.268e-05/1.416, allocations: 24.81 kB / 1.367 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.416, allocations: 0 / 1.367 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.00514/1.421, allocations: 2.227 MB / 1.369 GB, free: 29.11 MB / 0.8386 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