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.004814/0.004814, allocations: 96.62 kB / 15.73 MB, free: 6.055 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.001177/0.001177, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.202/1.202, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001983/0.001983, allocations: 282.5 kB / 290.8 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8583/0.8583, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 95.84 kB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1415, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002328/0.1439, allocations: 1.405 MB / 0.7672 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000866/0.1448, allocations: 0.4905 MB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.1449, allocations: 0 / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.658e-05/0.1449, allocations: 11.94 kB / 0.7677 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.499e-05/0.145, allocations: 11.86 kB / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/0.1458, allocations: 238.3 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.146, allocations: 143.7 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.146, allocations: 7.984 kB / 0.7681 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.643e-05/0.1461, allocations: 51.91 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.1462, allocations: 43.83 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.1462, allocations: 12 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.1465, allocations: 171.8 kB / 0.7684 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.708e-05/0.1466, allocations: 43.89 kB / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.706e-05/0.1466, allocations: 51.8 kB / 0.7685 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003422/0.147, allocations: 239.5 kB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.147, allocations: 0 / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.147, allocations: 0 / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.147, allocations: 0 / 0.7687 GB, free: 6.047 MB / 0.5606 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.0005686/0.1476, allocations: 456.4 kB / 0.7691 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1476, allocations: 8.031 kB / 0.7691 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.1477, allocations: 42.73 kB / 0.7692 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.1477, allocations: 16.84 kB / 0.7692 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.1479, allocations: 204.2 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.148, allocations: 4.375 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.148, allocations: 12.38 kB / 0.7694 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.1482, allocations: 91.81 kB / 0.7695 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1482, allocations: 7.938 kB / 0.7695 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.1482, allocations: 4 kB / 0.7695 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1482, allocations: 0 / 0.7695 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.613e-05/0.1483, allocations: 31.98 kB / 0.7695 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002311/0.1485, allocations: 226.5 kB / 0.7698 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.1486, allocations: 85.19 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.815e-05/0.1487, allocations: 57.8 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.1487, allocations: 4 kB / 0.7699 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000194/0.1489, allocations: 111.7 kB / 0.77 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 2.695e-06/0.1489, allocations: 3.984 kB / 0.77 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0003204/0.1493, allocations: 193.4 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.1493, allocations: 89.11 kB / 0.7703 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.1494, allocations: 148 kB / 0.7704 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.1495, allocations: 33.7 kB / 0.7705 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.219e-05/0.1495, allocations: 100.5 kB / 0.7705 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.1496, allocations: 47.67 kB / 0.7706 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/0.1497, allocations: 49.64 kB / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1498, allocations: 326.8 kB / 0.771 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.586e-05/0.1499, allocations: 35.98 kB / 0.771 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.15, allocations: 205.4 kB / 0.7712 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.1502, allocations: 97.64 kB / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1502, allocations: 4 kB / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002155/0.1504, allocations: 165.4 kB / 0.7714 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.1504, allocations: 6.344 kB / 0.7714 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.1505, allocations: 4 kB / 0.7714 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1505, allocations: 0 / 0.7714 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.713e-05/0.1505, allocations: 12 kB / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1506, allocations: 0 / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.1508, allocations: 79.84 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.1508, allocations: 4 kB / 0.7715 GB, free: 2.816 MB / 0.5606 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.0001019/0.1509, allocations: 134.4 kB / 0.7717 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.151, allocations: 15.88 kB / 0.7717 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.151, allocations: 16.72 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.151, allocations: 3.938 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.151, allocations: 4 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.151, allocations: 0 / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.1512, allocations: 201.5 kB / 0.7719 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1512, allocations: 0 / 0.7719 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.532e-05/0.1512, allocations: 12 kB / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.1512, allocations: 0 / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.1512, allocations: 0 / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1512, allocations: 7.938 kB / 0.7719 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1512, allocations: 4 kB / 0.7719 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.1515, allocations: 182.3 kB / 0.7721 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/0.1515, allocations: 89.02 kB / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.1515, allocations: 4 kB / 0.7722 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.147e-05/0.1516, allocations: 4 kB / 0.7722 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.1516, allocations: 7.984 kB / 0.7722 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.1516, allocations: 8 kB / 0.7722 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.457e-05/0.1517, allocations: 113.1 kB / 0.7723 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/0.1517, allocations: 0 / 0.7723 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000285/0.152, allocations: 75.81 kB / 0.7724 GB, free: 1.855 MB / 0.5606 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.0005565/0.1526, allocations: 0.7816 MB / 0.7731 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002328/0.1528, allocations: 167.5 kB / 0.7733 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1528, allocations: 0 / 0.7733 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.163e-05/0.1529, allocations: 43.98 kB / 0.7733 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.153, allocations: 7.984 kB / 0.7734 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2574/0.4105, allocations: 1.701 MB / 0.775 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.4106, allocations: 0.7072 MB / 0.7757 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.337e-05/0.4107, allocations: 9.469 kB / 0.7757 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.4107, allocations: 28.02 kB / 0.7757 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of SimCode: time 7.72e-07/0.4107, allocations: 0.6875 kB / 0.7757 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.429, allocations: 3.987 MB / 0.7796 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.896/7.325, allocations: 12.09 kB / 0.7796 GB, free: 12.69 MB / 0.5606 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 & 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)