Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00471/0.00471, allocations: 104.1 kB / 15.74 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 193.5 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002261/0.002261, allocations: 296.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9492/0.9492, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 91.86 kB / 0.6809 GB, free: 7.523 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.4465, allocations: 86.98 MB / 0.7659 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.00224/0.4488, allocations: 1.41 MB / 0.7672 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008441/0.4497, allocations: 0.4944 MB / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.4497, allocations: 0 / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 7.725e-05/0.4498, allocations: 7.922 kB / 0.7677 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.766e-05/0.4499, allocations: 11.88 kB / 0.7677 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007142/0.4506, allocations: 232.2 kB / 0.768 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000198/0.4508, allocations: 147.8 kB / 0.7681 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.739e-05/0.4509, allocations: 10.8 kB / 0.7681 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.144e-05/0.451, allocations: 55.84 kB / 0.7682 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.847e-05/0.4511, allocations: 39.88 kB / 0.7682 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.4511, allocations: 12 kB / 0.7682 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.4514, allocations: 167.8 kB / 0.7684 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.4514, allocations: 37.67 kB / 0.7684 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.605e-05/0.4515, allocations: 55.72 kB / 0.7685 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.4518, allocations: 239.5 kB / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4518, allocations: 0 / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4518, allocations: 0 / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.4519, allocations: 0 / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005481/0.4524, allocations: 451 kB / 0.7691 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.4525, allocations: 8.031 kB / 0.7691 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.4525, allocations: 42.69 kB / 0.7692 GB, free: 464 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.995e-05/0.4526, allocations: 8.844 kB / 0.7692 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/0.4528, allocations: 212.1 kB / 0.7694 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.4528, allocations: 12.38 kB / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.4528, allocations: 12.38 kB / 0.7694 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.453, allocations: 83.89 kB / 0.7695 GB, free: 84 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.453, allocations: 3.938 kB / 0.7695 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.453, allocations: 0 / 0.7695 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.453, allocations: 0 / 0.7695 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.03e-05/0.4531, allocations: 39.97 kB / 0.7695 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002377/0.4534, allocations: 226.6 kB / 0.7697 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.4535, allocations: 81.17 kB / 0.7698 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.014e-05/0.4536, allocations: 57.81 kB / 0.7699 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.4536, allocations: 0 / 0.7699 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.4538, allocations: 124.8 kB / 0.77 GB, free: 15.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.4538, allocations: 0 / 0.77 GB, free: 15.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003169/0.4541, allocations: 181.5 kB / 0.7702 GB, free: 15.28 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.4542, allocations: 93.09 kB / 0.7703 GB, free: 15.17 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.4543, allocations: 147.8 kB / 0.7704 GB, free: 15.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.4543, allocations: 37.64 kB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.4544, allocations: 100.5 kB / 0.7705 GB, free: 14.87 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.4545, allocations: 39.53 kB / 0.7706 GB, free: 14.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/0.4545, allocations: 57.69 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4546, allocations: 326.8 kB / 0.7709 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.379e-05/0.4547, allocations: 35.98 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.4549, allocations: 211.7 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.4551, allocations: 93.64 kB / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4551, allocations: 0 / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002143/0.4553, allocations: 157.4 kB / 0.7714 GB, free: 13.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.4553, allocations: 8 kB / 0.7714 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/0.4553, allocations: 7.984 kB / 0.7714 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.4554, allocations: 0 / 0.7714 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.4554, allocations: 16 kB / 0.7714 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.4554, allocations: 0 / 0.7714 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.4557, allocations: 63.81 kB / 0.7715 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.4557, allocations: 12 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001152/0.4559, allocations: 141.8 kB / 0.7717 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.4559, allocations: 11.84 kB / 0.7717 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.769e-05/0.4559, allocations: 12.72 kB / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4559, allocations: 3.984 kB / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4559, allocations: 0 / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.4559, allocations: 0 / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.4561, allocations: 201.4 kB / 0.7719 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4561, allocations: 4 kB / 0.7719 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.4561, allocations: 11.98 kB / 0.7719 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4561, allocations: 4 kB / 0.7719 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.4562, allocations: 0 / 0.7719 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4562, allocations: 3.938 kB / 0.7719 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4562, allocations: 4 kB / 0.7719 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.4564, allocations: 181.7 kB / 0.7721 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.4565, allocations: 92.92 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.4565, allocations: 0 / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.226e-05/0.4565, allocations: 7.984 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.4566, allocations: 8 kB / 0.7722 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.4566, allocations: 0 / 0.7722 GB, free: 13.01 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.418e-05/0.4567, allocations: 117.1 kB / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4567, allocations: 0 / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003018/0.457, allocations: 83.92 kB / 0.7724 GB, free: 12.81 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005777/0.4576, allocations: 0.7793 MB / 0.7731 GB, free: 12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002559/0.4578, allocations: 167.2 kB / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4578, allocations: 0 / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.576e-05/0.4579, allocations: 47.97 kB / 0.7733 GB, free: 11.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/0.4581, allocations: 6.5 kB / 0.7733 GB, free: 11.78 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.4597, allocations: 1.712 MB / 0.775 GB, free: 9.973 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.46, allocations: 0.7041 MB / 0.7757 GB, free: 9.242 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.564e-05/0.46, allocations: 8.672 kB / 0.7757 GB, free: 9.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.852e-05/0.4601, allocations: 27.42 kB / 0.7757 GB, free: 9.203 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4601, allocations: 0 / 0.7757 GB, free: 9.203 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.4811, allocations: 4.036 MB / 0.7797 GB, free: 5.316 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.337/7.819, allocations: 6.094 kB / 0.7797 GB, free: 5.312 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)