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.775/0.775, allocations: 141.8 MB / 149.3 MB, free: 9.207 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009783/0.0009783, allocations: 172.9 kB / 182.2 MB, free: 9.453 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.463/1.463, allocations: 221.5 MB / 436.4 MB, free: 13.37 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.0008403/0.0008403, allocations: 101.7 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001742/0.001742, allocations: 272.3 kB / 0.5889 GB, free: 54.71 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.651e-05, allocations: 0 / 0.6766 GB, free: 12.78 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3927, allocations: 82.78 MB / 0.7575 GB, free: 31.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.5745, allocations: 108.3 MB / 0.8632 GB, free: 3.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.5749, allocations: 71.95 kB / 0.8633 GB, free: 3.43 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01586/0.5908, allocations: 3.958 MB / 0.8672 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5908, allocations: 0 / 0.8672 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.5908, allocations: 0 / 0.8672 GB, free: 15.47 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.0005889/0.5914, allocations: 418.2 kB / 0.8676 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.5915, allocations: 8.031 kB / 0.8676 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.948e-05/0.5916, allocations: 19.75 kB / 0.8676 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.592, allocations: 216 kB / 0.8678 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.592, allocations: 4 kB / 0.8678 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.592, allocations: 8 kB / 0.8678 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001683/0.5922, allocations: 39.91 kB / 0.8678 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000214/0.5925, allocations: 83.38 kB / 0.8679 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.5925, allocations: 0 / 0.8679 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.5925, allocations: 0 / 0.8679 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5925, allocations: 0 / 0.8679 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000382/0.5929, allocations: 222.9 kB / 0.8681 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.5931, allocations: 81.19 kB / 0.8682 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.5933, allocations: 53.81 kB / 0.8683 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.5933, allocations: 3.984 kB / 0.8683 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.5935, allocations: 113.1 kB / 0.8684 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.5935, allocations: 0 / 0.8684 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.0004841/0.594, allocations: 161.5 kB / 0.8685 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.5941, allocations: 89.05 kB / 0.8686 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.5943, allocations: 134.2 kB / 0.8687 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.5943, allocations: 33.7 kB / 0.8688 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.125e-05/0.5944, allocations: 92.58 kB / 0.8689 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.741e-05/0.5945, allocations: 47.47 kB / 0.8689 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.5945, allocations: 0 / 0.8689 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.5947, allocations: 326.8 kB / 0.8692 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.5948, allocations: 44.17 kB / 0.8693 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.5951, allocations: 209.4 kB / 0.8695 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.5954, allocations: 64.38 kB / 0.8695 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5954, allocations: 3.984 kB / 0.8695 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003805/0.5958, allocations: 161.3 kB / 0.8697 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.5958, allocations: 4 kB / 0.8697 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/0.5959, allocations: 4 kB / 0.8697 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.5959, allocations: 4 kB / 0.8697 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.183e-05/0.596, allocations: 11.94 kB / 0.8697 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.596, allocations: 4 kB / 0.8697 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.5965, allocations: 79.84 kB / 0.8698 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.5965, allocations: 15.98 kB / 0.8698 GB, free: 12.47 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.0001364/0.5967, allocations: 112.9 kB / 0.8699 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004381/0.5971, allocations: 161.4 kB / 0.8701 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.5972, allocations: 11.91 kB / 0.8701 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.491e-05/0.5972, allocations: 12.62 kB / 0.8701 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5973, allocations: 0 / 0.8701 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5973, allocations: 0 / 0.8701 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5973, allocations: 3.984 kB / 0.8701 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.5975, allocations: 178 kB / 0.8703 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.5975, allocations: 4 kB / 0.8703 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.5976, allocations: 8 kB / 0.8703 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.5976, allocations: 3.938 kB / 0.8703 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.5977, allocations: 0 / 0.8703 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.5977, allocations: 4 kB / 0.8703 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5977, allocations: 0 / 0.8703 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000474/0.5982, allocations: 212.4 kB / 0.8705 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.5982, allocations: 85.02 kB / 0.8706 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.5983, allocations: 8 kB / 0.8706 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.981e-05/0.5984, allocations: 0 / 0.8706 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.329e-05/0.5985, allocations: 7.984 kB / 0.8706 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.5985, allocations: 4 kB / 0.8706 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001138/0.5986, allocations: 113.5 kB / 0.8707 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4e-07/0.5986, allocations: 0 / 0.8707 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000559/0.5992, allocations: 75.92 kB / 0.8708 GB, free: 11.39 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.001152/0.6004, allocations: 0.8708 MB / 0.8716 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003581/0.6008, allocations: 159.3 kB / 0.8718 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6008, allocations: 0 / 0.8718 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.6009, allocations: 47.94 kB / 0.8718 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001915/0.6011, allocations: 11.94 kB / 0.8718 GB, free: 10.26 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007752/0.6019, allocations: 224.5 kB / 0.872 GB, free: 10 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.6023, allocations: 0.708 MB / 0.8727 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.392e-05/0.6024, allocations: 13.03 kB / 0.8727 GB, free: 9.254 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.6024, allocations: 31.42 kB / 0.8728 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/0.6024, allocations: 0 / 0.8728 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.6311, allocations: 3.237 MB / 0.8759 GB, free: 6.039 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002771/0.6315, allocations: 165.2 kB / 0.8761 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.285, allocations: 0 / 0.8761 GB, free: 5.836 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)