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.471/1.471, allocations: 249.5 MB / 257 MB, free: 6.883 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.001082/0.001083, allocations: 172.9 kB / 316.3 MB, free: 3.242 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.779/1.779, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008136/0.0008135, allocations: 95.81 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.649e-05/1.651e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2009, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6779/0.8789, allocations: 132.5 MB / 1.015 GB, free: 5.293 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.8791, allocations: 72.58 kB / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01003/0.8891, allocations: 3.274 MB / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8892, allocations: 0 / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.8892, allocations: 0 / 1.018 GB, free: 2.395 MB / 0.6355 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.0009737/0.8902, allocations: 0.5343 MB / 1.018 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.8902, allocations: 8.031 kB / 1.018 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.8904, allocations: 23.91 kB / 1.018 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006334/0.891, allocations: 277.7 kB / 1.019 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.891, allocations: 11.98 kB / 1.019 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-05/0.8911, allocations: 31.17 kB / 1.019 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001937/0.8913, allocations: 74.41 kB / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.8917, allocations: 248.5 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.8917, allocations: 0 / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.8917, allocations: 4 kB / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.8917, allocations: 0 / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003974/0.8921, allocations: 348.6 kB / 1.019 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002714/0.8924, allocations: 211.4 kB / 1.02 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.8926, allocations: 116.7 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.8926, allocations: 4 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.893, allocations: 252.1 kB / 1.02 GB, free: 344 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.893, allocations: 0 / 1.02 GB, free: 344 kB / 0.6355 GB Notification: Performance of matching and sorting (n=24): time 0.0006432/0.8937, allocations: 401.9 kB / 1.02 GB, free: 8 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.8938, allocations: 144.3 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.8939, allocations: 128.6 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.894, allocations: 45.52 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.732e-05/0.8941, allocations: 103.5 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.076e-05/0.8941, allocations: 58.95 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.8942, allocations: 8 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.8943, allocations: 334.4 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.8946, allocations: 153.8 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.8948, allocations: 201.8 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.8952, allocations: 147.2 kB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8952, allocations: 0 / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00092/0.8961, allocations: 0.624 MB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.517e-05/0.8962, allocations: 79.25 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.8962, allocations: 1.25 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.321e-05/0.8962, allocations: 7.953 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.8964, allocations: 19.61 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.8964, allocations: 4 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003848/0.8968, allocations: 75.83 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.8968, allocations: 23.92 kB / 1.022 GB, free: 14.11 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.0001301/0.897, allocations: 136 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.897, allocations: 15.81 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.897, allocations: 16.55 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.8971, allocations: 11.95 kB / 1.023 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.8971, allocations: 4 kB / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.8971, allocations: 0 / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.8973, allocations: 236.8 kB / 1.023 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.8973, allocations: 4 kB / 1.023 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.383e-05/0.8974, allocations: 8 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.8974, allocations: 4 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.8974, allocations: 15.66 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.8974, allocations: 0 / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.8974, allocations: 4 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/0.898, allocations: 459.4 kB / 1.023 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.898, allocations: 96.88 kB / 1.023 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.8981, allocations: 23.8 kB / 1.023 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.8982, allocations: 11.98 kB / 1.023 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.585e-05/0.8983, allocations: 23.91 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.8984, allocations: 19.84 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.61e-05/0.8985, allocations: 110.4 kB / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.603e-06/0.8985, allocations: 0 / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003313/0.8988, allocations: 83.67 kB / 1.024 GB, free: 12.89 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.000257/0.8991, allocations: 154.7 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007414/0.8998, allocations: 0.6295 MB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.8998, allocations: 0 / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.9, allocations: 154 kB / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.9002, allocations: 11.94 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.9007, allocations: 284.4 kB / 1.025 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.9011, allocations: 0.7205 MB / 1.025 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.521e-05/0.9011, allocations: 9.203 kB / 1.025 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.9012, allocations: 19.19 kB / 1.026 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.9012, allocations: 0 / 1.026 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of Templates: time 0.005527/0.9067, allocations: 3.071 MB / 1.029 GB, free: 8.145 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