Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01612/0.01612, allocations: 173.2 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.426/1.426, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.145/3.145, allocations: 223.2 MB / 406.8 MB, free: 3.156 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.001628/0.001628, allocations: 101.6 kB / 489.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008559/0.0008559, allocations: 12 kB / 0.5691 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.014, allocations: 82.3 MB / 0.6495 GB, free: 36.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.715/2.729, allocations: 385.4 MB / 1.026 GB, free: 4.746 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003782/2.73, allocations: 102.1 kB / 1.026 GB, free: 4.691 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 23.23/25.96, allocations: 2.983 GB / 4.009 GB, free: 81.74 MB / 0.7292 GB Notification: Performance of FrontEnd: time 9.849e-06/25.96, allocations: 0 / 4.009 GB, free: 81.74 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.004842/25.96, allocations: 265.7 kB / 4.009 GB, free: 81.7 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.07394/26.03, allocations: 9.922 MB / 4.019 GB, free: 78.14 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 8.784e-05/26.03, allocations: 9.656 kB / 4.019 GB, free: 78.14 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01094/26.05, allocations: 1.144 MB / 4.02 GB, free: 78.05 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01585/26.06, allocations: 1.182 MB / 4.021 GB, free: 77.5 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05334/26.12, allocations: 11.1 MB / 4.032 GB, free: 76.4 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.009997/26.13, allocations: 0.6117 MB / 4.033 GB, free: 76.38 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008808/26.13, allocations: 0.8194 MB / 4.033 GB, free: 76.37 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06633/26.2, allocations: 11.7 MB / 4.045 GB, free: 75.16 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001151/26.2, allocations: 31.19 kB / 4.045 GB, free: 75.16 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007839/26.21, allocations: 362.3 kB / 4.045 GB, free: 75.16 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006734/26.21, allocations: 243.8 kB / 4.045 GB, free: 75.16 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.046/26.26, allocations: 9.637 MB / 4.055 GB, free: 75.09 MB / 0.7292 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.1484/26.4, allocations: 46.63 MB / 4.1 GB, free: 55.63 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01725/26.42, allocations: 6.319 MB / 4.107 GB, free: 55.33 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001988/26.42, allocations: 0.8201 MB / 4.107 GB, free: 54.57 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01255/26.44, allocations: 3.407 MB / 4.111 GB, free: 54.4 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01031/26.45, allocations: 0.5593 MB / 4.111 GB, free: 54.09 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 5.99e-05/26.45, allocations: 0 / 4.111 GB, free: 54.09 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.03553/26.48, allocations: 9.033 MB / 4.12 GB, free: 53.32 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/26.48, allocations: 151.9 kB / 4.12 GB, free: 53.19 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0308/26.51, allocations: 7.197 MB / 4.127 GB, free: 52.77 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.00292/26.52, allocations: 114.1 kB / 4.127 GB, free: 52.73 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.01283/26.53, allocations: 4.326 MB / 4.132 GB, free: 49.59 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.005942/26.54, allocations: 1.556 MB / 4.133 GB, free: 48.4 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/26.54, allocations: 121.1 kB / 4.133 GB, free: 48.31 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0009277/26.54, allocations: 0.5424 MB / 4.134 GB, free: 47.9 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009926/26.55, allocations: 2.986 MB / 4.137 GB, free: 46.88 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01421/26.56, allocations: 4.853 MB / 4.141 GB, free: 43.54 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/26.58, allocations: 4.029 MB / 4.145 GB, free: 41.99 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000203/26.58, allocations: 16.31 kB / 4.145 GB, free: 41.99 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.04078/26.62, allocations: 8.858 MB / 4.154 GB, free: 38.87 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.02287/26.64, allocations: 29.27 MB / 4.183 GB, free: 6.965 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000517/26.64, allocations: 58.03 kB / 4.183 GB, free: 6.965 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003539/26.64, allocations: 102.7 kB / 4.183 GB, free: 6.965 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01125/26.65, allocations: 1.432 MB / 4.184 GB, free: 6.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003103/26.65, allocations: 132.6 kB / 4.184 GB, free: 6.789 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01674/26.67, allocations: 0.6273 MB / 4.185 GB, free: 6.605 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003393/26.67, allocations: 281.9 kB / 4.185 GB, free: 6.559 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/26.67, allocations: 7.484 kB / 4.185 GB, free: 6.559 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02621/26.7, allocations: 8.262 MB / 4.193 GB, free: 3.43 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003232/26.7, allocations: 61.16 kB / 4.193 GB, free: 3.43 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/26.7, allocations: 96.69 kB / 4.193 GB, free: 3.43 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009154/26.71, allocations: 1.437 MB / 4.195 GB, free: 3.281 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002174/26.71, allocations: 134.2 kB / 4.195 GB, free: 3.258 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01771/26.73, allocations: 0.5947 MB / 4.196 GB, free: 3.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002958/26.73, allocations: 282.1 kB / 4.196 GB, free: 3.043 MB / 0.7292 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 () * Number of clocked 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.01677/26.75, allocations: 3.594 MB / 4.199 GB, free: 0.7227 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00586/26.75, allocations: 0.7157 MB / 4.2 GB, free: 0 / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/26.78, allocations: 7.129 MB / 4.207 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001029/26.78, allocations: 44 kB / 4.207 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/26.78, allocations: 0 / 4.207 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01704/26.8, allocations: 5.824 MB / 4.213 GB, free: 4.973 MB / 0.7448 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 1.291/28.09, allocations: 16.45 MB / 4.229 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-05/28.09, allocations: 0 / 4.229 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008069/28.1, allocations: 0.9051 MB / 4.23 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/28.1, allocations: 16.69 kB / 4.23 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002033/28.1, allocations: 119.3 kB / 4.23 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.039e-05/28.1, allocations: 16.34 kB / 4.23 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/28.1, allocations: 4.5 kB / 4.23 GB, free: 89.2 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04052/28.14, allocations: 10.78 MB / 4.24 GB, free: 88.66 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01314/28.15, allocations: 1.755 MB / 4.242 GB, free: 88.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006288/28.16, allocations: 95.78 kB / 4.242 GB, free: 88.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01571/28.18, allocations: 0.5748 MB / 4.243 GB, free: 88.57 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002428/28.18, allocations: 259.2 kB / 4.243 GB, free: 88.56 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00216/28.18, allocations: 201.1 kB / 4.243 GB, free: 88.56 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.02452/28.21, allocations: 5.629 MB / 4.249 GB, free: 88.35 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.71e-07/28.21, allocations: 0 / 4.249 GB, free: 88.35 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.04455/28.25, allocations: 4.933 MB / 4.253 GB, free: 88.05 MB / 0.7448 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) * Number of clocked states: 0 () * 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.03905/28.29, allocations: 12.23 MB / 4.265 GB, free: 86.5 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.04251/28.33, allocations: 11.46 MB / 4.277 GB, free: 86.16 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.072e-05/28.33, allocations: 3.5 kB / 4.277 GB, free: 86.16 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.01275/28.34, allocations: 3.198 MB / 4.28 GB, free: 86.02 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04202/28.39, allocations: 4.388 MB / 4.284 GB, free: 85.99 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4572/28.84, allocations: 115.6 MB / 4.397 GB, free: 13.77 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02697/28.87, allocations: 6.31 MB / 4.403 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.03689/28.91, allocations: 4.365 MB / 4.407 GB, free: 12.51 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01762/28.93, allocations: 3.758 MB / 4.411 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of SimCode: time 3.076e-06/28.93, allocations: 0 / 4.411 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.737/30.66, allocations: 238.1 MB / 4.644 GB, free: 81.31 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003432/30.66, allocations: 209.2 kB / 4.644 GB, free: 81.06 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.14/50.8, allocations: 1.531 kB / 4.644 GB, free: 81.06 MB / 0.7605 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)