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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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.334/1.334, allocations: 252 MB / 267.9 MB, free: 10.95 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.0009589/0.0009589, allocations: 181.8 kB / 327.6 MB, free: 2.191 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.594/1.594, allocations: 205.4 MB / 0.5785 GB, free: 20.19 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.0009001/0.0008999, allocations: 97.59 kB / 0.6831 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 11.81 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1868, allocations: 106.3 MB / 0.9012 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1596/0.3464, allocations: 132.3 MB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.3467, allocations: 75.89 kB / 1.03 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009561/0.3563, allocations: 3.307 MB / 1.034 GB, free: 7.871 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3563, allocations: 0 / 1.034 GB, free: 7.871 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.3563, allocations: 4 kB / 1.034 GB, free: 7.867 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.0008431/0.3572, allocations: 0.5374 MB / 1.034 GB, free: 7.266 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3572, allocations: 8.031 kB / 1.034 GB, free: 7.258 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.372e-05/0.3573, allocations: 32.73 kB / 1.034 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.3578, allocations: 278.1 kB / 1.035 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.37e-05/0.3579, allocations: 20.31 kB / 1.035 GB, free: 6.898 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.358, allocations: 28.36 kB / 1.035 GB, free: 6.871 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.3585, allocations: 257.4 kB / 1.035 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3585, allocations: 3.938 kB / 1.035 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3585, allocations: 7.984 kB / 1.035 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.3585, allocations: 4 kB / 1.035 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000269/0.3588, allocations: 103.8 kB / 1.035 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003996/0.3592, allocations: 383.8 kB / 1.035 GB, free: 6.051 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.3596, allocations: 238.7 kB / 1.036 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.3599, allocations: 123.5 kB / 1.036 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.3599, allocations: 19.92 kB / 1.036 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004545/0.3604, allocations: 276.4 kB / 1.036 GB, free: 5.336 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.3604, allocations: 7.938 kB / 1.036 GB, free: 5.328 MB / 0.6823 GB Notification: Performance of matching and sorting (n=24): time 0.001106/0.3615, allocations: 0.5284 MB / 1.036 GB, free: 4.793 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.115e-05/0.3616, allocations: 148.4 kB / 1.037 GB, free: 4.617 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3617, allocations: 152 kB / 1.037 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.526e-05/0.3618, allocations: 45.7 kB / 1.037 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.944e-05/0.3619, allocations: 104.6 kB / 1.037 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.026e-05/0.3619, allocations: 63.23 kB / 1.037 GB, free: 4.242 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.362, allocations: 16.25 kB / 1.037 GB, free: 4.227 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3621, allocations: 326.8 kB / 1.037 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.3624, allocations: 175.8 kB / 1.037 GB, free: 3.727 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.3627, allocations: 223.1 kB / 1.038 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.3631, allocations: 305.3 kB / 1.038 GB, free: 3.176 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3631, allocations: 0 / 1.038 GB, free: 3.176 MB / 0.6823 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009748/0.3641, allocations: 0.7218 MB / 1.039 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.3642, allocations: 87.31 kB / 1.039 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3642, allocations: 0 / 1.039 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3642, allocations: 7.984 kB / 1.039 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.559e-05/0.3643, allocations: 15.94 kB / 1.039 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3644, allocations: 0 / 1.039 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.3647, allocations: 87.81 kB / 1.039 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.3648, allocations: 20 kB / 1.039 GB, free: 2.211 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.000166/0.3649, allocations: 161 kB / 1.039 GB, free: 2.047 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.365, allocations: 23.75 kB / 1.039 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.365, allocations: 16.7 kB / 1.039 GB, free: 2.004 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-06/0.365, allocations: 4 kB / 1.039 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.365, allocations: 4 kB / 1.039 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3651, allocations: 0 / 1.039 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.3653, allocations: 269.3 kB / 1.039 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3653, allocations: 0 / 1.039 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-05/0.3654, allocations: 11.98 kB / 1.039 GB, free: 1.672 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.3654, allocations: 7.938 kB / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.3654, allocations: 11.97 kB / 1.039 GB, free: 1.652 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3654, allocations: 11.88 kB / 1.039 GB, free: 1.641 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.3654, allocations: 4 kB / 1.039 GB, free: 1.637 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007368/0.3662, allocations: 466.6 kB / 1.04 GB, free: 1.156 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.3662, allocations: 92.95 kB / 1.04 GB, free: 1.047 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6e-05/0.3663, allocations: 19.97 kB / 1.04 GB, free: 1.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3665, allocations: 27.97 kB / 1.04 GB, free: 1 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.3665, allocations: 23.91 kB / 1.04 GB, free: 0.9766 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.3666, allocations: 19.98 kB / 1.04 GB, free: 0.957 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.187e-05/0.3666, allocations: 113.1 kB / 1.04 GB, free: 0.8477 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3666, allocations: 4 kB / 1.04 GB, free: 0.8438 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000312/0.367, allocations: 83.98 kB / 1.04 GB, free: 0.7617 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.0002024/0.3672, allocations: 155.8 kB / 1.04 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0008786/0.3681, allocations: 0.6821 MB / 1.041 GB, free: 15.89 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3681, allocations: 0 / 1.041 GB, free: 15.89 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.3684, allocations: 161.4 kB / 1.041 GB, free: 15.74 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.3686, allocations: 27.84 kB / 1.041 GB, free: 15.71 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007666/0.3694, allocations: 413.5 kB / 1.042 GB, free: 15.27 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.3697, allocations: 0.7169 MB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.582e-05/0.3697, allocations: 13.42 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.3698, allocations: 15.44 kB / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of SimCode: time 2.5e-07/0.3698, allocations: 0 / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of Templates: time 0.006351/0.3761, allocations: 3.186 MB / 1.045 GB, free: 11.34 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 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)