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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7006/0.7006, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 184.8 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 221.3 MB / 441.4 MB, free: 4.664 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 96.42 kB / 0.5124 GB, free: 24.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001699/0.0017, allocations: 267.5 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.14e-05, allocations: 4 kB / 0.6835 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4247, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.5399, allocations: 109 MB / 0.8708 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.5402, allocations: 75.94 kB / 0.8709 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01103/0.5513, allocations: 3.948 MB / 0.8747 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.715e-06/0.5513, allocations: 4 kB / 0.8747 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.5513, allocations: 0 / 0.8747 GB, free: 11.54 MB / 0.5417 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.0005188/0.5518, allocations: 422.2 kB / 0.8751 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.5519, allocations: 15.97 kB / 0.8751 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.439e-05/0.5519, allocations: 30.56 kB / 0.8752 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.001e-05/0.552, allocations: 15.81 kB / 0.8752 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.5523, allocations: 222.8 kB / 0.8754 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.5523, allocations: 8 kB / 0.8754 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.5524, allocations: 12 kB / 0.8754 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.5526, allocations: 91.31 kB / 0.8755 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.5526, allocations: 0 / 0.8755 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.5526, allocations: 4 kB / 0.8755 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.5526, allocations: 0 / 0.8755 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.094e-05/0.5527, allocations: 47.89 kB / 0.8755 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002668/0.553, allocations: 250.4 kB / 0.8758 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.5531, allocations: 81.17 kB / 0.8759 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.5532, allocations: 61.81 kB / 0.8759 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.5532, allocations: 0 / 0.8759 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/0.5534, allocations: 111.7 kB / 0.876 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.5534, allocations: 0 / 0.876 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.000325/0.5538, allocations: 165.5 kB / 0.8762 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.5538, allocations: 85.09 kB / 0.8763 GB, free: 9.727 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.554, allocations: 139.6 kB / 0.8764 GB, free: 9.586 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.554, allocations: 37.7 kB / 0.8764 GB, free: 9.543 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.5541, allocations: 108.5 kB / 0.8765 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/0.5541, allocations: 31.55 kB / 0.8766 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-06/0.5542, allocations: 4 kB / 0.8766 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5543, allocations: 326.8 kB / 0.8769 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.083e-05/0.5544, allocations: 48.11 kB / 0.8769 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.5546, allocations: 209.4 kB / 0.8771 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.5548, allocations: 69.59 kB / 0.8772 GB, free: 8.688 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.5548, allocations: 0 / 0.8772 GB, free: 8.688 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002572/0.555, allocations: 175.7 kB / 0.8774 GB, free: 8.512 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.5551, allocations: 4 kB / 0.8774 GB, free: 8.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.5551, allocations: 7.984 kB / 0.8774 GB, free: 8.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.5551, allocations: 0 / 0.8774 GB, free: 8.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.475e-05/0.5552, allocations: 12 kB / 0.8774 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.5552, allocations: 4 kB / 0.8774 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.5555, allocations: 87.8 kB / 0.8775 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.5555, allocations: 12 kB / 0.8775 GB, free: 8.387 MB / 0.5417 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 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.5556, allocations: 116.9 kB / 0.8776 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.5557, allocations: 11.81 kB / 0.8776 GB, free: 8.254 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.5557, allocations: 16.61 kB / 0.8776 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.5557, allocations: 0 / 0.8776 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.5557, allocations: 4 kB / 0.8776 GB, free: 8.234 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5557, allocations: 4 kB / 0.8776 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.5559, allocations: 193.6 kB / 0.8778 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5559, allocations: 0 / 0.8778 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.498e-05/0.556, allocations: 11.98 kB / 0.8778 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.556, allocations: 0 / 0.8778 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.556, allocations: 0 / 0.8778 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.556, allocations: 4 kB / 0.8778 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.556, allocations: 0 / 0.8778 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.5563, allocations: 207.4 kB / 0.878 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.5563, allocations: 92.86 kB / 0.8781 GB, free: 7.637 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.5564, allocations: 4 kB / 0.8781 GB, free: 7.633 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.432e-05/0.5564, allocations: 7.984 kB / 0.8781 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.5565, allocations: 8.078 kB / 0.8781 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.5565, allocations: 11.98 kB / 0.8782 GB, free: 7.605 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.599e-05/0.5566, allocations: 122.1 kB / 0.8783 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5566, allocations: 0 / 0.8783 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003469/0.5569, allocations: 79.94 kB / 0.8783 GB, free: 7.41 MB / 0.5417 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) * 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 (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.0006512/0.5576, allocations: 0.8592 MB / 0.8792 GB, free: 6.516 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002349/0.5578, allocations: 171.3 kB / 0.8793 GB, free: 6.336 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5578, allocations: 0 / 0.8793 GB, free: 6.336 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.518e-05/0.5579, allocations: 47.92 kB / 0.8794 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001159/0.558, allocations: 7.953 kB / 0.8794 GB, free: 6.281 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.5585, allocations: 232.2 kB / 0.8796 GB, free: 6.016 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.5589, allocations: 0.716 MB / 0.8803 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.663e-05/0.5589, allocations: 8.609 kB / 0.8803 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.559, allocations: 31.42 kB / 0.8804 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.559, allocations: 0 / 0.8804 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.5746, allocations: 3.623 MB / 0.8839 GB, free: 1.805 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/0.5749, allocations: 169.5 kB / 0.8841 GB, free: 1.586 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.521/2.096, allocations: 0 / 0.8841 GB, free: 1.586 MB / 0.5417 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/linux/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)