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.447/1.447, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 177.5 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009141/0.0009138, allocations: 99.83 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 10.52 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2516, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.4261, allocations: 132.3 MB / 1.029 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.4265, allocations: 75.95 kB / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.4367, allocations: 3.291 MB / 1.033 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.396e-06/0.4368, allocations: 4 kB / 1.033 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.4368, allocations: 0 / 1.033 GB, free: 8.137 MB / 0.6823 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.0008954/0.4377, allocations: 0.5333 MB / 1.033 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.4377, allocations: 12.03 kB / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.575e-05/0.4378, allocations: 31.8 kB / 1.033 GB, free: 7.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.4384, allocations: 277 kB / 1.033 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.29e-05/0.4385, allocations: 23.88 kB / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.4386, allocations: 31.98 kB / 1.033 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.4391, allocations: 248.8 kB / 1.034 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4391, allocations: 0 / 1.034 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.4391, allocations: 11.98 kB / 1.034 GB, free: 6.863 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.4391, allocations: 8 kB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.4394, allocations: 103.9 kB / 1.034 GB, free: 6.754 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004193/0.4399, allocations: 379.8 kB / 1.034 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004167/0.4403, allocations: 244.5 kB / 1.034 GB, free: 6.051 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.4403, allocations: 0 / 1.034 GB, free: 6.051 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004817/0.4408, allocations: 285.4 kB / 1.035 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.4408, allocations: 0 / 1.035 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=24): time 0.001117/0.4419, allocations: 0.5291 MB / 1.035 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.4421, allocations: 148.5 kB / 1.035 GB, free: 5.039 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.4422, allocations: 138.9 kB / 1.035 GB, free: 4.898 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.4423, allocations: 45.7 kB / 1.035 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.749e-05/0.4424, allocations: 104.6 kB / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.566e-05/0.4424, allocations: 63.5 kB / 1.036 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/0.4425, allocations: 8 kB / 1.036 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4426, allocations: 326.8 kB / 1.036 GB, free: 4.344 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.4429, allocations: 179.8 kB / 1.036 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.4433, allocations: 219.2 kB / 1.036 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/0.4436, allocations: 229.5 kB / 1.037 GB, free: 3.707 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4437, allocations: 0 / 1.037 GB, free: 3.707 MB / 0.6823 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001129/0.4448, allocations: 0.7256 MB / 1.037 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4449, allocations: 83.33 kB / 1.037 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4449, allocations: 0 / 1.037 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.445, allocations: 4 kB / 1.037 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.4451, allocations: 23.92 kB / 1.037 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.4451, allocations: 0 / 1.037 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/0.4455, allocations: 83.8 kB / 1.037 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.4456, allocations: 19.98 kB / 1.037 GB, free: 2.742 MB / 0.6823 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 () * Number of clocked 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.0001958/0.4458, allocations: 152.4 kB / 1.038 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.355e-05/0.4458, allocations: 27.89 kB / 1.038 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.941e-05/0.4459, allocations: 16.67 kB / 1.038 GB, free: 2.539 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.4459, allocations: 4 kB / 1.038 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4459, allocations: 3.938 kB / 1.038 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4459, allocations: 0 / 1.038 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.4463, allocations: 273.3 kB / 1.038 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4463, allocations: 0 / 1.038 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.549e-05/0.4463, allocations: 8 kB / 1.038 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.4463, allocations: 4 kB / 1.038 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.4464, allocations: 19.91 kB / 1.038 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.4464, allocations: 11.95 kB / 1.038 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4464, allocations: 0 / 1.038 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000901/0.4473, allocations: 0.4928 MB / 1.038 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.925e-05/0.4474, allocations: 88.92 kB / 1.039 GB, free: 1.527 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.4475, allocations: 15.98 kB / 1.039 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.4477, allocations: 19.98 kB / 1.039 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.4478, allocations: 27.84 kB / 1.039 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.4478, allocations: 23.97 kB / 1.039 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001004/0.4479, allocations: 113.3 kB / 1.039 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4479, allocations: 0 / 1.039 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003573/0.4483, allocations: 91.98 kB / 1.039 GB, free: 1.242 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0002997/0.4486, allocations: 154.9 kB / 1.039 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001054/0.4497, allocations: 0.6898 MB / 1.04 GB, free: 376 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4497, allocations: 0 / 1.04 GB, free: 376 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.45, allocations: 159.9 kB / 1.04 GB, free: 216 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.4502, allocations: 12.23 kB / 1.04 GB, free: 204 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008965/0.4511, allocations: 413.2 kB / 1.04 GB, free: 15.75 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.4515, allocations: 0.7169 MB / 1.041 GB, free: 15.01 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.042e-05/0.4516, allocations: 13.42 kB / 1.041 GB, free: 15 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.4516, allocations: 19.44 kB / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of SimCode: time 5.41e-07/0.4516, allocations: 0 / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of Templates: time 0.006732/0.4584, allocations: 3.157 MB / 1.044 GB, free: 11.86 MB / 0.698 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