Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6978/0.6978, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009409/0.0009409, allocations: 182.1 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 221.3 MB / 441.4 MB, free: 4.664 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009008/0.0009007, allocations: 94.73 kB / 0.5124 GB, free: 24.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001747/0.001747, allocations: 275 kB / 0.5939 GB, free: 7.984 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.14e-05/3.142e-05, allocations: 8 kB / 0.6835 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3651, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6838/1.049, allocations: 382.6 MB / 1.138 GB, free: 8.094 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/1.049, allocations: 87.2 kB / 1.138 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 8.94/9.989, allocations: 2.966 GB / 4.104 GB, free: 71.43 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.396e-06/9.989, allocations: 3.969 kB / 4.104 GB, free: 71.43 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001214/9.99, allocations: 246.8 kB / 4.104 GB, free: 71.39 MB / 0.7292 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.02306/10.01, allocations: 8.289 MB / 4.112 GB, free: 66.28 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/10.01, allocations: 10.72 kB / 4.112 GB, free: 66.28 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003609/10.02, allocations: 1.138 MB / 4.114 GB, free: 65.47 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005876/10.02, allocations: 1.169 MB / 4.115 GB, free: 64.9 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02314/10.05, allocations: 10.76 MB / 4.125 GB, free: 54.58 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000685/10.05, allocations: 0.6138 MB / 4.126 GB, free: 53.97 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003656/10.05, allocations: 0.8159 MB / 4.127 GB, free: 53.16 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/10.08, allocations: 11.55 MB / 4.138 GB, free: 41.22 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000538/10.08, allocations: 27.78 kB / 4.138 GB, free: 41.2 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00307/10.09, allocations: 360 kB / 4.138 GB, free: 40.85 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000231/10.09, allocations: 243.9 kB / 4.139 GB, free: 40.61 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02016/10.11, allocations: 9.44 MB / 4.148 GB, free: 31.16 MB / 0.7292 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.5174/10.63, allocations: 46.59 MB / 4.193 GB, free: 56.88 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008177/10.63, allocations: 6.235 MB / 4.199 GB, free: 56.6 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006185/10.64, allocations: 5.409 MB / 4.205 GB, free: 56.55 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00096/10.64, allocations: 0.8187 MB / 4.205 GB, free: 55.79 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004634/10.65, allocations: 3.324 MB / 4.209 GB, free: 55.62 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004309/10.65, allocations: 0.562 MB / 4.209 GB, free: 55.62 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 1.37e-05/10.65, allocations: 0 / 4.209 GB, free: 55.62 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.009259/10.66, allocations: 6.19 MB / 4.215 GB, free: 55.24 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.952e-05/10.66, allocations: 158 kB / 4.215 GB, free: 55.11 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01156/10.67, allocations: 7.025 MB / 4.222 GB, free: 54.7 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001137/10.67, allocations: 112.2 kB / 4.222 GB, free: 54.66 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.00364/10.68, allocations: 4.287 MB / 4.227 GB, free: 53.5 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.002106/10.68, allocations: 1.561 MB / 4.228 GB, free: 52.69 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003634/10.68, allocations: 115.8 kB / 4.228 GB, free: 52.69 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002842/10.68, allocations: 0.5439 MB / 4.229 GB, free: 52.37 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003547/10.68, allocations: 2.892 MB / 4.232 GB, free: 52.36 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004111/10.69, allocations: 4.768 MB / 4.236 GB, free: 50.16 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00443/10.69, allocations: 3.959 MB / 4.24 GB, free: 50.04 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/10.69, allocations: 21.38 kB / 4.24 GB, free: 50.04 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01148/10.7, allocations: 8.664 MB / 4.249 GB, free: 49.5 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.008699/10.71, allocations: 29.09 MB / 4.277 GB, free: 51.31 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/10.71, allocations: 65.89 kB / 4.277 GB, free: 51.31 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/10.71, allocations: 97.5 kB / 4.277 GB, free: 51.31 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005879/10.72, allocations: 1.44 MB / 4.279 GB, free: 51.31 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001264/10.72, allocations: 129.8 kB / 4.279 GB, free: 51.31 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007803/10.73, allocations: 0.6175 MB / 4.279 GB, free: 51.25 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/10.73, allocations: 285.9 kB / 4.28 GB, free: 51.25 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/10.73, allocations: 6.25 kB / 4.28 GB, free: 51.25 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01384/10.74, allocations: 8.083 MB / 4.287 GB, free: 51.1 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/10.74, allocations: 59.53 kB / 4.287 GB, free: 51.1 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001178/10.74, allocations: 96.59 kB / 4.288 GB, free: 51.1 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005331/10.75, allocations: 1.442 MB / 4.289 GB, free: 51.1 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001367/10.75, allocations: 130.2 kB / 4.289 GB, free: 51.1 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007093/10.75, allocations: 0.6021 MB / 4.29 GB, free: 51.05 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008704/10.75, allocations: 285.7 kB / 4.29 GB, free: 51.05 MB / 0.7605 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.001844/10.76, allocations: 0.534 MB / 4.29 GB, free: 50.84 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002258/10.76, allocations: 0.7083 MB / 4.291 GB, free: 50.48 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/10.77, allocations: 6.965 MB / 4.298 GB, free: 50.18 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.481e-05/10.77, allocations: 41.38 kB / 4.298 GB, free: 50.18 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.945e-05/10.77, allocations: 3.656 kB / 4.298 GB, free: 50.18 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00731/10.78, allocations: 5.671 MB / 4.304 GB, free: 49.96 MB / 0.7605 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.03119/10.81, allocations: 16.45 MB / 4.32 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/10.81, allocations: 6.141 kB / 4.32 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003886/10.81, allocations: 0.9066 MB / 4.321 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-05/10.81, allocations: 15.97 kB / 4.321 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004932/10.81, allocations: 118.2 kB / 4.321 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-05/10.81, allocations: 16.81 kB / 4.321 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/10.81, allocations: 1.875 kB / 4.321 GB, free: 48.89 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/10.83, allocations: 10.54 MB / 4.331 GB, free: 47.96 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004951/10.83, allocations: 1.745 MB / 4.333 GB, free: 47.51 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002163/10.83, allocations: 93.66 kB / 4.333 GB, free: 47.51 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006281/10.84, allocations: 0.5691 MB / 4.333 GB, free: 47.47 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005052/10.84, allocations: 255.5 kB / 4.334 GB, free: 47.46 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005899/10.84, allocations: 202 kB / 4.334 GB, free: 47.46 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.009633/10.85, allocations: 5.471 MB / 4.339 GB, free: 47.22 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.9e-07/10.85, allocations: 0 / 4.339 GB, free: 47.22 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.01664/10.87, allocations: 4.921 MB / 4.344 GB, free: 46.53 MB / 0.7605 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.01894/10.89, allocations: 11.99 MB / 4.356 GB, free: 44.94 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01618/10.9, allocations: 11.42 MB / 4.367 GB, free: 43.32 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/10.9, allocations: 4.406 kB / 4.367 GB, free: 43.32 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.004173/10.91, allocations: 3.117 MB / 4.37 GB, free: 42.12 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02117/10.93, allocations: 4.38 MB / 4.374 GB, free: 41.43 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04567/10.97, allocations: 19.42 MB / 4.393 GB, free: 34.91 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008602/10.98, allocations: 6.266 MB / 4.399 GB, free: 31.43 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.02283/11.01, allocations: 6.634 MB / 4.406 GB, free: 27.33 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00839/11.01, allocations: 3.589 MB / 4.409 GB, free: 24.01 MB / 0.7605 GB Notification: Performance of SimCode: time 1.503e-06/11.01, allocations: 0 / 4.409 GB, free: 24.01 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7548/11.77, allocations: 239.5 MB / 4.643 GB, free: 80.14 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000141/11.77, allocations: 191.6 kB / 4.643 GB, free: 79.92 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.289/20.06, allocations: 5.438 kB / 4.643 GB, free: 79.92 MB / 0.7761 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)