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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.385/1.385, 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.001144/0.001145, allocations: 179.2 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.001022/0.001022, allocations: 96.39 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003392, allocations: 13.75 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2433, allocations: 106.3 MB / 0.9001 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1783/0.4217, allocations: 132.3 MB / 1.029 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.422, allocations: 67.97 kB / 1.029 GB, free: 11.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01055/0.4326, allocations: 3.305 MB / 1.033 GB, free: 8 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4326, allocations: 0 / 1.033 GB, free: 8 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.4327, allocations: 4 kB / 1.033 GB, free: 7.996 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.0009865/0.4336, allocations: 0.5488 MB / 1.033 GB, free: 7.387 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4337, allocations: 8.031 kB / 1.033 GB, free: 7.379 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.751e-05/0.4338, allocations: 46.53 kB / 1.033 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.4339, allocations: 27.81 kB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.4345, allocations: 273.1 kB / 1.033 GB, free: 6.992 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.4346, allocations: 16 kB / 1.034 GB, free: 6.977 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.4346, allocations: 27.98 kB / 1.034 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/0.4352, allocations: 268.8 kB / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.4352, allocations: 0 / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.4352, allocations: 7.984 kB / 1.034 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4352, allocations: 0 / 1.034 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.4355, allocations: 103.9 kB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004238/0.436, allocations: 384 kB / 1.034 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.4364, allocations: 236.3 kB / 1.034 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.4364, allocations: 4.125 kB / 1.035 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/0.4369, allocations: 284.3 kB / 1.035 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.4369, allocations: 3.938 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of matching and sorting (n=24): time 0.001131/0.438, allocations: 0.5364 MB / 1.035 GB, free: 5.008 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.4381, allocations: 132.5 kB / 1.035 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.4383, allocations: 146.9 kB / 1.036 GB, free: 4.699 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.207e-05/0.4384, allocations: 41.7 kB / 1.036 GB, free: 4.652 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.4385, allocations: 112.5 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.398e-05/0.4385, allocations: 55.27 kB / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.4386, allocations: 12 kB / 1.036 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4387, allocations: 326.8 kB / 1.036 GB, free: 4.145 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.439, allocations: 183.9 kB / 1.036 GB, free: 3.965 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002725/0.4393, allocations: 211.3 kB / 1.036 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.4395, allocations: 233.9 kB / 1.037 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4396, allocations: 0 / 1.037 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009881/0.4405, allocations: 0.7269 MB / 1.037 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.686e-05/0.4406, allocations: 83.33 kB / 1.037 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.4407, allocations: 0 / 1.037 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.4407, allocations: 8 kB / 1.037 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4408, allocations: 19.92 kB / 1.038 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4408, allocations: 4 kB / 1.038 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.4412, allocations: 79.89 kB / 1.038 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.4413, allocations: 27.92 kB / 1.038 GB, free: 2.531 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.0001812/0.4415, allocations: 152.4 kB / 1.038 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.286e-05/0.4415, allocations: 23.78 kB / 1.038 GB, free: 2.352 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.4416, allocations: 20.67 kB / 1.038 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.4416, allocations: 4 kB / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4416, allocations: 8 kB / 1.038 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.4416, allocations: 3.984 kB / 1.038 GB, free: 2.312 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.4418, allocations: 257.4 kB / 1.038 GB, free: 2.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4419, allocations: 0 / 1.038 GB, free: 2.012 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.4419, allocations: 11.98 kB / 1.038 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4419, allocations: 4 kB / 1.038 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.442, allocations: 11.98 kB / 1.038 GB, free: 1.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.442, allocations: 3.953 kB / 1.038 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.442, allocations: 7.938 kB / 1.038 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008596/0.4429, allocations: 0.4919 MB / 1.039 GB, free: 1.438 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.4429, allocations: 96.86 kB / 1.039 GB, free: 1.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.443, allocations: 19.98 kB / 1.039 GB, free: 1.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.4432, allocations: 19.98 kB / 1.039 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.099e-05/0.4432, allocations: 19.97 kB / 1.039 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.4433, allocations: 23.97 kB / 1.039 GB, free: 1.242 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.822e-05/0.4434, allocations: 113 kB / 1.039 GB, free: 1.133 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.543e-06/0.4434, allocations: 4 kB / 1.039 GB, free: 1.129 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003702/0.4438, allocations: 91.81 kB / 1.039 GB, free: 1.039 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.001313/0.4451, allocations: 1.286 MB / 1.04 GB, free: 15.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000924/0.446, allocations: 0.6873 MB / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.446, allocations: 0 / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003603/0.4464, allocations: 167.8 kB / 1.041 GB, free: 14.83 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001578/0.4466, allocations: 4 kB / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.4493, allocations: 2.03 MB / 1.043 GB, free: 12.71 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.4497, allocations: 0.7363 MB / 1.044 GB, free: 11.95 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.263e-05/0.4497, allocations: 13.42 kB / 1.044 GB, free: 11.94 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.354e-05/0.4498, allocations: 35.42 kB / 1.044 GB, free: 11.9 MB / 0.698 GB Notification: Performance of SimCode: time 8.11e-07/0.4498, allocations: 0 / 1.044 GB, free: 11.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.4667, allocations: 4.604 MB / 1.048 GB, free: 7.484 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.4669, allocations: 196.5 kB / 1.048 GB, free: 7.242 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.236, allocations: 0.5 kB / 1.048 GB, free: 7.242 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)