Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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: translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005328/0.005328, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.853/0.853, allocations: 132.3 MB / 148.1 MB, free: 228 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.2 MB / 403.2 MB, free: 6.789 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.001013/0.001014, allocations: 106.4 kB / 485.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004512, allocations: 8 kB / 0.5641 GB, free: 2.16 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5038/0.5042, allocations: 81.57 MB / 0.6437 GB, free: 39.4 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.611, allocations: 385.1 MB / 1.02 GB, free: 12.1 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003324/1.612, allocations: 94.08 kB / 1.02 GB, free: 12.05 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 11.64/13.25, allocations: 2.983 GB / 4.003 GB, free: 66.47 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.074e-06/13.25, allocations: 0 / 4.003 GB, free: 66.47 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001605/13.25, allocations: 264.7 kB / 4.003 GB, free: 66.43 MB / 0.7136 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.03935/13.29, allocations: 9.917 MB / 4.013 GB, free: 62.97 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/13.29, allocations: 10.19 kB / 4.013 GB, free: 62.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009241/13.3, allocations: 1.178 MB / 4.014 GB, free: 62.41 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0354/13.33, allocations: 11.1 MB / 4.025 GB, free: 61.31 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008633/13.33, allocations: 0.6196 MB / 4.026 GB, free: 61.29 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004185/13.34, allocations: 0.8184 MB / 4.026 GB, free: 61.29 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03796/13.38, allocations: 11.7 MB / 4.038 GB, free: 60.07 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005336/13.38, allocations: 28.53 kB / 4.038 GB, free: 60.07 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00382/13.38, allocations: 361.2 kB / 4.038 GB, free: 60.07 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000286/13.38, allocations: 245.2 kB / 4.038 GB, free: 60.07 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02722/13.41, allocations: 9.63 MB / 4.048 GB, free: 60 MB / 0.7136 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.09176/13.5, allocations: 46.63 MB / 4.093 GB, free: 40.56 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/13.51, allocations: 6.318 MB / 4.099 GB, free: 40.28 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001397/13.51, allocations: 0.8182 MB / 4.1 GB, free: 39.52 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007958/13.52, allocations: 3.408 MB / 4.104 GB, free: 39.35 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006629/13.53, allocations: 0.5534 MB / 4.104 GB, free: 39.05 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 3.077e-05/13.53, allocations: 0 / 4.104 GB, free: 39.05 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.02348/13.55, allocations: 9.028 MB / 4.113 GB, free: 38.28 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/13.55, allocations: 158.2 kB / 4.113 GB, free: 38.15 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01882/13.57, allocations: 7.199 MB / 4.12 GB, free: 37.73 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001694/13.57, allocations: 109.7 kB / 4.12 GB, free: 37.7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.005303/13.58, allocations: 4.325 MB / 4.124 GB, free: 36.07 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.002599/13.58, allocations: 1.564 MB / 4.126 GB, free: 35.1 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005043/13.58, allocations: 114.8 kB / 4.126 GB, free: 35.1 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0003916/13.58, allocations: 0.5399 MB / 4.127 GB, free: 34.78 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/13.58, allocations: 2.989 MB / 4.13 GB, free: 34.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006171/13.59, allocations: 4.856 MB / 4.134 GB, free: 32.57 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/13.6, allocations: 4.03 MB / 4.138 GB, free: 32.46 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-05/13.6, allocations: 15.25 kB / 4.138 GB, free: 32.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01755/13.62, allocations: 8.856 MB / 4.147 GB, free: 31.91 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0119/13.63, allocations: 29.27 MB / 4.175 GB, free: 32.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002484/13.63, allocations: 60.58 kB / 4.176 GB, free: 32.67 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001482/13.63, allocations: 101.3 kB / 4.176 GB, free: 32.67 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007653/13.64, allocations: 1.434 MB / 4.177 GB, free: 32.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001853/13.64, allocations: 131.5 kB / 4.177 GB, free: 32.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/13.65, allocations: 0.6305 MB / 4.178 GB, free: 32.57 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/13.65, allocations: 279.8 kB / 4.178 GB, free: 32.57 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/13.65, allocations: 3.812 kB / 4.178 GB, free: 32.57 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01344/13.66, allocations: 8.267 MB / 4.186 GB, free: 31.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/13.66, allocations: 59.53 kB / 4.186 GB, free: 31.62 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.608e-05/13.66, allocations: 99.12 kB / 4.186 GB, free: 31.62 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005843/13.67, allocations: 1.437 MB / 4.188 GB, free: 31.48 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001364/13.67, allocations: 121.7 kB / 4.188 GB, free: 31.45 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008915/13.68, allocations: 0.6031 MB / 4.188 GB, free: 31.28 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001781/13.68, allocations: 284.4 kB / 4.189 GB, free: 31.23 MB / 0.7448 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.0109/13.69, allocations: 3.589 MB / 4.192 GB, free: 29.66 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002791/13.69, allocations: 0.7166 MB / 4.193 GB, free: 29.3 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/13.71, allocations: 7.133 MB / 4.2 GB, free: 26.57 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.339e-05/13.71, allocations: 43.53 kB / 4.2 GB, free: 26.57 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/13.71, allocations: 3.75 kB / 4.2 GB, free: 26.57 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008072/13.71, allocations: 5.815 MB / 4.206 GB, free: 24.44 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 0.03789/13.75, allocations: 16.42 MB / 4.222 GB, free: 18.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/13.75, allocations: 0 / 4.222 GB, free: 18.14 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004237/13.76, allocations: 0.9099 MB / 4.222 GB, free: 18.06 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.744e-05/13.76, allocations: 15.75 kB / 4.222 GB, free: 18.06 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005512/13.76, allocations: 117.1 kB / 4.223 GB, free: 18 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-05/13.76, allocations: 18.27 kB / 4.223 GB, free: 18 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/13.76, allocations: 3.625 kB / 4.223 GB, free: 18 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01612/13.77, allocations: 10.79 MB / 4.233 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007805/13.78, allocations: 1.758 MB / 4.235 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003134/13.78, allocations: 95.89 kB / 4.235 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008339/13.79, allocations: 0.5715 MB / 4.236 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/13.79, allocations: 258 kB / 4.236 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001161/13.79, allocations: 198.4 kB / 4.236 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01301/13.81, allocations: 5.633 MB / 4.241 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.72e-07/13.81, allocations: 0 / 4.241 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02353/13.83, allocations: 4.927 MB / 4.246 GB, free: 1.02 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.003122/13.83, allocations: 0.9294 MB / 4.247 GB, free: 292 kB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02701/13.86, allocations: 12.1 MB / 4.259 GB, free: 7.996 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/13.86, allocations: 4.562 kB / 4.259 GB, free: 7.988 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.004901/13.87, allocations: 3.2 MB / 4.262 GB, free: 5.199 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02277/13.89, allocations: 4.378 MB / 4.266 GB, free: 2.121 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5258/14.42, allocations: 22.95 MB / 4.289 GB, free: 94.14 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/14.43, allocations: 6.301 MB / 4.295 GB, free: 93.26 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.017/14.44, allocations: 4.36 MB / 4.299 GB, free: 93.19 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003537/14.45, allocations: 0.6178 MB / 4.3 GB, free: 93.19 MB / 0.7605 GB Notification: Performance of SimCode: time 1.794e-06/14.45, allocations: 7.031 kB / 4.3 GB, free: 93.19 MB / 0.7605 GB Notification: Performance of Templates: time 0.255/14.7, allocations: 158.6 MB / 4.455 GB, free: 68.54 MB / 0.7605 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)