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.611/1.611, allocations: 285.4 MB / 298 MB, free: 5.973 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.001008/0.001008, allocations: 176.9 kB / 366.4 MB, free: 2.078 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.851/1.851, allocations: 205.1 MB / 0.6248 GB, free: 7.699 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.0009442/0.0009443, allocations: 100.2 kB / 0.738 GB, free: 40.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.865e-05/3.882e-05, allocations: 4 kB / 0.8584 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8122/0.8123, allocations: 115.3 MB / 0.971 GB, free: 77.99 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.216/2.029, allocations: 411.4 MB / 1.373 GB, free: 148.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/2.029, allocations: 89.33 kB / 1.373 GB, free: 148.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 12.03/14.05, allocations: 2.917 GB / 4.29 GB, free: 125.6 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.424e-06/14.05, allocations: 0 / 4.29 GB, free: 125.6 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.00164/14.06, allocations: 251.2 kB / 4.29 GB, free: 125.6 MB / 0.9636 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.03251/14.09, allocations: 8.297 MB / 4.298 GB, free: 122.7 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/14.09, allocations: 11.66 kB / 4.298 GB, free: 122.7 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00677/14.1, allocations: 1.133 MB / 4.299 GB, free: 122.7 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009473/14.1, allocations: 1.167 MB / 4.3 GB, free: 122.1 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03258/14.14, allocations: 10.75 MB / 4.311 GB, free: 121 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009809/14.14, allocations: 0.6131 MB / 4.312 GB, free: 121 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00467/14.14, allocations: 0.8228 MB / 4.312 GB, free: 121 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04035/14.18, allocations: 11.55 MB / 4.324 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008226/14.18, allocations: 28.47 kB / 4.324 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004422/14.19, allocations: 360.8 kB / 4.324 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004376/14.19, allocations: 244.6 kB / 4.324 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0283/14.22, allocations: 9.438 MB / 4.333 GB, free: 119.7 MB / 0.9636 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.1054/14.32, allocations: 46.59 MB / 4.379 GB, free: 100.2 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01263/14.34, allocations: 6.245 MB / 4.385 GB, free: 99.94 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009838/14.35, allocations: 5.403 MB / 4.39 GB, free: 99.02 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/14.35, allocations: 0.8208 MB / 4.391 GB, free: 98.25 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009152/14.36, allocations: 3.323 MB / 4.394 GB, free: 97.06 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008318/14.37, allocations: 0.5601 MB / 4.395 GB, free: 96.7 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=449): time 4.257e-05/14.37, allocations: 3.688 kB / 4.395 GB, free: 96.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=449): time 0.02061/14.39, allocations: 6.189 MB / 4.401 GB, free: 94.43 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/14.39, allocations: 157.7 kB / 4.401 GB, free: 94.3 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02221/14.41, allocations: 7.019 MB / 4.408 GB, free: 91.89 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.001994/14.41, allocations: 112.3 kB / 4.408 GB, free: 91.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.00793/14.42, allocations: 4.287 MB / 4.412 GB, free: 88.55 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.00349/14.42, allocations: 1.555 MB / 4.414 GB, free: 87.37 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00157/14.42, allocations: 122 kB / 4.414 GB, free: 87.27 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0008669/14.42, allocations: 0.5453 MB / 4.414 GB, free: 86.87 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006509/14.43, allocations: 2.894 MB / 4.417 GB, free: 85.86 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008031/14.44, allocations: 4.767 MB / 4.422 GB, free: 82.53 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008256/14.45, allocations: 3.962 MB / 4.426 GB, free: 81.19 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001427/14.45, allocations: 20.25 kB / 4.426 GB, free: 81.19 MB / 0.9636 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0236/14.47, allocations: 8.67 MB / 4.434 GB, free: 78.09 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.00967/14.48, allocations: 29.08 MB / 4.463 GB, free: 47.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002564/14.48, allocations: 58.91 kB / 4.463 GB, free: 47.32 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002155/14.48, allocations: 102.4 kB / 4.463 GB, free: 47.32 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008031/14.49, allocations: 1.447 MB / 4.464 GB, free: 47.18 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002881/14.49, allocations: 122.7 kB / 4.464 GB, free: 47.15 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0127/14.5, allocations: 0.6254 MB / 4.465 GB, free: 46.96 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002325/14.5, allocations: 281.6 kB / 4.465 GB, free: 46.92 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/14.5, allocations: 3.688 kB / 4.465 GB, free: 46.92 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02054/14.53, allocations: 8.08 MB / 4.473 GB, free: 44.02 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002796/14.53, allocations: 63.69 kB / 4.473 GB, free: 44.01 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/14.53, allocations: 99.12 kB / 4.473 GB, free: 44.01 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007035/14.53, allocations: 1.441 MB / 4.475 GB, free: 43.86 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00023/14.53, allocations: 127.8 kB / 4.475 GB, free: 43.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/14.54, allocations: 0.5943 MB / 4.475 GB, free: 43.67 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/14.55, allocations: 284.6 kB / 4.476 GB, free: 43.62 MB / 0.9636 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.004045/14.55, allocations: 0.5372 MB / 4.476 GB, free: 43.15 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004358/14.55, allocations: 0.7073 MB / 4.477 GB, free: 42.79 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/14.57, allocations: 6.954 MB / 4.484 GB, free: 39.77 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.329e-05/14.57, allocations: 44 kB / 4.484 GB, free: 39.73 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.744e-05/14.57, allocations: 0 / 4.484 GB, free: 39.73 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01124/14.59, allocations: 5.671 MB / 4.489 GB, free: 34.86 MB / 0.9636 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.05539/14.64, allocations: 16.46 MB / 4.505 GB, free: 21.78 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/14.64, allocations: 4 kB / 4.505 GB, free: 21.78 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005187/14.65, allocations: 0.9079 MB / 4.506 GB, free: 21.03 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/14.65, allocations: 12 kB / 4.506 GB, free: 21.02 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001298/14.65, allocations: 126 kB / 4.506 GB, free: 20.91 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.934e-05/14.65, allocations: 12 kB / 4.506 GB, free: 20.9 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/14.65, allocations: 4 kB / 4.506 GB, free: 20.89 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02216/14.67, allocations: 10.54 MB / 4.517 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01024/14.68, allocations: 1.742 MB / 4.518 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00667/14.69, allocations: 99.14 kB / 4.518 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01123/14.7, allocations: 0.5699 MB / 4.519 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001832/14.7, allocations: 248 kB / 4.519 GB, free: 9.414 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001926/14.7, allocations: 200.8 kB / 4.519 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.01744/14.72, allocations: 5.475 MB / 4.525 GB, free: 4.527 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.615e-06/14.72, allocations: 4 kB / 4.525 GB, free: 4.523 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.02994/14.75, allocations: 4.915 MB / 4.53 GB, free: 15.61 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.0281/14.78, allocations: 11.99 MB / 4.541 GB, free: 5.023 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.02866/14.81, allocations: 11.47 MB / 4.553 GB, free: 10.87 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/14.81, allocations: 5.375 kB / 4.553 GB, free: 10.87 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.007162/14.81, allocations: 3.123 MB / 4.556 GB, free: 8.035 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02745/14.84, allocations: 4.388 MB / 4.56 GB, free: 4.902 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8054/15.65, allocations: 19.41 MB / 4.579 GB, free: 145.2 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01392/15.66, allocations: 6.268 MB / 4.585 GB, free: 144.3 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.02549/15.69, allocations: 6.587 MB / 4.591 GB, free: 144.2 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00902/15.7, allocations: 3.595 MB / 4.595 GB, free: 144.2 MB / 0.9948 GB Notification: Performance of SimCode: time 1.783e-06/15.7, allocations: 0 / 4.595 GB, free: 144.2 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3804/16.08, allocations: 239.3 MB / 4.829 GB, free: 65.84 MB / 0.9948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/16.08, allocations: 203.9 kB / 4.829 GB, free: 65.61 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/27.85, allocations: 0 / 4.829 GB, free: 65.61 MB / 0.9948 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)