Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_8_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_8_Buildings_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.00152/0.001519, allocations: 105.4 kB / 15.7 MB, free: 24 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.00226/0.00226, allocations: 196.5 kB / 16.64 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.1 MB / 222.5 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.787/1.787, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 70.36 kB / 0.6718 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3187, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003331/0.3221, allocations: 1.429 MB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009406/0.3231, allocations: 0.4904 MB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.3231, allocations: 0 / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.597e-05/0.3232, allocations: 7.938 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.658e-05/0.3233, allocations: 11.92 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007574/0.3241, allocations: 223.5 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.3243, allocations: 147.8 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.705e-05/0.3244, allocations: 8 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.854e-05/0.3244, allocations: 59.84 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.241e-05/0.3245, allocations: 39.88 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.3246, allocations: 12 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002574/0.3248, allocations: 171.7 kB / 0.7862 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.319e-05/0.3249, allocations: 31.97 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.34e-05/0.325, allocations: 63.69 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.3254, allocations: 227.8 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3254, allocations: 0 / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.355e-06/0.3254, allocations: 0 / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.3254, allocations: 3.984 kB / 0.7865 GB, free: 10.33 MB / 0.6075 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.0006948/0.3261, allocations: 451 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.3262, allocations: 12.03 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.3262, allocations: 34.75 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.785e-05/0.3263, allocations: 12.84 kB / 0.787 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.3266, allocations: 208 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.3266, allocations: 16.38 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.3266, allocations: 8.375 kB / 0.7872 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3268, allocations: 79.95 kB / 0.7873 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3268, allocations: 3.938 kB / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.3268, allocations: 0 / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3268, allocations: 0 / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.23e-05/0.3269, allocations: 43.91 kB / 0.7873 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002815/0.3272, allocations: 238.4 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.3274, allocations: 77.23 kB / 0.7876 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.49e-05/0.3275, allocations: 53.81 kB / 0.7877 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.3275, allocations: 0 / 0.7877 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.3277, allocations: 128 kB / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 9.22e-07/0.3277, allocations: 0 / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0003712/0.3281, allocations: 185.4 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.3282, allocations: 85.09 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.3284, allocations: 152.2 kB / 0.7882 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.3285, allocations: 37.69 kB / 0.7882 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.116e-05/0.3285, allocations: 100.5 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.3286, allocations: 39.53 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.3287, allocations: 53.7 kB / 0.7884 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3288, allocations: 322.8 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.709e-05/0.3289, allocations: 43.97 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.3292, allocations: 209.7 kB / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.3293, allocations: 93.64 kB / 0.789 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3293, allocations: 4 kB / 0.789 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002344/0.3296, allocations: 161.4 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3296, allocations: 6.656 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.3296, allocations: 4 kB / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3296, allocations: 0 / 0.7892 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.3297, allocations: 19.92 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3297, allocations: 0 / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.33, allocations: 75.75 kB / 0.7893 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.3301, allocations: 8 kB / 0.7893 GB, free: 7.102 MB / 0.6075 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.0003058/0.3304, allocations: 137.8 kB / 0.7894 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.281e-05/0.3304, allocations: 15.92 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.3304, allocations: 12.72 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3304, allocations: 4 kB / 0.7895 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3305, allocations: 0 / 0.7895 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.3305, allocations: 0 / 0.7895 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.3306, allocations: 197.5 kB / 0.7897 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3307, allocations: 4 kB / 0.7897 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.161e-05/0.3307, allocations: 11.94 kB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3307, allocations: 0 / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.3307, allocations: 11.92 kB / 0.7897 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3307, allocations: 0 / 0.7897 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3307, allocations: 0 / 0.7897 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.331, allocations: 185.8 kB / 0.7899 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.331, allocations: 96.86 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.3311, allocations: 0 / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.831e-05/0.3311, allocations: 7.938 kB / 0.79 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.3312, allocations: 3.984 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.3312, allocations: 8 kB / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.817e-05/0.3313, allocations: 114 kB / 0.7901 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3313, allocations: 0 / 0.7901 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003082/0.3316, allocations: 67.98 kB / 0.7901 GB, free: 6.141 MB / 0.6075 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.0006825/0.3323, allocations: 0.7855 MB / 0.7909 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002739/0.3326, allocations: 167.5 kB / 0.7911 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3326, allocations: 0 / 0.7911 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.391e-05/0.3326, allocations: 51.91 kB / 0.7911 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.3328, allocations: 4 kB / 0.7911 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.3347, allocations: 1.713 MB / 0.7928 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.3351, allocations: 0.7002 MB / 0.7935 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.542e-05/0.3351, allocations: 12.66 kB / 0.7935 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.3352, allocations: 31.38 kB / 0.7935 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.3352, allocations: 0 / 0.7935 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.3589, allocations: 3.942 MB / 0.7974 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.155, allocations: 4.547 kB / 0.7974 GB, free: 14.69 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_8_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)