Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IBPSA_latest_IBPSA_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.001349/0.001349, allocations: 113 kB / 16.41 MB, free: 6.5 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.001267/0.001267, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8327/0.8327, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001972, allocations: 71.97 kB / 0.5735 GB, free: 27.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1371, allocations: 78.86 MB / 0.6505 GB, free: 3.629 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.SetPoints.Examples.OccupancySchedule): time 0.002528/0.1397, allocations: 1.404 MB / 0.6519 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009613/0.1407, allocations: 0.4962 MB / 0.6524 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.1407, allocations: 0 / 0.6524 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.153e-05/0.1408, allocations: 3.938 kB / 0.6524 GB, free: 1.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.003e-05/0.1409, allocations: 19.84 kB / 0.6524 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007053/0.1416, allocations: 231.2 kB / 0.6526 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.1418, allocations: 147.7 kB / 0.6528 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.1419, allocations: 4 kB / 0.6528 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.22e-05/0.142, allocations: 55.89 kB / 0.6528 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.512e-05/0.142, allocations: 43.83 kB / 0.6529 GB, free: 1.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.1421, allocations: 8 kB / 0.6529 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.1424, allocations: 167.8 kB / 0.653 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.1424, allocations: 35.89 kB / 0.6531 GB, free: 1.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.984e-05/0.1425, allocations: 55.78 kB / 0.6531 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1429, allocations: 247.5 kB / 0.6533 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1429, allocations: 0 / 0.6533 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1429, allocations: 3.938 kB / 0.6533 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1429, allocations: 0 / 0.6533 GB, free: 0.7148 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.0006748/0.1436, allocations: 450.7 kB / 0.6538 GB, free: 228 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1437, allocations: 8.031 kB / 0.6538 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.149e-05/0.1437, allocations: 38.75 kB / 0.6538 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.1438, allocations: 20.84 kB / 0.6538 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.144, allocations: 208.2 kB / 0.654 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.144, allocations: 8.359 kB / 0.654 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.1441, allocations: 12.38 kB / 0.6541 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.1442, allocations: 79.89 kB / 0.6541 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1442, allocations: 3.938 kB / 0.6541 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1443, allocations: 4 kB / 0.6541 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1443, allocations: 4 kB / 0.6541 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.051e-05/0.1444, allocations: 39.97 kB / 0.6542 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002706/0.1446, allocations: 226.5 kB / 0.6544 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.1448, allocations: 81.17 kB / 0.6545 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.044e-05/0.1449, allocations: 53.81 kB / 0.6545 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.1449, allocations: 0 / 0.6545 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.1451, allocations: 121 kB / 0.6546 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.1451, allocations: 0 / 0.6546 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003635/0.1455, allocations: 189.9 kB / 0.6548 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.416e-05/0.1456, allocations: 89.08 kB / 0.6549 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1457, allocations: 147.5 kB / 0.6551 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.1458, allocations: 41.7 kB / 0.6551 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.1458, allocations: 96.52 kB / 0.6552 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.1459, allocations: 39.69 kB / 0.6552 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.8e-05/0.146, allocations: 49.7 kB / 0.6553 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.1462, allocations: 330.8 kB / 0.6556 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.1462, allocations: 35.98 kB / 0.6556 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.1465, allocations: 203.9 kB / 0.6558 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.1466, allocations: 97.58 kB / 0.6559 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1467, allocations: 4 kB / 0.6559 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002655/0.1469, allocations: 169.4 kB / 0.6561 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.147, allocations: 8 kB / 0.6561 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.147, allocations: 4.156 kB / 0.6561 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.147, allocations: 0 / 0.6561 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-05/0.1471, allocations: 15.98 kB / 0.6561 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.1471, allocations: 3.984 kB / 0.6561 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.1474, allocations: 67.86 kB / 0.6562 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1474, allocations: 8 kB / 0.6562 GB, free: 13.48 MB / 0.4981 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 (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.0001311/0.1475, allocations: 137.8 kB / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.1476, allocations: 11.89 kB / 0.6563 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.1476, allocations: 20.59 kB / 0.6563 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1476, allocations: 96 / 0.6563 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1476, allocations: 4 kB / 0.6563 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.1476, allocations: 11.97 kB / 0.6564 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.1478, allocations: 193.5 kB / 0.6565 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1478, allocations: 0 / 0.6565 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.662e-05/0.1479, allocations: 7.984 kB / 0.6565 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1479, allocations: 4 kB / 0.6565 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.1479, allocations: 4 kB / 0.6566 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1479, allocations: 0 / 0.6566 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1479, allocations: 4 kB / 0.6566 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.1482, allocations: 184.8 kB / 0.6567 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.1482, allocations: 85.06 kB / 0.6568 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.1482, allocations: 0 / 0.6568 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.207e-05/0.1483, allocations: 7.984 kB / 0.6568 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.1483, allocations: 8 kB / 0.6568 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.1484, allocations: 4 kB / 0.6568 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.295e-05/0.1485, allocations: 113.3 kB / 0.6569 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1485, allocations: 4 kB / 0.6569 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002973/0.1488, allocations: 83.8 kB / 0.657 GB, free: 12.52 MB / 0.4981 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 (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.0007957/0.1496, allocations: 0.7779 MB / 0.6578 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002715/0.1499, allocations: 167.3 kB / 0.6579 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1499, allocations: 4 kB / 0.6579 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.914e-05/0.15, allocations: 39.98 kB / 0.658 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001581/0.1501, allocations: 5.875 kB / 0.658 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.1521, allocations: 1.718 MB / 0.6597 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.1525, allocations: 0.7041 MB / 0.6604 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.511e-05/0.1525, allocations: 16.66 kB / 0.6604 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1526, allocations: 27.42 kB / 0.6604 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of SimCode: time 5.62e-07/0.1527, allocations: 0 / 0.6604 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.1807, allocations: 3.992 MB / 0.6643 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.197, allocations: 4.578 kB / 0.6643 GB, free: 5.027 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Controls_SetPoints_Examples_OccupancySchedule.fmu > IBPSA_latest_IBPSA.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)