Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_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.005451/0.005451, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001364/0.001364, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9253/0.9253, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 59.91 kB / 0.5851 GB, free: 3.871 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3899, allocations: 80.92 MB / 0.6641 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.002408/0.3923, allocations: 1.419 MB / 0.6655 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008935/0.3933, allocations: 499.8 kB / 0.666 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.769e-05/0.3934, allocations: 4 kB / 0.666 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.478e-05/0.3935, allocations: 9.922 kB / 0.666 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.278e-05/0.3936, allocations: 10.42 kB / 0.666 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009981/0.3946, allocations: 232.7 kB / 0.6662 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002907/0.3949, allocations: 144.8 kB / 0.6664 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.778e-05/0.395, allocations: 3.875 kB / 0.6664 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.3951, allocations: 60.72 kB / 0.6664 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.3952, allocations: 41.22 kB / 0.6665 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.3952, allocations: 10.44 kB / 0.6665 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000365/0.3956, allocations: 170.2 kB / 0.6666 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.872e-05/0.3957, allocations: 39.05 kB / 0.6667 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.997e-05/0.3958, allocations: 47.89 kB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.3963, allocations: 237.3 kB / 0.667 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3963, allocations: 3.938 kB / 0.667 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3963, allocations: 0 / 0.667 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.3963, allocations: 0 / 0.667 GB, free: 5.211 MB / 0.4981 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.0005803/0.3969, allocations: 459.2 kB / 0.6674 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.397, allocations: 8.906 kB / 0.6674 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.397, allocations: 41.44 kB / 0.6674 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.809e-05/0.3971, allocations: 20.58 kB / 0.6675 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.3973, allocations: 204.2 kB / 0.6677 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.3973, allocations: 4.938 kB / 0.6677 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.3973, allocations: 13.88 kB / 0.6677 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.3975, allocations: 82.86 kB / 0.6678 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.3975, allocations: 5.031 kB / 0.6678 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.3975, allocations: 0 / 0.6678 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3975, allocations: 1.312 kB / 0.6678 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.658e-05/0.3976, allocations: 47.02 kB / 0.6678 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.3978, allocations: 229.5 kB / 0.668 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.436e-05/0.3979, allocations: 78.09 kB / 0.6681 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.565e-05/0.398, allocations: 60.84 kB / 0.6682 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.398, allocations: 1.594 kB / 0.6682 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.3982, allocations: 112 kB / 0.6683 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.3982, allocations: 0 / 0.6683 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003171/0.3985, allocations: 187.9 kB / 0.6684 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.3986, allocations: 92.97 kB / 0.6685 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.3987, allocations: 150 kB / 0.6687 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.3987, allocations: 35.08 kB / 0.6687 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.3987, allocations: 101.9 kB / 0.6688 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.3988, allocations: 38.23 kB / 0.6688 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.41e-05/0.3989, allocations: 51.88 kB / 0.6689 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.3989, allocations: 325.8 kB / 0.6692 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.477e-05/0.399, allocations: 42.3 kB / 0.6692 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.3992, allocations: 196.6 kB / 0.6694 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.3993, allocations: 105.2 kB / 0.6695 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3993, allocations: 0 / 0.6695 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002213/0.3995, allocations: 158 kB / 0.6697 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3996, allocations: 12.08 kB / 0.6697 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.3996, allocations: 6.75 kB / 0.6697 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3996, allocations: 2.094 kB / 0.6697 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.381e-05/0.3997, allocations: 14.16 kB / 0.6697 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.3997, allocations: 5.547 kB / 0.6697 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.4, allocations: 69.25 kB / 0.6698 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.4001, allocations: 7.875 kB / 0.6698 GB, free: 2.676 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.0001097/0.4002, allocations: 135.9 kB / 0.6699 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.287e-05/0.4002, allocations: 16.19 kB / 0.6699 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.4002, allocations: 16.3 kB / 0.67 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.4003, allocations: 5.344 kB / 0.67 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4003, allocations: 9.281 kB / 0.67 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4003, allocations: 0 / 0.67 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.4004, allocations: 195.3 kB / 0.6702 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4004, allocations: 0 / 0.6702 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.658e-05/0.4005, allocations: 9.969 kB / 0.6702 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.4005, allocations: 1.406 kB / 0.6702 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.4005, allocations: 1.125 kB / 0.6702 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.4005, allocations: 5.5 kB / 0.6702 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4005, allocations: 1 kB / 0.6702 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.4007, allocations: 180.1 kB / 0.6703 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.4008, allocations: 89.12 kB / 0.6704 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.4008, allocations: 5.172 kB / 0.6704 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.094e-05/0.4008, allocations: 2.656 kB / 0.6704 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.4009, allocations: 15.27 kB / 0.6705 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.4009, allocations: 5.609 kB / 0.6705 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.486e-05/0.401, allocations: 113.8 kB / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.401, allocations: 0 / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003606/0.4014, allocations: 76.92 kB / 0.6706 GB, free: 1.93 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.0005365/0.4019, allocations: 0.7921 MB / 0.6714 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000268/0.4022, allocations: 159.4 kB / 0.6716 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4022, allocations: 0 / 0.6716 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.007e-05/0.4023, allocations: 47.27 kB / 0.6716 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.4025, allocations: 3.25 kB / 0.6716 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.4041, allocations: 1.716 MB / 0.6733 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.4043, allocations: 0.7058 MB / 0.674 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.571e-05/0.4044, allocations: 6.391 kB / 0.674 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.4044, allocations: 29.36 kB / 0.674 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of SimCode: time 2.01e-07/0.4044, allocations: 0 / 0.674 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.4262, allocations: 3.96 MB / 0.6779 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.942, allocations: 12.28 kB / 0.6779 GB, free: 12.9 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)