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.004239/0.00424, allocations: 97.39 kB / 15.73 MB, free: 6.039 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.001234/0.001234, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002549/0.002548, allocations: 290.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 178.6 MB / 0.5074 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002695/0.002695, allocations: 103.8 kB / 0.6943 GB, free: 3.656 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4253, allocations: 89.15 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002692/0.428, allocations: 1.405 MB / 0.7827 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009227/0.429, allocations: 0.4982 MB / 0.7832 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.003e-05/0.429, allocations: 0 / 0.7832 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 7.199e-05/0.4291, allocations: 7.406 kB / 0.7832 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.703e-05/0.4292, allocations: 9.781 kB / 0.7832 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008171/0.43, allocations: 233.9 kB / 0.7834 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000235/0.4303, allocations: 142.8 kB / 0.7835 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.358e-05/0.4303, allocations: 4.641 kB / 0.7835 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.329e-05/0.4304, allocations: 61.14 kB / 0.7836 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.31e-05/0.4305, allocations: 44.5 kB / 0.7837 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.4305, allocations: 10.06 kB / 0.7837 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003112/0.4309, allocations: 164.2 kB / 0.7838 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.4309, allocations: 34.11 kB / 0.7838 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.431, allocations: 61.83 kB / 0.7839 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003985/0.4314, allocations: 237.2 kB / 0.7841 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.4315, allocations: 0 / 0.7841 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4315, allocations: 0 / 0.7841 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.4315, allocations: 1.031 kB / 0.7841 GB, free: 12.14 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.0006489/0.4321, allocations: 457 kB / 0.7846 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.4322, allocations: 9.844 kB / 0.7846 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.4322, allocations: 37.98 kB / 0.7846 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.602e-05/0.4323, allocations: 15.84 kB / 0.7846 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.4325, allocations: 214.8 kB / 0.7848 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.4326, allocations: 9.828 kB / 0.7848 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.4326, allocations: 9.594 kB / 0.7849 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.4328, allocations: 84.56 kB / 0.7849 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.4328, allocations: 3.938 kB / 0.7849 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.4328, allocations: 5.641 kB / 0.7849 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4328, allocations: 0 / 0.7849 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.539e-05/0.4329, allocations: 44.66 kB / 0.785 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002768/0.4332, allocations: 232.5 kB / 0.7852 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.4333, allocations: 76.84 kB / 0.7853 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.685e-05/0.4334, allocations: 62.08 kB / 0.7853 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/0.4334, allocations: 1.438 kB / 0.7853 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.4336, allocations: 118.7 kB / 0.7855 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.4336, allocations: 0 / 0.7855 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0003643/0.434, allocations: 184.5 kB / 0.7856 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.4341, allocations: 87.45 kB / 0.7857 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.4342, allocations: 151.6 kB / 0.7859 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.4343, allocations: 37.81 kB / 0.7859 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.4344, allocations: 105.1 kB / 0.786 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.4344, allocations: 40.11 kB / 0.786 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/0.4345, allocations: 53.72 kB / 0.7861 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.4347, allocations: 322.8 kB / 0.7864 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.349e-05/0.4348, allocations: 42.75 kB / 0.7864 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.435, allocations: 198.3 kB / 0.7866 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.4352, allocations: 89.97 kB / 0.7867 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4352, allocations: 1.25 kB / 0.7867 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002502/0.4354, allocations: 167.8 kB / 0.7869 GB, free: 9.824 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.4355, allocations: 4.625 kB / 0.7869 GB, free: 9.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.4355, allocations: 7.891 kB / 0.7869 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.4355, allocations: 1.062 kB / 0.7869 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-05/0.4356, allocations: 11.67 kB / 0.7869 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4356, allocations: 1.984 kB / 0.7869 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.4359, allocations: 77.88 kB / 0.787 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.4359, allocations: 4.594 kB / 0.787 GB, free: 9.801 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.0001316/0.436, allocations: 129.8 kB / 0.7871 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.4361, allocations: 13.44 kB / 0.7871 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.4361, allocations: 14.39 kB / 0.7871 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4361, allocations: 1.672 kB / 0.7871 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4361, allocations: 1.125 kB / 0.7871 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4361, allocations: 4.75 kB / 0.7871 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.4363, allocations: 205.6 kB / 0.7873 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.4363, allocations: 0 / 0.7873 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.4364, allocations: 11 kB / 0.7873 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.4364, allocations: 1.375 kB / 0.7873 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.4364, allocations: 2.094 kB / 0.7873 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4364, allocations: 5.406 kB / 0.7873 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4364, allocations: 1.312 kB / 0.7873 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.4367, allocations: 184.1 kB / 0.7875 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.4367, allocations: 89.89 kB / 0.7876 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.4368, allocations: 9.641 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.192e-05/0.4368, allocations: 4.391 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.4369, allocations: 4.547 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.4369, allocations: 3.891 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.663e-05/0.437, allocations: 114.3 kB / 0.7877 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.71e-07/0.437, allocations: 3.938 kB / 0.7877 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003285/0.4373, allocations: 76.05 kB / 0.7878 GB, free: 9.105 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.0007282/0.438, allocations: 0.7764 MB / 0.7886 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002747/0.4383, allocations: 174.8 kB / 0.7887 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4383, allocations: 1.75 kB / 0.7887 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.334e-05/0.4384, allocations: 50.09 kB / 0.7888 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001622/0.4386, allocations: 9.547 kB / 0.7888 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.4406, allocations: 1.708 MB / 0.7905 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.4409, allocations: 0.7017 MB / 0.7912 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.805e-05/0.441, allocations: 12.8 kB / 0.7912 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.4411, allocations: 31.02 kB / 0.7912 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.4411, allocations: 0 / 0.7912 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.4666, allocations: 3.983 MB / 0.7951 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/8.075, allocations: 8.812 kB / 0.7951 GB, free: 5.375 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)