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.8615/0.8615, allocations: 143.3 MB / 158.3 MB, free: 5.785 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.001245/0.001245, allocations: 183 kB / 191.5 MB, free: 5.75 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.471/1.471, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.0009771/0.0009767, allocations: 96.25 kB / 0.5187 GB, free: 1.164 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001795, allocations: 272.6 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004103, allocations: 15.38 kB / 0.6929 GB, free: 59.74 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1483, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1424/0.2908, allocations: 109 MB / 0.8803 GB, free: 0.5469 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.291, allocations: 79.95 kB / 0.8803 GB, free: 480 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3175/0.6085, allocations: 3.966 MB / 0.8842 GB, free: 109 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.733e-06/0.6085, allocations: 0 / 0.8842 GB, free: 109 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.6086, allocations: 2.688 kB / 0.8842 GB, free: 109 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.0004241/0.609, allocations: 442.9 kB / 0.8846 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.609, allocations: 15.56 kB / 0.8847 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.514e-05/0.6091, allocations: 34.2 kB / 0.8847 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.506e-05/0.6091, allocations: 12.44 kB / 0.8847 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.6094, allocations: 221.9 kB / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.6094, allocations: 8.719 kB / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.6095, allocations: 15.14 kB / 0.8849 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.6096, allocations: 89.97 kB / 0.885 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.6096, allocations: 0 / 0.885 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.6097, allocations: 4 kB / 0.885 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.6097, allocations: 0.9375 kB / 0.885 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.134e-05/0.6097, allocations: 47.92 kB / 0.8851 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00021/0.61, allocations: 240.8 kB / 0.8853 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.6101, allocations: 78.97 kB / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.6101, allocations: 7.125 kB / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.6103, allocations: 118.8 kB / 0.8855 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.6103, allocations: 2.75 kB / 0.8855 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14): time 0.0004217/0.6107, allocations: 356.5 kB / 0.8858 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.6108, allocations: 88.61 kB / 0.8859 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/0.6109, allocations: 129.8 kB / 0.8861 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.6109, allocations: 42.3 kB / 0.8861 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.348e-05/0.611, allocations: 103.6 kB / 0.8862 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.212e-05/0.611, allocations: 35.22 kB / 0.8862 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.565e-06/0.611, allocations: 3.031 kB / 0.8862 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.6111, allocations: 328.2 kB / 0.8865 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.816e-05/0.6112, allocations: 43.7 kB / 0.8866 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.6114, allocations: 217.6 kB / 0.8868 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.6115, allocations: 75.89 kB / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.6115, allocations: 0 / 0.8869 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002427/0.6118, allocations: 161.8 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.6118, allocations: 7.344 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/0.6118, allocations: 11.11 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.6118, allocations: 0.5625 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.893e-05/0.6119, allocations: 13.69 kB / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.612, allocations: 0 / 0.887 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.6122, allocations: 93.44 kB / 0.8871 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.6123, allocations: 12.19 kB / 0.8871 GB, free: 106.8 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.835e-05/0.6124, allocations: 136.1 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.91e-05/0.6124, allocations: 17.98 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.6124, allocations: 12.84 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.6125, allocations: 0.6875 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.6125, allocations: 2.531 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.6125, allocations: 4.562 kB / 0.8873 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.6126, allocations: 202.1 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.6126, allocations: 0.5156 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.288e-05/0.6127, allocations: 7.125 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.6127, allocations: 2.875 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.6127, allocations: 0.6562 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.6127, allocations: 4.453 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6127, allocations: 0.9375 kB / 0.8875 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.613, allocations: 209 kB / 0.8877 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.622e-05/0.613, allocations: 85.12 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.613, allocations: 1.812 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.445e-05/0.6131, allocations: 5.047 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.6131, allocations: 9.703 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.6132, allocations: 5.547 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 8.056e-05/0.6132, allocations: 117.9 kB / 0.8879 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6132, allocations: 4 kB / 0.8879 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003524/0.6136, allocations: 89.88 kB / 0.888 GB, free: 106.2 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) * 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 (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.0005231/0.6141, allocations: 0.8691 MB / 0.8889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002451/0.6144, allocations: 162.9 kB / 0.889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6144, allocations: 0 / 0.889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.338e-05/0.6145, allocations: 48.44 kB / 0.8891 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.6146, allocations: 4.656 kB / 0.8891 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.6157, allocations: 0.9597 MB / 0.89 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.6159, allocations: 0.7119 MB / 0.8907 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.283e-05/0.6159, allocations: 13.33 kB / 0.8907 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.6e-05/0.616, allocations: 25.66 kB / 0.8908 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.616, allocations: 0 / 0.8908 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01461/0.6306, allocations: 3.602 MB / 0.8943 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001275/0.6308, allocations: 198.3 kB / 0.8945 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.355, allocations: 0 / 0.8945 GB, free: 103.6 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)