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.001292/0.001292, allocations: 108.8 kB / 16.27 MB, free: 5.98 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.001063/0.001063, allocations: 186.5 kB / 17.19 MB, free: 5.609 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.243/1.243, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7149/0.7149, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.89 kB / 0.4912 GB, free: 7.367 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2965, allocations: 77.94 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.SetPoints.Examples.OccupancySchedule): time 0.00213/0.2987, allocations: 1.395 MB / 0.5686 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006876/0.2994, allocations: 0.4929 MB / 0.5691 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.899e-05/0.2995, allocations: 0.875 kB / 0.5691 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 6.169e-05/0.2995, allocations: 15.81 kB / 0.5691 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.548e-05/0.2996, allocations: 9.203 kB / 0.5691 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005918/0.3002, allocations: 236.1 kB / 0.5694 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.3004, allocations: 141.6 kB / 0.5695 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.582e-05/0.3004, allocations: 8.828 kB / 0.5695 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.777e-05/0.3005, allocations: 54.52 kB / 0.5696 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.3005, allocations: 44.03 kB / 0.5696 GB, free: 31.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.3006, allocations: 10.5 kB / 0.5696 GB, free: 31.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.3008, allocations: 169.3 kB / 0.5698 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.3009, allocations: 34.59 kB / 0.5698 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.777e-05/0.301, allocations: 59.23 kB / 0.5699 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.3012, allocations: 224 kB / 0.5701 GB, free: 31.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3012, allocations: 3.641 kB / 0.5701 GB, free: 31.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3013, allocations: 1.125 kB / 0.5701 GB, free: 31.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.3013, allocations: 0 / 0.5701 GB, free: 31.02 MB / 446.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.0004233/0.3017, allocations: 450.7 kB / 0.5705 GB, free: 30.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.3017, allocations: 10.5 kB / 0.5705 GB, free: 30.6 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.707e-05/0.3018, allocations: 37.83 kB / 0.5706 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.279e-05/0.3018, allocations: 14.75 kB / 0.5706 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.302, allocations: 207.3 kB / 0.5708 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.302, allocations: 10.64 kB / 0.5708 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.302, allocations: 8.812 kB / 0.5708 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.3021, allocations: 81.5 kB / 0.5709 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.3021, allocations: 5.938 kB / 0.5709 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.3022, allocations: 0 / 0.5709 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3022, allocations: 6.875 kB / 0.5709 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.916e-05/0.3022, allocations: 43.61 kB / 0.5709 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.3024, allocations: 229.8 kB / 0.5711 GB, free: 30.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.077e-05/0.3025, allocations: 77.78 kB / 0.5712 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.464e-05/0.3026, allocations: 54.03 kB / 0.5713 GB, free: 29.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3026, allocations: 6.406 kB / 0.5713 GB, free: 29.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001551/0.3028, allocations: 119.4 kB / 0.5714 GB, free: 29.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.3028, allocations: 0 / 0.5714 GB, free: 29.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002845/0.3031, allocations: 185.8 kB / 0.5716 GB, free: 29.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3031, allocations: 84.3 kB / 0.5717 GB, free: 29.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.047e-05/0.3032, allocations: 150.8 kB / 0.5718 GB, free: 29.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.3032, allocations: 35.02 kB / 0.5718 GB, free: 29.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.105e-05/0.3033, allocations: 105.2 kB / 0.5719 GB, free: 29.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.533e-05/0.3033, allocations: 41.56 kB / 0.572 GB, free: 29.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.3034, allocations: 51.39 kB / 0.572 GB, free: 29.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.18e-05/0.3035, allocations: 323.5 kB / 0.5723 GB, free: 29.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.231e-05/0.3035, allocations: 41.58 kB / 0.5724 GB, free: 29.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.3037, allocations: 208.9 kB / 0.5726 GB, free: 28.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.3038, allocations: 101.9 kB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3038, allocations: 0 / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002005/0.304, allocations: 162.7 kB / 0.5728 GB, free: 28.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.304, allocations: 7.844 kB / 0.5728 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.3041, allocations: 3.141 kB / 0.5728 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.3041, allocations: 2.188 kB / 0.5728 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.468e-05/0.3042, allocations: 16.5 kB / 0.5728 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.3042, allocations: 1.594 kB / 0.5728 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.3044, allocations: 74.52 kB / 0.5729 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.3045, allocations: 4.219 kB / 0.5729 GB, free: 28.73 MB / 446.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 7.937e-05/0.3045, allocations: 135 kB / 0.5731 GB, free: 28.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.848e-05/0.3046, allocations: 14.05 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.3046, allocations: 14.53 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3046, allocations: 1.281 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3046, allocations: 1.031 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3046, allocations: 2.672 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.939e-05/0.3047, allocations: 200.6 kB / 0.5733 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3047, allocations: 0.9375 kB / 0.5733 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.285e-05/0.3048, allocations: 11.81 kB / 0.5733 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3048, allocations: 1.031 kB / 0.5733 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.3048, allocations: 7.281 kB / 0.5733 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3048, allocations: 0.9375 kB / 0.5733 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3048, allocations: 2.922 kB / 0.5733 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.305, allocations: 180.9 kB / 0.5735 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.305, allocations: 93.66 kB / 0.5736 GB, free: 28.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.3051, allocations: 2.5 kB / 0.5736 GB, free: 28.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.133e-05/0.3051, allocations: 9.516 kB / 0.5736 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.3051, allocations: 7.266 kB / 0.5736 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.3052, allocations: 6.312 kB / 0.5736 GB, free: 28.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.133e-05/0.3052, allocations: 118.9 kB / 0.5737 GB, free: 28.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3052, allocations: 0 / 0.5737 GB, free: 28.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002717/0.3055, allocations: 76.28 kB / 0.5738 GB, free: 28.04 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.0004159/0.3059, allocations: 0.7717 MB / 0.5745 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.3061, allocations: 164.4 kB / 0.5747 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3061, allocations: 0 / 0.5747 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.968e-05/0.3062, allocations: 43.31 kB / 0.5747 GB, free: 27.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.3064, allocations: 6.906 kB / 0.5747 GB, free: 27.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.3076, allocations: 1.711 MB / 0.5764 GB, free: 25.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.3077, allocations: 0.7122 MB / 0.5771 GB, free: 25.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.344e-05/0.3078, allocations: 8.688 kB / 0.5771 GB, free: 25.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.3078, allocations: 26.5 kB / 0.5771 GB, free: 25.21 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3078, allocations: 1.125 kB / 0.5771 GB, free: 25.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.3273, allocations: 3.926 MB / 0.581 GB, free: 24.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.907/7.235, allocations: 13.45 kB / 0.581 GB, free: 24.24 MB / 446.1 MB (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)