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/ModelicaServices 4.0.0+maint.om/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_dev_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009014/0.0009014, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008564/0.0008565, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8463/0.8463, allocations: 135.2 MB / 426.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002852, allocations: 8 kB / 0.5068 GB, free: 5.297 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1529, allocations: 82.3 MB / 0.5872 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.3055/0.4585, allocations: 46.96 MB / 0.633 GB, free: 26.87 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01545/0.4739, allocations: 15.15 MB / 0.6478 GB, free: 16.22 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002241/0.4762, allocations: 60.97 kB / 0.6479 GB, free: 16.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002498/0.4787, allocations: 0.8615 MB / 0.6487 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006516/0.4853, allocations: 2.287 MB / 0.651 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004445/0.4897, allocations: 1.722 MB / 0.6527 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01758/0.5073, allocations: 15.67 MB / 0.668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01545/0.5228, allocations: 10.07 MB / 0.6778 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01382/0.5367, allocations: 6.081 MB / 0.6837 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01397/0.5507, allocations: 5.32 MB / 0.6889 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.003502/0.5542, allocations: 478.2 kB / 0.6894 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008841/0.5631, allocations: 1.232 MB / 0.6906 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.004332/0.5674, allocations: 2.026 MB / 0.6926 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.005907/0.5734, allocations: 2.218 MB / 0.6947 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0188/0.5922, allocations: 14.34 MB / 0.7087 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.5923, allocations: 4 kB / 0.7087 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.174e-06/0.5923, allocations: 4 kB / 0.7087 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0006527/0.5929, allocations: 0 / 0.7087 GB, free: 15.86 MB / 0.5294 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.02021/0.6131, allocations: 9.55 MB / 0.7181 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.6132, allocations: 8.031 kB / 0.7181 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004901/0.6181, allocations: 1.186 MB / 0.7192 GB, free: 5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01575/0.6338, allocations: 8.374 MB / 0.7274 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004246/0.6343, allocations: 0.6062 MB / 0.728 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001652/0.636, allocations: 0.8201 MB / 0.7288 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02376/0.6597, allocations: 12.38 MB / 0.7409 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.6599, allocations: 27.81 kB / 0.7409 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008487/0.6608, allocations: 356 kB / 0.7413 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.661, allocations: 251.9 kB / 0.7415 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.6787, allocations: 10.36 MB / 0.7516 GB, free: 3.359 MB / 0.5606 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.05907/0.7377, allocations: 49.25 MB / 0.7997 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007983/0.7458, allocations: 6.367 MB / 0.8059 GB, free: 9.008 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001128/0.7469, allocations: 0.8476 MB / 0.8068 GB, free: 8.016 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004531/0.7514, allocations: 3.416 MB / 0.8101 GB, free: 4.566 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003324/0.7548, allocations: 0.5369 MB / 0.8106 GB, free: 4.023 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=449): time 7.043e-06/0.7548, allocations: 0 / 0.8106 GB, free: 4.023 MB / 0.6231 GB Notification: Performance of matching and sorting (n=449): time 0.01295/0.7678, allocations: 9.066 MB / 0.8195 GB, free: 10.89 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/0.7679, allocations: 154.3 kB / 0.8196 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01019/0.7781, allocations: 7.967 MB / 0.8274 GB, free: 2.77 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0008743/0.779, allocations: 109.7 kB / 0.8275 GB, free: 2.656 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003751/0.7827, allocations: 4.33 MB / 0.8317 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001898/0.7846, allocations: 1.556 MB / 0.8333 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.7849, allocations: 116 kB / 0.8334 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0003035/0.7853, allocations: 0.5537 MB / 0.8339 GB, free: 12.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00394/0.7892, allocations: 3.005 MB / 0.8368 GB, free: 9.02 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004967/0.7942, allocations: 4.87 MB / 0.8416 GB, free: 3.312 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005221/0.7994, allocations: 4.046 MB / 0.8455 GB, free: 15.25 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.728e-05/0.7995, allocations: 20 kB / 0.8456 GB, free: 15.23 MB / 0.67 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01541/0.8149, allocations: 8.873 MB / 0.8542 GB, free: 6.328 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.4786/1.294, allocations: 29.26 MB / 0.8828 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/1.294, allocations: 61.86 kB / 0.8829 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001173/1.294, allocations: 99.31 kB / 0.883 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005527/1.299, allocations: 1.427 MB / 0.8844 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.317e-05/1.299, allocations: 126.7 kB / 0.8845 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006432/1.306, allocations: 0.64 MB / 0.8851 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000663/1.307, allocations: 280.9 kB / 0.8854 GB, free: 163.4 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/1.307, allocations: 3.281 kB / 0.8854 GB, free: 163.4 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0103/1.317, allocations: 8.277 MB / 0.8935 GB, free: 162.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/1.317, allocations: 60.62 kB / 0.8935 GB, free: 162.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.97e-05/1.317, allocations: 99.28 kB / 0.8936 GB, free: 162.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004494/1.322, allocations: 1.423 MB / 0.895 GB, free: 162.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.807e-05/1.322, allocations: 129.9 kB / 0.8951 GB, free: 162.7 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005645/1.327, allocations: 0.6173 MB / 0.8957 GB, free: 162.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004999/1.328, allocations: 278.5 kB / 0.896 GB, free: 162.7 MB / 0.67 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.005317/1.333, allocations: 3.596 MB / 0.8995 GB, free: 161.1 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001681/1.335, allocations: 0.7166 MB / 0.9002 GB, free: 161.1 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009304/1.344, allocations: 7.132 MB / 0.9072 GB, free: 158.4 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.333e-05/1.344, allocations: 46.05 kB / 0.9072 GB, free: 158.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/1.344, allocations: 3.75 kB / 0.9072 GB, free: 158.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00771/1.352, allocations: 5.85 MB / 0.9129 GB, free: 156.3 MB / 0.67 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.02915/1.381, allocations: 16.66 MB / 0.9292 GB, free: 149.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/1.381, allocations: 1.594 kB / 0.9292 GB, free: 149.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003523/1.385, allocations: 0.8891 MB / 0.9301 GB, free: 149.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.901e-05/1.385, allocations: 16.16 kB / 0.9301 GB, free: 149.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003059/1.385, allocations: 123.5 kB / 0.9302 GB, free: 149.7 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.1e-05/1.385, allocations: 17 kB / 0.9302 GB, free: 149.7 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.385, allocations: 0 / 0.9302 GB, free: 149.7 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/1.4, allocations: 10.79 MB / 0.9407 GB, free: 145.6 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005645/1.405, allocations: 1.802 MB / 0.9425 GB, free: 144.7 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00208/1.408, allocations: 101.2 kB / 0.9426 GB, free: 144.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005999/1.414, allocations: 0.6108 MB / 0.9432 GB, free: 144.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005608/1.414, allocations: 254.7 kB / 0.9434 GB, free: 144.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004844/1.415, allocations: 196.2 kB / 0.9436 GB, free: 144.4 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.008254/1.423, allocations: 5.614 MB / 0.9491 GB, free: 142.6 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.7e-07/1.423, allocations: 0 / 0.9491 GB, free: 142.6 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01189/1.435, allocations: 4.858 MB / 0.9539 GB, free: 141.8 MB / 0.67 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.001295/1.436, allocations: 0.5935 MB / 0.9544 GB, free: 141.6 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01242/1.449, allocations: 11.5 MB / 0.9657 GB, free: 133.3 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.449, allocations: 4.562 kB / 0.9657 GB, free: 133.3 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003434/1.452, allocations: 3.219 MB / 0.9688 GB, free: 130.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01826/1.47, allocations: 4.385 MB / 0.9731 GB, free: 127.3 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02783/1.498, allocations: 22.68 MB / 0.9952 GB, free: 104.6 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003854/1.502, allocations: 6.297 MB / 1.001 GB, free: 98.29 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.01008/1.512, allocations: 4.367 MB / 1.006 GB, free: 93.91 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/1.514, allocations: 0.6125 MB / 1.006 GB, free: 93.3 MB / 0.67 GB Notification: Performance of SimCode: time 7.32e-07/1.514, allocations: 4 kB / 1.006 GB, free: 93.29 MB / 0.67 GB Notification: Performance of Templates: time 0.461/1.975, allocations: 154.9 MB / 1.158 GB, free: 155.7 MB / 0.7013 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.makefile Environment - environmentSimulation: (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 & ./IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1) Environment - environmentSimulation: