Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_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.001142/0.001141, 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.00115/0.00115, allocations: 193.8 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7604/0.7604, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.64 kB / 0.5019 GB, free: 3.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4701/0.4714, allocations: 80.21 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.00277/0.4742, allocations: 1.401 MB / 0.5816 GB, free: 3.578 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008913/0.4751, allocations: 0.5103 MB / 0.5821 GB, free: 3.23 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.4752, allocations: 5.25 kB / 0.5821 GB, free: 3.227 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.803e-05/0.4753, allocations: 7.406 kB / 0.5821 GB, free: 3.223 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-05/0.4754, allocations: 7.656 kB / 0.5821 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007486/0.4761, allocations: 232 kB / 0.5823 GB, free: 3.117 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.4763, allocations: 145.6 kB / 0.5824 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.4764, allocations: 8.641 kB / 0.5824 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.77e-05/0.4765, allocations: 53.05 kB / 0.5825 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.13e-05/0.4766, allocations: 48.28 kB / 0.5825 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.4766, allocations: 10.03 kB / 0.5825 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003087/0.4769, allocations: 167.8 kB / 0.5827 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.828e-05/0.477, allocations: 35.47 kB / 0.5827 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.73e-05/0.4771, allocations: 57.67 kB / 0.5828 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003874/0.4775, allocations: 232.2 kB / 0.583 GB, free: 2.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4775, allocations: 0.9375 kB / 0.583 GB, free: 2.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4775, allocations: 0 / 0.583 GB, free: 2.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.4775, allocations: 0 / 0.583 GB, free: 2.84 MB / 430.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.0005455/0.4781, allocations: 452.1 kB / 0.5834 GB, free: 2.418 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.4781, allocations: 8.719 kB / 0.5835 GB, free: 2.418 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.256e-05/0.4782, allocations: 34.19 kB / 0.5835 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.548e-05/0.4782, allocations: 17.19 kB / 0.5835 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.4784, allocations: 205 kB / 0.5837 GB, free: 2.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.4785, allocations: 13.31 kB / 0.5837 GB, free: 2.152 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.4785, allocations: 14.31 kB / 0.5837 GB, free: 2.148 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4787, allocations: 79.45 kB / 0.5838 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4787, allocations: 7.875 kB / 0.5838 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.4787, allocations: 5.812 kB / 0.5838 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4787, allocations: 4.875 kB / 0.5838 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.831e-05/0.4788, allocations: 36.72 kB / 0.5839 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002433/0.479, allocations: 235.8 kB / 0.5841 GB, free: 1.836 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.4792, allocations: 79.5 kB / 0.5842 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.4793, allocations: 54.41 kB / 0.5842 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.4793, allocations: 0.875 kB / 0.5842 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.4795, allocations: 115.7 kB / 0.5843 GB, free: 1.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.4795, allocations: 0 / 0.5843 GB, free: 1.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003659/0.4799, allocations: 185.5 kB / 0.5845 GB, free: 1.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.48, allocations: 86.88 kB / 0.5846 GB, free: 1.488 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.4801, allocations: 147.8 kB / 0.5847 GB, free: 1.375 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.4801, allocations: 40.3 kB / 0.5848 GB, free: 1.336 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.497e-05/0.4802, allocations: 99.73 kB / 0.5849 GB, free: 1.238 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.4802, allocations: 40.27 kB / 0.5849 GB, free: 1.207 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.924e-05/0.4803, allocations: 53.92 kB / 0.5849 GB, free: 1.176 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.352e-05/0.4804, allocations: 326.2 kB / 0.5853 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.992e-05/0.4805, allocations: 42.59 kB / 0.5853 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.4807, allocations: 199.1 kB / 0.5855 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.4808, allocations: 101.2 kB / 0.5856 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4808, allocations: 0 / 0.5856 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002338/0.4811, allocations: 164.3 kB / 0.5857 GB, free: 0.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.4811, allocations: 4.312 kB / 0.5857 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.4811, allocations: 3.672 kB / 0.5857 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.4811, allocations: 2.188 kB / 0.5857 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.395e-05/0.4812, allocations: 11.53 kB / 0.5858 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.4812, allocations: 5.469 kB / 0.5858 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.4815, allocations: 72.72 kB / 0.5858 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.4816, allocations: 8.281 kB / 0.5858 GB, free: 0.5234 MB / 430.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.0001087/0.4817, allocations: 129.8 kB / 0.586 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.4817, allocations: 17.28 kB / 0.586 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.4817, allocations: 14.3 kB / 0.586 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4818, allocations: 1.438 kB / 0.586 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4818, allocations: 1.953 kB / 0.586 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4818, allocations: 0 / 0.586 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.4819, allocations: 202 kB / 0.5862 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4819, allocations: 8 kB / 0.5862 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.361e-05/0.482, allocations: 7.297 kB / 0.5862 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.482, allocations: 1.562 kB / 0.5862 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.482, allocations: 2.094 kB / 0.5862 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.482, allocations: 5.625 kB / 0.5862 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.482, allocations: 0 / 0.5862 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.4822, allocations: 191.8 kB / 0.5864 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.33e-05/0.4823, allocations: 97.84 kB / 0.5865 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.4823, allocations: 1.516 kB / 0.5865 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.186e-05/0.4824, allocations: 6.938 kB / 0.5865 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.4824, allocations: 6.484 kB / 0.5865 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.4824, allocations: 3.406 kB / 0.5865 GB, free: 15.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.599e-05/0.4826, allocations: 112.3 kB / 0.5866 GB, free: 15.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4826, allocations: 0 / 0.5866 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.4829, allocations: 75.69 kB / 0.5867 GB, free: 15.82 MB / 446.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.0007337/0.4837, allocations: 0.7726 MB / 0.5874 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.484, allocations: 175.2 kB / 0.5876 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.484, allocations: 1.375 kB / 0.5876 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.554e-05/0.4841, allocations: 46.25 kB / 0.5877 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.4843, allocations: 14.41 kB / 0.5877 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.4863, allocations: 1.696 MB / 0.5893 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.4866, allocations: 0.7055 MB / 0.59 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.631e-05/0.4867, allocations: 8.984 kB / 0.59 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/0.4868, allocations: 30.58 kB / 0.5901 GB, free: 12.97 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4868, allocations: 0.5938 kB / 0.5901 GB, free: 12.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.5119, allocations: 3.908 MB / 0.5939 GB, free: 12.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.226/7.738, allocations: 2.375 kB / 0.5939 GB, free: 12.2 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)