Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.967/1.967, allocations: 289.9 MB / 297.4 MB, free: 6.371 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.001379/0.001379, allocations: 180.8 kB / 366.7 MB, free: 1.652 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.68/1.68, allocations: 205.2 MB / 0.626 GB, free: 7.164 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008524/0.0008524, allocations: 94.28 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.279e-05/2.282e-05, allocations: 4 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8087/0.8087, allocations: 116.3 MB / 0.9733 GB, free: 76.1 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.22/2.028, allocations: 411.8 MB / 1.375 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/2.029, allocations: 91 kB / 1.376 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 11.88/13.91, allocations: 2.902 GB / 4.278 GB, free: 135.5 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.164e-06/13.91, allocations: 2.156 kB / 4.278 GB, free: 135.5 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.002221/13.91, allocations: 253.2 kB / 4.278 GB, free: 135.5 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 0.03851/13.95, allocations: 8.287 MB / 4.286 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/13.95, allocations: 10.38 kB / 4.286 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/13.96, allocations: 1.163 MB / 4.287 GB, free: 132.2 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03356/14, allocations: 10.75 MB / 4.298 GB, free: 131.1 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008631/14, allocations: 268.6 kB / 4.298 GB, free: 131.1 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004402/14, allocations: 491.9 kB / 4.299 GB, free: 131.1 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0254/14.03, allocations: 8.897 MB / 4.307 GB, free: 131.1 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03438/14.06, allocations: 10.35 MB / 4.317 GB, free: 129.9 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000483/14.06, allocations: 35.34 kB / 4.317 GB, free: 129.9 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003285/14.07, allocations: 15.47 kB / 4.317 GB, free: 129.9 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002297/14.07, allocations: 251 kB / 4.318 GB, free: 129.9 MB / 0.9792 GB Warning: The model contains alias variables with conflicting start and/or 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.09631/14.16, allocations: 44.98 MB / 4.362 GB, free: 110.7 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/14.17, allocations: 5.985 MB / 4.367 GB, free: 110.4 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006491/14.18, allocations: 4.653 MB / 4.372 GB, free: 110.3 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001337/14.18, allocations: 0.8202 MB / 4.373 GB, free: 109.6 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006641/14.19, allocations: 3.182 MB / 4.376 GB, free: 109.4 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005443/14.19, allocations: 392 kB / 4.376 GB, free: 109.2 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=449): time 9.547e-06/14.19, allocations: 0 / 4.376 GB, free: 109.2 MB / 0.9792 GB Notification: Performance of matching and sorting (n=449): time 0.01202/14.2, allocations: 6.117 MB / 4.382 GB, free: 108.7 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/14.2, allocations: 155.4 kB / 4.382 GB, free: 108.6 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/14.22, allocations: 5.827 MB / 4.388 GB, free: 108.2 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.001476/14.22, allocations: 30.17 kB / 4.388 GB, free: 108.2 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.004859/14.22, allocations: 4.287 MB / 4.392 GB, free: 106.4 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.002739/14.22, allocations: 1.502 MB / 4.394 GB, free: 105.4 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004779/14.23, allocations: 0 / 4.394 GB, free: 105.4 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0004047/14.23, allocations: 0.5402 MB / 4.394 GB, free: 105.1 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003736/14.23, allocations: 2.784 MB / 4.397 GB, free: 105.1 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/14.23, allocations: 4.615 MB / 4.401 GB, free: 102.9 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00666/14.24, allocations: 4.063 MB / 4.405 GB, free: 102.8 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.707e-05/14.24, allocations: 15.72 kB / 4.405 GB, free: 102.8 MB / 0.9792 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01686/14.26, allocations: 8.234 MB / 4.413 GB, free: 102.4 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.006251/14.26, allocations: 27.94 MB / 4.441 GB, free: 73.24 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002074/14.26, allocations: 59.44 kB / 4.441 GB, free: 73.24 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/14.26, allocations: 98.02 kB / 4.441 GB, free: 73.23 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007024/14.27, allocations: 1.445 MB / 4.442 GB, free: 73.23 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000151/14.27, allocations: 130.5 kB / 4.442 GB, free: 73.23 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/14.28, allocations: 0.5097 MB / 4.443 GB, free: 73.17 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001889/14.28, allocations: 280.5 kB / 4.443 GB, free: 73.17 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/14.28, allocations: 6.781 kB / 4.443 GB, free: 73.17 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01445/14.3, allocations: 7.6 MB / 4.451 GB, free: 71.08 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/14.3, allocations: 57.41 kB / 4.451 GB, free: 71.08 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/14.3, allocations: 102.2 kB / 4.451 GB, free: 71.08 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00621/14.31, allocations: 1.447 MB / 4.452 GB, free: 70.94 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001445/14.31, allocations: 127.7 kB / 4.452 GB, free: 70.92 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009354/14.31, allocations: 492.5 kB / 4.453 GB, free: 70.87 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001951/14.32, allocations: 281.3 kB / 4.453 GB, free: 70.82 MB / 0.9792 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 () * 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.002413/14.32, allocations: 358.6 kB / 4.453 GB, free: 70.5 MB / 0.9792 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0133/14.33, allocations: 6.145 MB / 4.459 GB, free: 68.37 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003211/14.34, allocations: 0.634 MB / 4.46 GB, free: 68.04 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01562/14.35, allocations: 6.753 MB / 4.467 GB, free: 65.74 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.879e-05/14.35, allocations: 43.41 kB / 4.467 GB, free: 65.74 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/14.35, allocations: 0 / 4.467 GB, free: 65.74 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008529/14.36, allocations: 5.649 MB / 4.472 GB, free: 63.88 MB / 0.9792 GB Warning: The model contains alias variables with conflicting start and/or 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.03769/14.4, allocations: 15.37 MB / 4.487 GB, free: 58.18 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/14.4, allocations: 3.562 kB / 4.487 GB, free: 58.18 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/14.4, allocations: 0.9131 MB / 4.488 GB, free: 58.11 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.586e-05/14.4, allocations: 14.19 kB / 4.488 GB, free: 58.11 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003534/14.4, allocations: 63.75 kB / 4.488 GB, free: 58.09 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.85e-05/14.4, allocations: 18.56 kB / 4.488 GB, free: 58.09 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/14.4, allocations: 1.25 kB / 4.488 GB, free: 58.09 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01519/14.42, allocations: 10.32 MB / 4.498 GB, free: 54.02 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007/14.42, allocations: 1.66 MB / 4.5 GB, free: 53.17 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003147/14.43, allocations: 26.19 kB / 4.5 GB, free: 53.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008284/14.44, allocations: 0.4914 MB / 4.5 GB, free: 53.12 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/14.44, allocations: 253.1 kB / 4.501 GB, free: 53.09 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008187/14.44, allocations: 202.4 kB / 4.501 GB, free: 53.05 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.009556/14.45, allocations: 4.443 MB / 4.505 GB, free: 51.28 MB / 0.9792 GB Notification: Performance of sort global known variables: time 3.11e-07/14.45, allocations: 0 / 4.505 GB, free: 51.28 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.02576/14.47, allocations: 4.771 MB / 4.51 GB, free: 46.51 MB / 0.9792 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) * 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.01973/14.49, allocations: 11.72 MB / 4.521 GB, free: 36.33 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.01926/14.51, allocations: 10.86 MB / 4.532 GB, free: 26.6 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/14.51, allocations: 4.562 kB / 4.532 GB, free: 26.59 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0043/14.52, allocations: 3.032 MB / 4.535 GB, free: 23.86 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02128/14.54, allocations: 3.478 MB / 4.538 GB, free: 21.4 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04827/14.59, allocations: 18.74 MB / 4.557 GB, free: 5.406 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008304/14.59, allocations: 6.266 MB / 4.563 GB, free: 0.7539 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.04138/14.64, allocations: 7.216 MB / 4.57 GB, free: 0 / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01947/14.66, allocations: 4.28 MB / 4.574 GB, free: 15.5 MB / 0.9948 GB Notification: Performance of SimCode: time 1.583e-06/14.66, allocations: 0 / 4.574 GB, free: 15.5 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.129/15.79, allocations: 199.9 MB / 4.769 GB, free: 120.9 MB / 0.9948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/15.79, allocations: 165.3 kB / 4.769 GB, free: 120.7 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/25.8, allocations: 0 / 4.769 GB, free: 120.7 MB / 0.9948 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)