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.755/1.755, allocations: 289.7 MB / 302.2 MB, free: 2.164 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.001076/0.001077, allocations: 178.9 kB / 371.6 MB, free: 3.383 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.808/1.808, allocations: 205.1 MB / 0.6309 GB, free: 11.79 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.001014/0.001015, allocations: 90.44 kB / 0.745 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.054e-05/4.066e-05, allocations: 0 / 0.8663 GB, free: 15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.313, allocations: 116.3 MB / 0.9799 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.286/1.599, allocations: 412.4 MB / 1.383 GB, free: 0.7852 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000384/1.6, allocations: 88.58 kB / 1.383 GB, free: 0.7422 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 13.02/14.62, allocations: 2.917 GB / 4.3 GB, free: 47.82 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.513e-06/14.62, allocations: 4 kB / 4.3 GB, free: 47.82 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001974/14.63, allocations: 251.8 kB / 4.3 GB, free: 47.57 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.0315/14.66, allocations: 8.287 MB / 4.308 GB, free: 39.2 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/14.66, allocations: 8.031 kB / 4.308 GB, free: 39.19 MB / 0.9792 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006724/14.66, allocations: 1.138 MB / 4.309 GB, free: 38.04 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009801/14.67, allocations: 1.171 MB / 4.31 GB, free: 36.86 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03186/14.71, allocations: 10.74 MB / 4.321 GB, free: 26.08 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001099/14.71, allocations: 0.6101 MB / 4.321 GB, free: 25.46 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005441/14.71, allocations: 0.824 MB / 4.322 GB, free: 24.64 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04007/14.75, allocations: 11.56 MB / 4.334 GB, free: 12.7 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007666/14.75, allocations: 23.88 kB / 4.334 GB, free: 12.67 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004934/14.76, allocations: 352 kB / 4.334 GB, free: 12.33 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000369/14.76, allocations: 247.9 kB / 4.334 GB, free: 12.09 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02693/14.79, allocations: 9.44 MB / 4.343 GB, free: 2.641 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 1.67/16.46, allocations: 46.59 MB / 4.389 GB, free: 86.33 MB / 0.9793 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/16.47, allocations: 6.236 MB / 4.395 GB, free: 86.05 MB / 0.9793 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008076/16.48, allocations: 5.418 MB / 4.4 GB, free: 85.96 MB / 0.9793 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00132/16.48, allocations: 0.8194 MB / 4.401 GB, free: 85.21 MB / 0.9793 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006971/16.48, allocations: 3.322 MB / 4.404 GB, free: 85.04 MB / 0.9793 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006605/16.49, allocations: 0.5608 MB / 4.405 GB, free: 84.88 MB / 0.9793 GB Notification: Performance of pre-optimization done (n=449): time 3.574e-05/16.49, allocations: 0 / 4.405 GB, free: 84.88 MB / 0.9793 GB Notification: Performance of matching and sorting (n=449): time 0.01386/16.5, allocations: 6.193 MB / 4.411 GB, free: 84.33 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/16.5, allocations: 151.3 kB / 4.411 GB, free: 84.2 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01645/16.52, allocations: 7.027 MB / 4.418 GB, free: 83.78 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.001616/16.52, allocations: 114.4 kB / 4.418 GB, free: 83.75 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.005186/16.53, allocations: 4.282 MB / 4.422 GB, free: 82.59 MB / 0.9793 GB Notification: Performance of collectInitialBindings (initialization): time 0.002871/16.53, allocations: 1.561 MB / 4.424 GB, free: 81.81 MB / 0.9793 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000605/16.53, allocations: 117 kB / 4.424 GB, free: 81.81 MB / 0.9793 GB Notification: Performance of setup shared object (initialization): time 0.0004517/16.53, allocations: 0.5419 MB / 4.424 GB, free: 81.49 MB / 0.9793 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00498/16.54, allocations: 2.901 MB / 4.427 GB, free: 81.48 MB / 0.9793 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00674/16.54, allocations: 4.765 MB / 4.432 GB, free: 79.28 MB / 0.9793 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007291/16.55, allocations: 3.964 MB / 4.436 GB, free: 79.16 MB / 0.9793 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001321/16.55, allocations: 16.81 kB / 4.436 GB, free: 79.16 MB / 0.9793 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02044/16.57, allocations: 8.659 MB / 4.444 GB, free: 78.62 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 0.008996/16.58, allocations: 29.09 MB / 4.473 GB, free: 64.44 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002838/16.58, allocations: 58.75 kB / 4.473 GB, free: 64.44 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/16.58, allocations: 100.4 kB / 4.473 GB, free: 64.44 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007237/16.59, allocations: 1.441 MB / 4.474 GB, free: 64.44 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002196/16.59, allocations: 134.3 kB / 4.474 GB, free: 64.43 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01125/16.6, allocations: 0.6286 MB / 4.475 GB, free: 64.39 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002224/16.6, allocations: 280.6 kB / 4.475 GB, free: 64.39 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/16.6, allocations: 4.406 kB / 4.475 GB, free: 64.39 MB / 0.9949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0217/16.62, allocations: 8.08 MB / 4.483 GB, free: 64.24 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003454/16.62, allocations: 60.44 kB / 4.483 GB, free: 64.24 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/16.62, allocations: 97.53 kB / 4.483 GB, free: 64.24 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007285/16.63, allocations: 1.441 MB / 4.485 GB, free: 64.24 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003142/16.63, allocations: 127.3 kB / 4.485 GB, free: 64.24 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/16.64, allocations: 0.6001 MB / 4.485 GB, free: 64.21 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002191/16.64, allocations: 278.5 kB / 4.486 GB, free: 64.21 MB / 0.9949 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.004123/16.65, allocations: 0.5445 MB / 4.486 GB, free: 64.04 MB / 0.9949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003967/16.65, allocations: 0.7086 MB / 4.487 GB, free: 63.68 MB / 0.9949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02056/16.67, allocations: 6.954 MB / 4.494 GB, free: 63.39 MB / 0.9949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/16.67, allocations: 45.69 kB / 4.494 GB, free: 63.39 MB / 0.9949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.453e-05/16.67, allocations: 0.875 kB / 4.494 GB, free: 63.39 MB / 0.9949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01567/16.69, allocations: 5.667 MB / 4.499 GB, free: 63.18 MB / 0.9949 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.04932/16.74, allocations: 16.45 MB / 4.515 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/16.74, allocations: 7.156 kB / 4.515 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004773/16.74, allocations: 0.908 MB / 4.516 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.213e-05/16.74, allocations: 23.64 kB / 4.516 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/16.75, allocations: 120.7 kB / 4.516 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.54e-05/16.75, allocations: 16.28 kB / 4.516 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/16.75, allocations: 0 / 4.516 GB, free: 62.11 MB / 0.9949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01976/16.76, allocations: 10.53 MB / 4.527 GB, free: 61.19 MB / 0.9949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008141/16.77, allocations: 1.751 MB / 4.528 GB, free: 60.73 MB / 0.9949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003988/16.78, allocations: 96.55 kB / 4.528 GB, free: 60.73 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009716/16.79, allocations: 0.5649 MB / 4.529 GB, free: 60.71 MB / 0.9949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001493/16.79, allocations: 252.8 kB / 4.529 GB, free: 60.71 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001561/16.79, allocations: 202.3 kB / 4.529 GB, free: 60.71 MB / 0.9949 GB Notification: Performance of sorting global known variables: time 0.01368/16.8, allocations: 5.472 MB / 4.535 GB, free: 60.46 MB / 0.9949 GB Notification: Performance of sort global known variables: time 3.91e-07/16.8, allocations: 3.281 kB / 4.535 GB, free: 60.46 MB / 0.9949 GB Notification: Performance of remove unused functions: time 0.02643/16.83, allocations: 4.914 MB / 4.539 GB, free: 59.78 MB / 0.9949 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.02817/16.86, allocations: 11.99 MB / 4.551 GB, free: 58.2 MB / 0.9949 GB Notification: Performance of simCode: created initialization part: time 0.02259/16.88, allocations: 11.42 MB / 4.562 GB, free: 57.82 MB / 0.9949 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-05/16.88, allocations: 6 kB / 4.562 GB, free: 57.82 MB / 0.9949 GB Notification: Performance of simCode: created simulation system equations: time 0.006199/16.89, allocations: 3.12 MB / 4.565 GB, free: 57.68 MB / 0.9949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02992/16.92, allocations: 4.395 MB / 4.57 GB, free: 57.19 MB / 0.9949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07452/16.99, allocations: 19.41 MB / 4.589 GB, free: 51.02 MB / 0.9949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01617/17.01, allocations: 6.266 MB / 4.595 GB, free: 49.03 MB / 0.9949 GB Notification: Performance of simCode: alias equations: time 0.02826/17.04, allocations: 6.597 MB / 4.601 GB, free: 48.6 MB / 0.9949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01132/17.05, allocations: 3.593 MB / 4.605 GB, free: 45.69 MB / 0.9949 GB Notification: Performance of SimCode: time 1.293e-06/17.05, allocations: 0 / 4.605 GB, free: 45.69 MB / 0.9949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.213/18.26, allocations: 239.2 MB / 4.838 GB, free: 128.8 MB / 1.011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002432/18.26, allocations: 185.2 kB / 4.838 GB, free: 128.6 MB / 1.011 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/30.23, allocations: 0 / 4.838 GB, free: 128.6 MB / 1.011 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)