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.435/1.435, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 186 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.4 MB / 0.5775 GB, free: 20.61 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.0008831/0.0008833, allocations: 103.5 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003252, allocations: 9.094 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1986, allocations: 106.4 MB / 0.9002 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9792/1.178, allocations: 403.9 MB / 1.295 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003635/1.178, allocations: 94.64 kB / 1.295 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 10.84/12.02, allocations: 2.852 GB / 4.147 GB, free: 95.18 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.685e-06/12.02, allocations: 3.031 kB / 4.147 GB, free: 95.18 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.002837/12.03, allocations: 250.6 kB / 4.147 GB, free: 95.15 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.04656/12.07, allocations: 9.821 MB / 4.157 GB, free: 91.93 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/12.07, allocations: 9.219 kB / 4.157 GB, free: 91.93 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007263/12.08, allocations: 1.146 MB / 4.158 GB, free: 91.84 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009565/12.09, allocations: 1.163 MB / 4.159 GB, free: 91.3 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03318/12.12, allocations: 10.76 MB / 4.169 GB, free: 90.21 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00108/12.12, allocations: 0.614 MB / 4.17 GB, free: 90.19 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004852/12.13, allocations: 0.8203 MB / 4.171 GB, free: 90.18 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04014/12.17, allocations: 11.58 MB / 4.182 GB, free: 89 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006764/12.17, allocations: 29.16 kB / 4.182 GB, free: 89 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003936/12.17, allocations: 354 kB / 4.182 GB, free: 89 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003143/12.17, allocations: 249.2 kB / 4.183 GB, free: 89 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/12.2, allocations: 9.654 MB / 4.192 GB, free: 88.94 MB / 0.9011 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.08925/12.29, allocations: 46.1 MB / 4.237 GB, free: 69.95 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/12.3, allocations: 6.382 MB / 4.243 GB, free: 69.67 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001266/12.3, allocations: 0.826 MB / 4.244 GB, free: 68.91 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00679/12.31, allocations: 3.354 MB / 4.247 GB, free: 68.74 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006631/12.31, allocations: 0.5609 MB / 4.248 GB, free: 68.44 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 4.148e-05/12.31, allocations: 0 / 4.248 GB, free: 68.44 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.02257/12.34, allocations: 9.068 MB / 4.257 GB, free: 67.68 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/12.34, allocations: 155.7 kB / 4.257 GB, free: 67.55 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02107/12.36, allocations: 7.083 MB / 4.264 GB, free: 67.12 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001742/12.36, allocations: 115.4 kB / 4.264 GB, free: 67.09 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.007025/12.37, allocations: 4.259 MB / 4.268 GB, free: 65.48 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003056/12.37, allocations: 1.586 MB / 4.27 GB, free: 64.49 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001404/12.37, allocations: 116.2 kB / 4.27 GB, free: 64.49 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0007449/12.37, allocations: 0.541 MB / 4.27 GB, free: 64.18 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00586/12.38, allocations: 2.999 MB / 4.273 GB, free: 64.16 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007594/12.39, allocations: 4.857 MB / 4.278 GB, free: 61.99 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008074/12.39, allocations: 4.039 MB / 4.282 GB, free: 61.88 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/12.39, allocations: 14.5 kB / 4.282 GB, free: 61.88 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02159/12.42, allocations: 8.867 MB / 4.291 GB, free: 61.35 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.009645/12.43, allocations: 28.65 MB / 4.319 GB, free: 47.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000275/12.43, allocations: 58.41 kB / 4.319 GB, free: 47.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/12.43, allocations: 99.73 kB / 4.319 GB, free: 47.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007369/12.43, allocations: 1.444 MB / 4.32 GB, free: 47.62 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002244/12.43, allocations: 126.8 kB / 4.32 GB, free: 47.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01102/12.44, allocations: 0.6391 MB / 4.321 GB, free: 47.55 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/12.45, allocations: 282.4 kB / 4.321 GB, free: 47.55 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/12.45, allocations: 4.938 kB / 4.321 GB, free: 47.55 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01967/12.47, allocations: 8.287 MB / 4.329 GB, free: 47.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002707/12.47, allocations: 57.28 kB / 4.329 GB, free: 47.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/12.47, allocations: 100.1 kB / 4.33 GB, free: 47.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006692/12.47, allocations: 1.444 MB / 4.331 GB, free: 47.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000201/12.47, allocations: 121.8 kB / 4.331 GB, free: 47.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00967/12.48, allocations: 0.6017 MB / 4.332 GB, free: 47.35 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/12.49, allocations: 285.2 kB / 4.332 GB, free: 47.35 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 () * Number of clocked 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.009794/12.5, allocations: 3.548 MB / 4.335 GB, free: 47.06 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003441/12.5, allocations: 0.7085 MB / 4.336 GB, free: 46.7 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01836/12.52, allocations: 7.152 MB / 4.343 GB, free: 46.41 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.617e-05/12.52, allocations: 43.28 kB / 4.343 GB, free: 46.41 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/12.52, allocations: 3.75 kB / 4.343 GB, free: 46.41 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01232/12.53, allocations: 5.872 MB / 4.349 GB, free: 46.17 MB / 0.9167 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.04692/12.58, allocations: 16.38 MB / 4.365 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/12.58, allocations: 0 / 4.365 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004964/12.58, allocations: 0.9151 MB / 4.366 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.058e-05/12.58, allocations: 14.28 kB / 4.366 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001158/12.58, allocations: 126.9 kB / 4.366 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-05/12.58, allocations: 18.75 kB / 4.366 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/12.58, allocations: 0 / 4.366 GB, free: 45.18 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01999/12.6, allocations: 10.82 MB / 4.376 GB, free: 41.03 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007892/12.61, allocations: 1.729 MB / 4.378 GB, free: 40.12 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005008/12.62, allocations: 105.2 kB / 4.378 GB, free: 40.06 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009334/12.63, allocations: 0.5666 MB / 4.379 GB, free: 39.97 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001482/12.63, allocations: 251.9 kB / 4.379 GB, free: 39.94 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001483/12.63, allocations: 189.2 kB / 4.379 GB, free: 39.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0149/12.64, allocations: 5.537 MB / 4.385 GB, free: 38.03 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6.12e-07/12.64, allocations: 0 / 4.385 GB, free: 38.03 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02549/12.67, allocations: 4.917 MB / 4.389 GB, free: 37.01 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) * Number of clocked states: 0 () * 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.02518/12.69, allocations: 12.27 MB / 4.401 GB, free: 31.81 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02252/12.72, allocations: 11.52 MB / 4.413 GB, free: 28.05 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/12.72, allocations: 3.906 kB / 4.413 GB, free: 28.05 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006314/12.72, allocations: 3.219 MB / 4.416 GB, free: 25.55 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02364/12.75, allocations: 4.387 MB / 4.42 GB, free: 22.66 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.897/13.64, allocations: 114.1 MB / 4.531 GB, free: 128 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/13.66, allocations: 6.259 MB / 4.538 GB, free: 127.1 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.02043/13.68, allocations: 4.321 MB / 4.542 GB, free: 127.1 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01065/13.69, allocations: 3.74 MB / 4.545 GB, free: 127 MB / 0.9636 GB Notification: Performance of SimCode: time 2.144e-06/13.69, allocations: 2.844 kB / 4.545 GB, free: 127 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/14.06, allocations: 236 MB / 4.776 GB, free: 41.61 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/14.06, allocations: 214.8 kB / 4.776 GB, free: 41.38 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/24.7, allocations: 4 kB / 4.776 GB, free: 41.37 MB / 0.9636 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)