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.001697/0.001697, allocations: 100.7 kB / 16.4 MB, free: 6.461 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.001911/0.001911, allocations: 196 kB / 17.34 MB, free: 5.715 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7717/0.7717, allocations: 122.9 MB / 414.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.95 kB / 0.5679 GB, free: 29.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1268, allocations: 77.93 MB / 0.644 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.SetPoints.Examples.OccupancySchedule): time 0.002348/0.1292, allocations: 1.398 MB / 0.6454 GB, free: 8.293 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008841/0.1301, allocations: 0.4943 MB / 0.6459 GB, free: 7.797 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.1301, allocations: 0 / 0.6459 GB, free: 7.797 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.492e-05/0.1302, allocations: 7.938 kB / 0.6459 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.1303, allocations: 7.938 kB / 0.6459 GB, free: 7.781 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007783/0.1311, allocations: 234.6 kB / 0.6461 GB, free: 7.555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1313, allocations: 147.7 kB / 0.6463 GB, free: 7.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.505e-05/0.1313, allocations: 7.984 kB / 0.6463 GB, free: 7.402 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.424e-05/0.1314, allocations: 51.91 kB / 0.6463 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.221e-05/0.1315, allocations: 43.83 kB / 0.6464 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.1316, allocations: 12 kB / 0.6464 GB, free: 7.297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.1318, allocations: 175.8 kB / 0.6465 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.1319, allocations: 35.91 kB / 0.6466 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.07e-05/0.132, allocations: 51.78 kB / 0.6466 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.1323, allocations: 235.6 kB / 0.6468 GB, free: 6.809 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1323, allocations: 0 / 0.6468 GB, free: 6.809 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1323, allocations: 0 / 0.6468 GB, free: 6.809 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1324, allocations: 0 / 0.6468 GB, free: 6.809 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.0006021/0.133, allocations: 462.5 kB / 0.6473 GB, free: 6.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.133, allocations: 12.62 kB / 0.6473 GB, free: 6.293 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.1331, allocations: 38.73 kB / 0.6473 GB, free: 6.246 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.13e-05/0.1331, allocations: 12.89 kB / 0.6473 GB, free: 6.234 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.1333, allocations: 206.2 kB / 0.6475 GB, free: 5.996 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1334, allocations: 8.375 kB / 0.6475 GB, free: 5.988 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.1334, allocations: 12.38 kB / 0.6476 GB, free: 5.977 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.1336, allocations: 83.94 kB / 0.6476 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1336, allocations: 7.938 kB / 0.6476 GB, free: 5.875 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.1336, allocations: 4 kB / 0.6476 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1336, allocations: 0 / 0.6476 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.829e-05/0.1337, allocations: 39.92 kB / 0.6477 GB, free: 5.832 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.1339, allocations: 230.5 kB / 0.6479 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.1341, allocations: 77.25 kB / 0.648 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.563e-05/0.1341, allocations: 61.8 kB / 0.648 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.1342, allocations: 0 / 0.648 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.1344, allocations: 112.9 kB / 0.6481 GB, free: 5.266 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.1344, allocations: 7.938 kB / 0.6482 GB, free: 5.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003632/0.1348, allocations: 193.4 kB / 0.6483 GB, free: 5.062 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.1348, allocations: 85.11 kB / 0.6484 GB, free: 4.961 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.135, allocations: 150.5 kB / 0.6486 GB, free: 4.805 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.135, allocations: 33.7 kB / 0.6486 GB, free: 4.766 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.1351, allocations: 100.5 kB / 0.6487 GB, free: 4.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.913e-05/0.1351, allocations: 47.67 kB / 0.6487 GB, free: 4.613 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.1352, allocations: 45.7 kB / 0.6488 GB, free: 4.562 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1353, allocations: 322.8 kB / 0.6491 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.416e-05/0.1354, allocations: 43.98 kB / 0.6491 GB, free: 4.195 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1356, allocations: 207.8 kB / 0.6493 GB, free: 3.938 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.1358, allocations: 97.64 kB / 0.6494 GB, free: 3.836 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1358, allocations: 0 / 0.6494 GB, free: 3.836 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002476/0.1361, allocations: 165.4 kB / 0.6496 GB, free: 3.668 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1361, allocations: 4 kB / 0.6496 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.1361, allocations: 4 kB / 0.6496 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1361, allocations: 0 / 0.6496 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.628e-05/0.1362, allocations: 8 kB / 0.6496 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1362, allocations: 3.938 kB / 0.6496 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.1365, allocations: 79.84 kB / 0.6497 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.1365, allocations: 4 kB / 0.6497 GB, free: 3.566 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.0001296/0.1367, allocations: 129.8 kB / 0.6498 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.1367, allocations: 15.88 kB / 0.6498 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.1368, allocations: 16.72 kB / 0.6498 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1368, allocations: 4 kB / 0.6498 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1368, allocations: 0 / 0.6498 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1368, allocations: 3.938 kB / 0.6498 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.1369, allocations: 201.4 kB / 0.65 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1369, allocations: 0 / 0.65 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.137, allocations: 8 kB / 0.65 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.137, allocations: 0 / 0.65 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.137, allocations: 4 kB / 0.65 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.137, allocations: 7.938 kB / 0.6501 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.137, allocations: 4 kB / 0.6501 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.1373, allocations: 180.5 kB / 0.6502 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.1373, allocations: 89 kB / 0.6503 GB, free: 2.812 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.1374, allocations: 8 kB / 0.6503 GB, free: 2.805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.205e-05/0.1374, allocations: 0 / 0.6503 GB, free: 2.805 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.1375, allocations: 8.078 kB / 0.6503 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.1375, allocations: 11.98 kB / 0.6503 GB, free: 2.785 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.241e-05/0.1376, allocations: 117.1 kB / 0.6505 GB, free: 2.672 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1376, allocations: 0 / 0.6505 GB, free: 2.672 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1379, allocations: 71.81 kB / 0.6505 GB, free: 2.602 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.0006364/0.1385, allocations: 0.7823 MB / 0.6513 GB, free: 1.789 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.1388, allocations: 167.3 kB / 0.6514 GB, free: 1.613 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1388, allocations: 0 / 0.6514 GB, free: 1.613 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.811e-05/0.1389, allocations: 51.91 kB / 0.6515 GB, free: 1.562 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.1391, allocations: 11.98 kB / 0.6515 GB, free: 1.551 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1408, allocations: 1.716 MB / 0.6532 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.1411, allocations: 0.7117 MB / 0.6539 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.419e-05/0.1411, allocations: 12.66 kB / 0.6539 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.917e-05/0.1412, allocations: 27.44 kB / 0.6539 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.1412, allocations: 3.938 kB / 0.6539 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.1601, allocations: 3.965 MB / 0.6578 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.588/7.748, allocations: 7.797 kB / 0.6578 GB, free: 11.11 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)