Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.62/1.62, allocations: 249.3 MB / 261.8 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001044, allocations: 182.6 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.842/1.842, allocations: 205.2 MB / 0.572 GB, free: 10.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001286/0.001286, allocations: 91.88 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.086e-05/4.089e-05, allocations: 4 kB / 0.788 GB, free: 97.03 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2592, allocations: 106.3 MB / 0.8919 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.784/2.044, allocations: 403.8 MB / 1.286 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/2.044, allocations: 93.45 kB / 1.286 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 11.59/13.64, allocations: 2.845 GB / 4.131 GB, free: 127.5 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.764e-06/13.64, allocations: 3.562 kB / 4.131 GB, free: 127.5 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.002002/13.64, allocations: 255.9 kB / 4.132 GB, free: 127.5 MB / 0.9011 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.0342/13.67, allocations: 8.287 MB / 4.14 GB, free: 124.4 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/13.67, allocations: 10.69 kB / 4.14 GB, free: 124.4 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006653/13.68, allocations: 1.142 MB / 4.141 GB, free: 124.3 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009432/13.69, allocations: 1.156 MB / 4.142 GB, free: 123.8 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03472/13.73, allocations: 10.71 MB / 4.152 GB, free: 122.5 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000882/13.73, allocations: 0.6089 MB / 4.153 GB, free: 122.4 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004261/13.73, allocations: 0.8249 MB / 4.154 GB, free: 122.4 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03337/13.76, allocations: 11.42 MB / 4.165 GB, free: 117.8 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004473/13.76, allocations: 33.61 kB / 4.165 GB, free: 117.8 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003315/13.77, allocations: 354.3 kB / 4.165 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002402/13.77, allocations: 244.6 kB / 4.166 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02632/13.79, allocations: 9.458 MB / 4.175 GB, free: 114.1 MB / 0.9011 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.09877/13.89, allocations: 46.1 MB / 4.22 GB, free: 74.88 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/13.9, allocations: 6.302 MB / 4.226 GB, free: 68.6 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008847/13.91, allocations: 5.425 MB / 4.231 GB, free: 63.17 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001474/13.92, allocations: 0.822 MB / 4.232 GB, free: 62.22 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007593/13.92, allocations: 3.28 MB / 4.235 GB, free: 58.91 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007222/13.93, allocations: 0.5512 MB / 4.236 GB, free: 58.35 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 2.834e-05/13.93, allocations: 11.61 kB / 4.236 GB, free: 58.34 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01645/13.95, allocations: 6.225 MB / 4.242 GB, free: 52.08 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/13.95, allocations: 154.3 kB / 4.242 GB, free: 51.91 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01776/13.96, allocations: 7.01 MB / 4.249 GB, free: 44.92 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001573/13.97, allocations: 109.7 kB / 4.249 GB, free: 44.8 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.006585/13.97, allocations: 4.268 MB / 4.253 GB, free: 40.52 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003327/13.98, allocations: 1.579 MB / 4.255 GB, free: 38.95 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/13.98, allocations: 116 kB / 4.255 GB, free: 38.84 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0007543/13.98, allocations: 0.5499 MB / 4.255 GB, free: 38.28 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005839/13.98, allocations: 2.908 MB / 4.258 GB, free: 35.37 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006805/13.99, allocations: 4.76 MB / 4.263 GB, free: 29.78 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008141/14, allocations: 3.972 MB / 4.267 GB, free: 25.79 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/14, allocations: 16 kB / 4.267 GB, free: 25.77 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02085/14.02, allocations: 8.687 MB / 4.275 GB, free: 17.06 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.009537/14.03, allocations: 28.65 MB / 4.303 GB, free: 2.473 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/14.03, allocations: 56 kB / 4.303 GB, free: 2.418 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/14.03, allocations: 100 kB / 4.303 GB, free: 2.32 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007805/14.04, allocations: 1.447 MB / 4.305 GB, free: 0.8711 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000228/14.04, allocations: 127.5 kB / 4.305 GB, free: 0.7461 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01177/14.05, allocations: 0.6272 MB / 4.306 GB, free: 120 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.9222/14.97, allocations: 277.9 kB / 4.306 GB, free: 143.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/14.97, allocations: 5.156 kB / 4.306 GB, free: 143.6 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02742/15, allocations: 8.104 MB / 4.314 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002711/15, allocations: 59.59 kB / 4.314 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002253/15, allocations: 98.03 kB / 4.314 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008242/15.01, allocations: 1.447 MB / 4.315 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002199/15.01, allocations: 128.6 kB / 4.315 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01033/15.02, allocations: 0.5929 MB / 4.316 GB, free: 143.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002433/15.02, allocations: 283.1 kB / 4.316 GB, free: 143.5 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.003778/15.03, allocations: 0.532 MB / 4.317 GB, free: 143.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004/15.03, allocations: 0.7097 MB / 4.317 GB, free: 143.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02189/15.05, allocations: 7.007 MB / 4.324 GB, free: 143.1 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/15.05, allocations: 46.08 kB / 4.324 GB, free: 143.1 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.724e-05/15.05, allocations: 1.031 kB / 4.324 GB, free: 143.1 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01641/15.07, allocations: 5.7 MB / 4.33 GB, free: 142.8 MB / 0.9167 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.05703/15.13, allocations: 16.45 MB / 4.346 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/15.13, allocations: 5.219 kB / 4.346 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005249/15.13, allocations: 0.9186 MB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-05/15.13, allocations: 17.78 kB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001224/15.13, allocations: 121.8 kB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-05/15.13, allocations: 18.19 kB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/15.13, allocations: 4.469 kB / 4.347 GB, free: 141.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01812/15.15, allocations: 10.6 MB / 4.357 GB, free: 141.1 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007683/15.16, allocations: 1.72 MB / 4.359 GB, free: 140.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0033/15.16, allocations: 93.42 kB / 4.359 GB, free: 140.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008501/15.17, allocations: 0.5614 MB / 4.36 GB, free: 140.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000992/15.17, allocations: 263.3 kB / 4.36 GB, free: 140.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006262/15.17, allocations: 184.8 kB / 4.36 GB, free: 140.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01136/15.18, allocations: 5.47 MB / 4.365 GB, free: 140.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.152e-06/15.18, allocations: 0 / 4.365 GB, free: 140.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02379/15.21, allocations: 4.908 MB / 4.37 GB, free: 140 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * 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.02536/15.23, allocations: 12.04 MB / 4.382 GB, free: 138.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02301/15.26, allocations: 11.46 MB / 4.393 GB, free: 138.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/15.26, allocations: 9.359 kB / 4.393 GB, free: 138.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006267/15.26, allocations: 3.144 MB / 4.396 GB, free: 138 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02793/15.29, allocations: 4.377 MB / 4.401 GB, free: 137.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06177/15.35, allocations: 19.56 MB / 4.42 GB, free: 134.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01026/15.36, allocations: 6.271 MB / 4.426 GB, free: 134 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.02377/15.39, allocations: 6.578 MB / 4.432 GB, free: 133.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007708/15.39, allocations: 3.614 MB / 4.436 GB, free: 133.9 MB / 0.9167 GB Notification: Performance of SimCode: time 1.343e-06/15.39, allocations: 3.25 kB / 4.436 GB, free: 133.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.034/16.43, allocations: 238.3 MB / 4.669 GB, free: 144.7 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/16.43, allocations: 195.1 kB / 4.669 GB, free: 144.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/27.39, allocations: 0 / 4.669 GB, free: 144.5 MB / 0.948 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)