Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_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.001255/0.001255, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001293/0.001293, allocations: 192.9 kB / 16.25 MB, free: 6.621 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.236/1.236, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.343/2.343, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.89 kB / 0.8689 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4927/0.4939, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002324/0.4963, allocations: 1.472 MB / 1.018 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007417/0.497, allocations: 0.5023 MB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.4971, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 6.869e-05/0.4972, allocations: 7.922 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.402e-05/0.4972, allocations: 4 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006042/0.4978, allocations: 211.2 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.498, allocations: 151.7 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.4981, allocations: 7.984 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.876e-05/0.4981, allocations: 55.84 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.798e-05/0.4982, allocations: 51.81 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.4982, allocations: 8 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.4984, allocations: 167.8 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.991e-05/0.4985, allocations: 35.91 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.967e-05/0.4986, allocations: 55.77 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.4988, allocations: 225.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4989, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4989, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.4989, allocations: 4 kB / 1.02 GB, free: 15.74 MB / 0.7794 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.0004812/0.4994, allocations: 450.9 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.4994, allocations: 8.031 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.129e-05/0.4994, allocations: 38.75 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.4995, allocations: 16.75 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.4997, allocations: 214.2 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.4997, allocations: 4.375 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.4997, allocations: 12.38 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.4999, allocations: 79.95 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.4999, allocations: 3.938 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.4999, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4999, allocations: 4 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.06e-05/0.5, allocations: 39.91 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002016/0.5002, allocations: 226.5 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.5003, allocations: 81.23 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.631e-05/0.5004, allocations: 53.81 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.5004, allocations: 8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.5006, allocations: 116.9 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.5006, allocations: 3.938 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0002965/0.5009, allocations: 193.4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.5009, allocations: 89.09 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.5011, allocations: 147.1 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.5011, allocations: 37.7 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.5012, allocations: 96.52 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.5012, allocations: 43.53 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/0.5013, allocations: 45.7 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.5014, allocations: 334.8 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.875e-05/0.5014, allocations: 35.98 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.5016, allocations: 204.1 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.5018, allocations: 101.5 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5018, allocations: 0 / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002067/0.502, allocations: 161.4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.502, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.502, allocations: 7.984 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.502, allocations: 3.938 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.286e-05/0.5021, allocations: 15.94 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.5021, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.5024, allocations: 63.91 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.5024, allocations: 8 kB / 1.023 GB, free: 12.51 MB / 0.7794 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 9.673e-05/0.5025, allocations: 142.3 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.5025, allocations: 15.75 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.5026, allocations: 12.72 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5026, allocations: 0 / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.5026, allocations: 3.984 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5026, allocations: 4 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.5027, allocations: 193.5 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5027, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.638e-05/0.5028, allocations: 15.92 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.5028, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.5028, allocations: 4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5028, allocations: 0 / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5028, allocations: 4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.503, allocations: 182.3 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.503, allocations: 85.02 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.5031, allocations: 0 / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.028e-05/0.5031, allocations: 7.984 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.5031, allocations: 12 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.5032, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.148e-05/0.5032, allocations: 108.8 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5032, allocations: 4 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002705/0.5035, allocations: 79.86 kB / 1.023 GB, free: 11.55 MB / 0.7794 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.000602/0.5041, allocations: 0.7892 MB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.5043, allocations: 167.6 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5044, allocations: 0 / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.377e-05/0.5044, allocations: 47.92 kB / 1.024 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.5046, allocations: 4 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.5061, allocations: 1.731 MB / 1.026 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.5064, allocations: 0.7079 MB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.5064, allocations: 16.92 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.338e-05/0.5065, allocations: 23.44 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5065, allocations: 0 / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.5247, allocations: 3.817 MB / 1.031 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/0.5249, allocations: 208.1 kB / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/2.19, allocations: 3.938 kB / 1.031 GB, free: 3.973 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)