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.001/0.001, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 191.7 kB / 16.53 MB, free: 6.391 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002195/0.002195, allocations: 282.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9608/0.9608, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 95.53 kB / 0.5953 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1416, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002292/0.1439, allocations: 1.407 MB / 0.6816 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000816/0.1448, allocations: 0.4905 MB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.1448, allocations: 6.781 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.655e-05/0.1449, allocations: 7.922 kB / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.983e-05/0.1449, allocations: 15.86 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006377/0.1456, allocations: 229.5 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001837/0.1458, allocations: 147.7 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.576e-05/0.1458, allocations: 5.062 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.783e-05/0.1459, allocations: 55.89 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.804e-05/0.146, allocations: 41.55 kB / 0.6826 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/0.146, allocations: 12 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.1463, allocations: 167.8 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.318e-05/0.1463, allocations: 36.77 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.814e-05/0.1464, allocations: 52.34 kB / 0.6829 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000283/0.1467, allocations: 235.4 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1467, allocations: 1.062 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1467, allocations: 3.938 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1468, allocations: 4 kB / 0.6831 GB, free: 13.69 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.0005044/0.1473, allocations: 444.5 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.1473, allocations: 12.03 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.138e-05/0.1473, allocations: 38.75 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.1474, allocations: 12.84 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.1476, allocations: 212 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1476, allocations: 8.375 kB / 0.6838 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.1476, allocations: 12.38 kB / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.1478, allocations: 87.83 kB / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1478, allocations: 3.938 kB / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.1478, allocations: 0 / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1478, allocations: 0 / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.63e-05/0.1479, allocations: 43.97 kB / 0.6839 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.1482, allocations: 222.6 kB / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.1483, allocations: 81.17 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.122e-05/0.1484, allocations: 57.81 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.1484, allocations: 4 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.1485, allocations: 116.9 kB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.1486, allocations: 0 / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003251/0.1489, allocations: 181.4 kB / 0.6846 GB, free: 11.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.149, allocations: 93.03 kB / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1491, allocations: 151 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.1491, allocations: 37.7 kB / 0.6848 GB, free: 11.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.717e-05/0.1492, allocations: 108.5 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.1492, allocations: 35.55 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.091e-05/0.1493, allocations: 49.7 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1494, allocations: 326.8 kB / 0.6853 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.906e-05/0.1495, allocations: 39.97 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.1497, allocations: 200.1 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1498, allocations: 97.58 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.1498, allocations: 0 / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002292/0.1501, allocations: 165.3 kB / 0.6858 GB, free: 10.58 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.1501, allocations: 8 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.1501, allocations: 96 / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1501, allocations: 7.984 kB / 0.6858 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.756e-05/0.1502, allocations: 11.98 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1502, allocations: 4 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.1505, allocations: 78 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.1505, allocations: 4 kB / 0.6859 GB, free: 10.47 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.0001007/0.1506, allocations: 135.1 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.377e-05/0.1507, allocations: 15.84 kB / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.612e-05/0.1507, allocations: 12.66 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1507, allocations: 8 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1507, allocations: 0 / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1507, allocations: 3.984 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.1509, allocations: 205.4 kB / 0.6863 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1509, allocations: 4 kB / 0.6863 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-05/0.1509, allocations: 4 kB / 0.6863 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1509, allocations: 3.984 kB / 0.6863 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.151, allocations: 4 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.151, allocations: 3.938 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.151, allocations: 0 / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.1512, allocations: 185.7 kB / 0.6865 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.1512, allocations: 85.02 kB / 0.6866 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.1513, allocations: 0 / 0.6866 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.512e-05/0.1513, allocations: 7.984 kB / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.1514, allocations: 4 kB / 0.6866 GB, free: 9.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.1514, allocations: 4 kB / 0.6866 GB, free: 9.699 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.788e-05/0.1514, allocations: 113.3 kB / 0.6867 GB, free: 9.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1514, allocations: 4 kB / 0.6867 GB, free: 9.586 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.1517, allocations: 75.98 kB / 0.6868 GB, free: 9.512 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.0005951/0.1523, allocations: 0.7897 MB / 0.6875 GB, free: 8.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002424/0.1526, allocations: 163.3 kB / 0.6877 GB, free: 8.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1526, allocations: 4 kB / 0.6877 GB, free: 8.516 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.572e-05/0.1527, allocations: 43.98 kB / 0.6877 GB, free: 8.473 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.1528, allocations: 6.031 kB / 0.6877 GB, free: 8.469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.1545, allocations: 1.702 MB / 0.6894 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.1547, allocations: 0.7041 MB / 0.6901 GB, free: 5.945 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.558e-05/0.1548, allocations: 8.844 kB / 0.6901 GB, free: 5.934 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.1548, allocations: 27.44 kB / 0.6901 GB, free: 5.91 MB / 494.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1548, allocations: 4 kB / 0.6901 GB, free: 5.906 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.1742, allocations: 3.939 MB / 0.694 GB, free: 2.094 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.997/7.171, allocations: 10.05 kB / 0.694 GB, free: 2.086 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)