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.0009474/0.000951, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.006096/0.006096, allocations: 170.9 kB / 16.26 MB, free: 6.613 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: 223.2 MB / 240.3 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001758, allocations: 258.9 kB / 291.7 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9852/0.9852, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003958, allocations: 17.7 kB / 0.5988 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1506, allocations: 88.54 MB / 0.6852 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.001315/0.152, allocations: 1.126 MB / 0.6863 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008295/0.1528, allocations: 0.5003 MB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.105e-05/0.1529, allocations: 0 / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.54e-05/0.1529, allocations: 8.453 kB / 0.6868 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.491e-05/0.153, allocations: 9.047 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000549/0.1535, allocations: 202.7 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.1537, allocations: 135.7 kB / 0.6872 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.476e-05/0.1538, allocations: 6.406 kB / 0.6872 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.074e-05/0.1538, allocations: 51.84 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.956e-05/0.1539, allocations: 43.81 kB / 0.6873 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.1539, allocations: 4.594 kB / 0.6873 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1542, allocations: 159.8 kB / 0.6874 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.992e-05/0.1542, allocations: 35.34 kB / 0.6874 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.233e-05/0.1543, allocations: 77.47 kB / 0.6875 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.1546, allocations: 227.4 kB / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1546, allocations: 0 / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1546, allocations: 0 / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.1546, allocations: 3.938 kB / 0.6877 GB, free: 12.43 MB / 494.1 MB 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.0004481/0.1551, allocations: 423.6 kB / 0.6881 GB, free: 11.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.1551, allocations: 12.52 kB / 0.6882 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.51e-05/0.1551, allocations: 35.28 kB / 0.6882 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.1552, allocations: 13.41 kB / 0.6882 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.1554, allocations: 213.9 kB / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1554, allocations: 6.781 kB / 0.6884 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.1554, allocations: 16.36 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.1556, allocations: 79.95 kB / 0.6885 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1556, allocations: 3.938 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.1556, allocations: 0.75 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1556, allocations: 4 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.838e-05/0.1557, allocations: 40.69 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.1559, allocations: 228.2 kB / 0.6888 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.941e-05/0.156, allocations: 77.86 kB / 0.6888 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.173e-05/0.1561, allocations: 59.34 kB / 0.6889 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.1561, allocations: 0 / 0.6889 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.1563, allocations: 115 kB / 0.689 GB, free: 10.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 9.52e-07/0.1563, allocations: 0 / 0.689 GB, free: 10.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003063/0.1566, allocations: 197.3 kB / 0.6892 GB, free: 10.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.1567, allocations: 85.11 kB / 0.6893 GB, free: 10.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.1568, allocations: 151.5 kB / 0.6894 GB, free: 10.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1568, allocations: 38.39 kB / 0.6895 GB, free: 10.45 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.1569, allocations: 101.4 kB / 0.6896 GB, free: 10.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.1569, allocations: 35.53 kB / 0.6896 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.157, allocations: 29.7 kB / 0.6896 GB, free: 10.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1571, allocations: 324.2 kB / 0.6899 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.431e-05/0.1572, allocations: 39.98 kB / 0.69 GB, free: 9.906 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.1574, allocations: 201.3 kB / 0.6902 GB, free: 9.656 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.1575, allocations: 97.58 kB / 0.6902 GB, free: 9.555 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1575, allocations: 0 / 0.6902 GB, free: 9.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002131/0.1577, allocations: 165.4 kB / 0.6904 GB, free: 9.387 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.1578, allocations: 9.719 kB / 0.6904 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.1578, allocations: 7.984 kB / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.1578, allocations: 0 / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.529e-05/0.1579, allocations: 11.94 kB / 0.6904 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1579, allocations: 3.938 kB / 0.6904 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.1582, allocations: 98 kB / 0.6905 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1582, allocations: 4 kB / 0.6905 GB, free: 9.258 MB / 494.1 MB 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.000123/0.1583, allocations: 135.1 kB / 0.6907 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/0.1584, allocations: 15.84 kB / 0.6907 GB, free: 9.102 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.1584, allocations: 16.7 kB / 0.6907 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1584, allocations: 3.938 kB / 0.6907 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1584, allocations: 4 kB / 0.6907 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1584, allocations: 0 / 0.6907 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.1586, allocations: 193.5 kB / 0.6909 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1586, allocations: 0 / 0.6909 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.679e-05/0.1586, allocations: 15.92 kB / 0.6909 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1586, allocations: 0 / 0.6909 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.1586, allocations: 0 / 0.6909 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1586, allocations: 8 kB / 0.6909 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1586, allocations: 0 / 0.6909 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.1589, allocations: 173.8 kB / 0.6911 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.1589, allocations: 89.05 kB / 0.6912 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.1589, allocations: 8 kB / 0.6912 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.423e-05/0.159, allocations: 7.969 kB / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.159, allocations: 8 kB / 0.6912 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/0.159, allocations: 4 kB / 0.6912 GB, free: 8.492 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.598e-05/0.1591, allocations: 117.1 kB / 0.6913 GB, free: 8.379 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1591, allocations: 0 / 0.6913 GB, free: 8.379 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.1594, allocations: 71.98 kB / 0.6914 GB, free: 8.309 MB / 494.1 MB 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.0005828/0.16, allocations: 0.7917 MB / 0.6921 GB, free: 7.488 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.1602, allocations: 163.3 kB / 0.6923 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1602, allocations: 0 / 0.6923 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.963e-05/0.1603, allocations: 47.92 kB / 0.6923 GB, free: 7.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001567/0.1605, allocations: 8 kB / 0.6923 GB, free: 7.262 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.162, allocations: 1.716 MB / 0.694 GB, free: 5.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.1623, allocations: 0.7082 MB / 0.6947 GB, free: 4.715 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.41e-05/0.1623, allocations: 8.672 kB / 0.6947 GB, free: 4.703 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.279e-05/0.1624, allocations: 31.42 kB / 0.6948 GB, free: 4.676 MB / 494.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1624, allocations: 0 / 0.6948 GB, free: 4.676 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/0.1756, allocations: 3.65 MB / 0.6983 GB, free: 1.203 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.1758, allocations: 215.7 kB / 0.6985 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/1.908, allocations: 0 / 0.6985 GB, free: 0.9531 MB / 494.1 MB (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)