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.524/1.524, allocations: 252 MB / 267.3 MB, free: 10.84 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.001374/0.001374, allocations: 179.8 kB / 327 MB, free: 2.102 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.122/2.122, allocations: 205.4 MB / 0.578 GB, free: 20.11 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.0009561/0.000956, allocations: 92.38 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005002/0.0005003, allocations: 12.56 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3556, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001808/0.3575, allocations: 1.171 MB / 0.902 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009959/0.3585, allocations: 447 kB / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.792e-05/0.3586, allocations: 0 / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.3587, allocations: 7.938 kB / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.3589, allocations: 19.84 kB / 0.9025 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006805/0.3596, allocations: 200.2 kB / 0.9027 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.36, allocations: 283.7 kB / 0.903 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.175e-05/0.36, allocations: 12.23 kB / 0.903 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.3603, allocations: 135.7 kB / 0.9031 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.3605, allocations: 127.6 kB / 0.9032 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.401e-05/0.3606, allocations: 15.94 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.3608, allocations: 39.98 kB / 0.9033 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3609, allocations: 43.88 kB / 0.9033 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.361, allocations: 129.3 kB / 0.9034 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003312/0.3614, allocations: 263.3 kB / 0.9037 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3614, allocations: 0 / 0.9037 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3614, allocations: 4 kB / 0.9037 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3614, allocations: 0 / 0.9037 GB, free: 60.51 MB / 0.6042 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.0009332/0.3624, allocations: 0.5064 MB / 0.9042 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.3624, allocations: 12.03 kB / 0.9042 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.265e-05/0.3625, allocations: 42.73 kB / 0.9042 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.787e-05/0.3626, allocations: 28.75 kB / 0.9043 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.3629, allocations: 254.3 kB / 0.9045 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.363, allocations: 24.36 kB / 0.9045 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.363, allocations: 24.38 kB / 0.9046 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004825/0.3635, allocations: 265.3 kB / 0.9048 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3636, allocations: 3.938 kB / 0.9048 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.3636, allocations: 7.984 kB / 0.9048 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.3636, allocations: 4 kB / 0.9048 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.3639, allocations: 103.9 kB / 0.9049 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000367/0.3643, allocations: 383.8 kB / 0.9053 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.3646, allocations: 242.6 kB / 0.9055 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.3649, allocations: 135.5 kB / 0.9057 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.3649, allocations: 0 / 0.9057 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004976/0.3654, allocations: 288.1 kB / 0.9059 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3654, allocations: 0 / 0.9059 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=24): time 0.001054/0.3665, allocations: 0.5246 MB / 0.9064 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.3666, allocations: 148.5 kB / 0.9066 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.3667, allocations: 160.1 kB / 0.9067 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.3668, allocations: 41.7 kB / 0.9068 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.3668, allocations: 108.6 kB / 0.9069 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.246e-05/0.3669, allocations: 55.27 kB / 0.9069 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.367, allocations: 12 kB / 0.9069 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.272e-05/0.3671, allocations: 330.8 kB / 0.9073 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.3673, allocations: 179.9 kB / 0.9074 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.3676, allocations: 223 kB / 0.9076 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.3679, allocations: 309 kB / 0.9079 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.368, allocations: 0 / 0.9079 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000929/0.3689, allocations: 0.737 MB / 0.9087 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.967e-05/0.369, allocations: 95.36 kB / 0.9087 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.369, allocations: 0 / 0.9087 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.369, allocations: 4 kB / 0.9088 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3691, allocations: 19.92 kB / 0.9088 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3691, allocations: 7.984 kB / 0.9088 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.3696, allocations: 85.88 kB / 0.9089 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.3696, allocations: 23.98 kB / 0.9089 GB, free: 54.82 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.3698, allocations: 156.3 kB / 0.909 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.3698, allocations: 23.73 kB / 0.9091 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.3699, allocations: 20.66 kB / 0.9091 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.3699, allocations: 4 kB / 0.9091 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.3699, allocations: 4 kB / 0.9091 GB, free: 54.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3699, allocations: 3.984 kB / 0.9091 GB, free: 54.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002523/0.3702, allocations: 261.5 kB / 0.9093 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3702, allocations: 0 / 0.9093 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.3703, allocations: 12 kB / 0.9093 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3703, allocations: 11.92 kB / 0.9094 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.3703, allocations: 7.984 kB / 0.9094 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.3703, allocations: 3.938 kB / 0.9094 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3703, allocations: 4 kB / 0.9094 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008013/0.3711, allocations: 470.6 kB / 0.9098 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.3712, allocations: 96.8 kB / 0.9099 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.3713, allocations: 19.98 kB / 0.9099 GB, free: 53.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.3714, allocations: 19.98 kB / 0.91 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/0.3715, allocations: 19.97 kB / 0.91 GB, free: 53.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.3716, allocations: 27.91 kB / 0.91 GB, free: 53.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.549e-05/0.3716, allocations: 119.2 kB / 0.9101 GB, free: 53.45 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3717, allocations: 0 / 0.9101 GB, free: 53.45 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003826/0.372, allocations: 79.98 kB / 0.9102 GB, free: 53.38 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001255/0.3733, allocations: 1.036 MB / 0.9112 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0009695/0.3743, allocations: 0.691 MB / 0.9119 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3743, allocations: 0 / 0.9119 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.3746, allocations: 164.2 kB / 0.912 GB, free: 51.43 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.375, allocations: 26.3 kB / 0.9121 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003962/0.3789, allocations: 3.181 MB / 0.9152 GB, free: 48.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.3792, allocations: 0.7246 MB / 0.9159 GB, free: 47.33 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.811e-05/0.3792, allocations: 13.36 kB / 0.9159 GB, free: 47.32 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.806e-05/0.3793, allocations: 39.42 kB / 0.9159 GB, free: 47.28 MB / 0.6042 GB Notification: Performance of SimCode: time 5.61e-07/0.3793, allocations: 0 / 0.9159 GB, free: 47.28 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.3974, allocations: 4.699 MB / 0.9205 GB, free: 42.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.3977, allocations: 220.3 kB / 0.9207 GB, free: 42.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.117/2.514, allocations: 6.953 kB / 0.9207 GB, free: 42.51 MB / 0.6042 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)