Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.647/1.647, allocations: 288.2 MB / 303.2 MB, free: 8.102 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 187.8 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.4 MB / 0.6305 GB, free: 10.01 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009878/0.0009879, allocations: 97.45 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003902, allocations: 11.88 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2023, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9547/1.157, allocations: 411.5 MB / 1.381 GB, free: 1.469 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/1.157, allocations: 89.45 kB / 1.381 GB, free: 1.422 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 10.81/11.97, allocations: 2.924 GB / 4.306 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of FrontEnd: time 5.14e-06/11.97, allocations: 0 / 4.306 GB, free: 7.023 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.00196/11.97, allocations: 255.8 kB / 4.306 GB, free: 6.773 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 1.4/13.37, allocations: 9.816 MB / 4.315 GB, free: 121.5 MB / 0.9793 GB Notification: Performance of prepare preOptimizeDAE: time 7.07e-05/13.37, allocations: 9.531 kB / 4.315 GB, free: 121.5 MB / 0.9793 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008353/13.38, allocations: 1.148 MB / 4.317 GB, free: 121.4 MB / 0.9793 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/13.39, allocations: 1.169 MB / 4.318 GB, free: 120.8 MB / 0.9793 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03615/13.43, allocations: 10.79 MB / 4.328 GB, free: 120.2 MB / 0.9793 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001166/13.43, allocations: 0.613 MB / 4.329 GB, free: 120.1 MB / 0.9793 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004663/13.43, allocations: 0.8176 MB / 4.33 GB, free: 120.1 MB / 0.9793 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0421/13.48, allocations: 11.71 MB / 4.341 GB, free: 118.9 MB / 0.9793 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000514/13.48, allocations: 25.39 kB / 4.341 GB, free: 118.9 MB / 0.9793 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003534/13.48, allocations: 362.6 kB / 4.341 GB, free: 118.9 MB / 0.9793 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002869/13.48, allocations: 246.5 kB / 4.342 GB, free: 118.9 MB / 0.9793 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02565/13.51, allocations: 9.636 MB / 4.351 GB, free: 118.9 MB / 0.9793 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09471/13.6, allocations: 46.6 MB / 4.397 GB, free: 99.79 MB / 0.9793 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01308/13.61, allocations: 6.322 MB / 4.403 GB, free: 99.51 MB / 0.9793 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001743/13.62, allocations: 0.8263 MB / 4.404 GB, free: 98.75 MB / 0.9793 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008462/13.63, allocations: 3.4 MB / 4.407 GB, free: 98.59 MB / 0.9793 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007367/13.63, allocations: 0.5622 MB / 4.407 GB, free: 98.29 MB / 0.9793 GB Notification: Performance of pre-optimization done (n=449): time 2.732e-05/13.63, allocations: 0 / 4.407 GB, free: 98.29 MB / 0.9793 GB Notification: Performance of matching and sorting (n=449): time 0.02544/13.66, allocations: 9.017 MB / 4.416 GB, free: 97.52 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/13.66, allocations: 154.5 kB / 4.416 GB, free: 97.39 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01885/13.68, allocations: 7.091 MB / 4.423 GB, free: 96.96 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.001745/13.68, allocations: 114.6 kB / 4.423 GB, free: 96.93 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.007739/13.69, allocations: 4.282 MB / 4.428 GB, free: 95.31 MB / 0.9793 GB Notification: Performance of collectInitialBindings (initialization): time 0.003842/13.69, allocations: 1.558 MB / 4.429 GB, free: 94.34 MB / 0.9793 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/13.69, allocations: 119.2 kB / 4.429 GB, free: 94.34 MB / 0.9793 GB Notification: Performance of setup shared object (initialization): time 0.0008941/13.69, allocations: 0.5369 MB / 4.43 GB, free: 94.02 MB / 0.9793 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006198/13.7, allocations: 2.989 MB / 4.433 GB, free: 94 MB / 0.9793 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007974/13.71, allocations: 4.862 MB / 4.437 GB, free: 91.8 MB / 0.9793 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007658/13.72, allocations: 4.023 MB / 4.441 GB, free: 91.7 MB / 0.9793 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.492e-05/13.72, allocations: 15.41 kB / 4.441 GB, free: 91.7 MB / 0.9793 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02147/13.74, allocations: 8.848 MB / 4.45 GB, free: 91.16 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 0.007228/13.74, allocations: 29.09 MB / 4.478 GB, free: 60.97 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/13.74, allocations: 55.59 kB / 4.478 GB, free: 60.97 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/13.74, allocations: 100 kB / 4.479 GB, free: 60.97 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006814/13.75, allocations: 1.437 MB / 4.48 GB, free: 60.96 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002389/13.75, allocations: 130.2 kB / 4.48 GB, free: 60.96 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/13.76, allocations: 0.6279 MB / 4.481 GB, free: 60.91 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001917/13.76, allocations: 283.6 kB / 4.481 GB, free: 60.91 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/13.76, allocations: 5.094 kB / 4.481 GB, free: 60.91 MB / 0.9793 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0193/13.78, allocations: 8.268 MB / 4.489 GB, free: 60.75 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002871/13.78, allocations: 59.72 kB / 4.489 GB, free: 60.75 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/13.78, allocations: 97.34 kB / 4.489 GB, free: 60.75 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006845/13.79, allocations: 1.435 MB / 4.491 GB, free: 60.75 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002413/13.79, allocations: 124.7 kB / 4.491 GB, free: 60.75 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/13.8, allocations: 0.6118 MB / 4.491 GB, free: 60.7 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/13.8, allocations: 281.4 kB / 4.492 GB, free: 60.7 MB / 0.9793 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009826/13.81, allocations: 3.562 MB / 4.495 GB, free: 60.41 MB / 0.9793 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00371/13.82, allocations: 0.7114 MB / 4.496 GB, free: 60.05 MB / 0.9793 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01782/13.84, allocations: 7.109 MB / 4.503 GB, free: 59.75 MB / 0.9793 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.396e-05/13.84, allocations: 44.28 kB / 4.503 GB, free: 59.75 MB / 0.9793 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.413e-05/13.84, allocations: 0 / 4.503 GB, free: 59.75 MB / 0.9793 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01076/13.85, allocations: 5.821 MB / 4.508 GB, free: 59.54 MB / 0.9793 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04634/13.89, allocations: 16.38 MB / 4.524 GB, free: 57.03 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/13.89, allocations: 2.781 kB / 4.524 GB, free: 57.03 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004966/13.9, allocations: 0.9099 MB / 4.525 GB, free: 57 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.738e-05/13.9, allocations: 14.31 kB / 4.525 GB, free: 57 MB / 0.9793 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001331/13.9, allocations: 124.1 kB / 4.525 GB, free: 56.93 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.237e-05/13.9, allocations: 15.69 kB / 4.525 GB, free: 56.93 MB / 0.9793 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/13.9, allocations: 0 / 4.525 GB, free: 56.93 MB / 0.9793 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02543/13.92, allocations: 10.77 MB / 4.536 GB, free: 52.52 MB / 0.9793 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009043/13.93, allocations: 1.75 MB / 4.538 GB, free: 51.61 MB / 0.9793 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004476/13.94, allocations: 93.03 kB / 4.538 GB, free: 51.55 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009461/13.95, allocations: 0.5777 MB / 4.538 GB, free: 51.46 MB / 0.9793 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/13.95, allocations: 258.8 kB / 4.539 GB, free: 51.42 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001541/13.95, allocations: 197.3 kB / 4.539 GB, free: 51.39 MB / 0.9793 GB Notification: Performance of sorting global known variables: time 0.01312/13.96, allocations: 5.545 MB / 4.544 GB, free: 49.51 MB / 0.9793 GB Notification: Performance of sort global known variables: time 6.21e-07/13.96, allocations: 3.844 kB / 4.544 GB, free: 49.51 MB / 0.9793 GB Notification: Performance of remove unused functions: time 0.02598/13.99, allocations: 4.921 MB / 4.549 GB, free: 48.53 MB / 0.9793 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02192/14.01, allocations: 12.21 MB / 4.561 GB, free: 43.39 MB / 0.9793 GB Notification: Performance of simCode: created initialization part: time 0.01869/14.03, allocations: 11.47 MB / 4.572 GB, free: 39.53 MB / 0.9793 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/14.03, allocations: 4.156 kB / 4.572 GB, free: 39.53 MB / 0.9793 GB Notification: Performance of simCode: created simulation system equations: time 0.004816/14.04, allocations: 3.199 MB / 4.575 GB, free: 38.31 MB / 0.9793 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02309/14.06, allocations: 4.379 MB / 4.579 GB, free: 37.62 MB / 0.9793 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9819/15.04, allocations: 117.1 MB / 4.694 GB, free: 163.8 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01673/15.06, allocations: 6.251 MB / 4.7 GB, free: 162.9 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.02303/15.08, allocations: 4.347 MB / 4.704 GB, free: 162.8 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01107/15.09, allocations: 3.718 MB / 4.708 GB, free: 162.8 MB / 1.026 GB Notification: Performance of SimCode: time 1.473e-06/15.09, allocations: 0 / 4.708 GB, free: 162.8 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4089/15.5, allocations: 236.9 MB / 4.939 GB, free: 97.25 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/15.5, allocations: 226.8 kB / 4.939 GB, free: 97 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/26.33, allocations: 0 / 4.939 GB, free: 97 MB / 1.026 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)