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.001108/0.001108, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 179.4 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9274/0.9274, allocations: 135.3 MB / 427.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 12 kB / 0.5082 GB, free: 4.742 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1585, allocations: 82.3 MB / 0.5886 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.3043/0.4628, allocations: 54.72 MB / 0.642 GB, free: 20.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01734/0.4802, allocations: 17.31 MB / 0.659 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/0.4825, allocations: 68.31 kB / 0.659 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001852/0.4844, allocations: 0.7862 MB / 0.6598 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00527/0.4897, allocations: 2.272 MB / 0.662 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003554/0.4933, allocations: 1.603 MB / 0.6636 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.03673/0.53, allocations: 38.25 MB / 0.7009 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01666/0.5467, allocations: 11.46 MB / 0.7121 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01573/0.5625, allocations: 7.111 MB / 0.7191 GB, free: 6.609 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01465/0.5772, allocations: 8 MB / 0.7269 GB, free: 14.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002387/0.5796, allocations: 472 kB / 0.7273 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007341/0.587, allocations: 1.549 MB / 0.7288 GB, free: 12.56 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003753/0.5907, allocations: 2.19 MB / 0.731 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.01124/0.602, allocations: 5.358 MB / 0.7362 GB, free: 4.969 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0179/0.6199, allocations: 14.49 MB / 0.7504 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.62, allocations: 0 / 0.7504 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.947e-06/0.62, allocations: 4 kB / 0.7504 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0006434/0.6207, allocations: 0 / 0.7504 GB, free: 6.438 MB / 0.5606 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.02237/0.643, allocations: 9.468 MB / 0.7596 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.6431, allocations: 11.97 kB / 0.7596 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005704/0.6488, allocations: 1.187 MB / 0.7608 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/0.6671, allocations: 9.204 MB / 0.7698 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006248/0.6678, allocations: 0.614 MB / 0.7704 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/0.6704, allocations: 0.8123 MB / 0.7712 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0268/0.6972, allocations: 12.52 MB / 0.7834 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002464/0.6975, allocations: 23.81 kB / 0.7834 GB, free: 4.008 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001375/0.6989, allocations: 356 kB / 0.7838 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002326/0.6991, allocations: 251.9 kB / 0.784 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02198/0.7211, allocations: 10.42 MB / 0.7942 GB, free: 8.98 MB / 0.6075 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.07016/0.7913, allocations: 48.89 MB / 0.8419 GB, free: 5.371 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009795/0.8011, allocations: 6.274 MB / 0.848 GB, free: 15.08 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007612/0.8088, allocations: 4.97 MB / 0.8529 GB, free: 10.1 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001367/0.8102, allocations: 0.8438 MB / 0.8537 GB, free: 9.109 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006324/0.8165, allocations: 3.432 MB / 0.8571 GB, free: 5.641 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003978/0.8205, allocations: 0.4984 MB / 0.8576 GB, free: 5.137 MB / 0.67 GB Notification: Performance of pre-optimization done (n=449): time 1.215e-05/0.8206, allocations: 3.938 kB / 0.8576 GB, free: 5.133 MB / 0.67 GB Notification: Performance of matching and sorting (n=449): time 0.6069/1.428, allocations: 8.888 MB / 0.8662 GB, free: 148.3 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/1.428, allocations: 159.2 kB / 0.8664 GB, free: 148.2 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/1.439, allocations: 7.424 MB / 0.8736 GB, free: 147.8 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.001042/1.44, allocations: 115.1 kB / 0.8737 GB, free: 147.7 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.003802/1.444, allocations: 4.328 MB / 0.878 GB, free: 146.7 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.002168/1.446, allocations: 1.554 MB / 0.8795 GB, free: 145.8 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008806/1.447, allocations: 481 kB / 0.88 GB, free: 145.7 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 5.122e-05/1.447, allocations: 303 kB / 0.8802 GB, free: 145.4 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004638/1.452, allocations: 3.015 MB / 0.8832 GB, free: 145.4 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005914/1.458, allocations: 4.901 MB / 0.888 GB, free: 143.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01225/1.47, allocations: 8.601 MB / 0.8964 GB, free: 139.1 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001446/1.471, allocations: 17.09 kB / 0.8964 GB, free: 139.1 MB / 0.67 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01768/1.488, allocations: 8.888 MB / 0.9051 GB, free: 136 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.001033/1.489, allocations: 1.899 MB / 0.9069 GB, free: 133.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.496e-05/1.489, allocations: 56.95 kB / 0.907 GB, free: 133.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/1.49, allocations: 89.91 kB / 0.9071 GB, free: 133.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005841/1.495, allocations: 1.366 MB / 0.9084 GB, free: 133.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001918/1.496, allocations: 133.9 kB / 0.9085 GB, free: 133.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007535/1.503, allocations: 0.6223 MB / 0.9091 GB, free: 133.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.504, allocations: 277.2 kB / 0.9094 GB, free: 133.2 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/1.504, allocations: 7.875 kB / 0.9094 GB, free: 133.2 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01415/1.519, allocations: 8.293 MB / 0.9175 GB, free: 130.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/1.519, allocations: 58.09 kB / 0.9176 GB, free: 130.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001129/1.519, allocations: 90.48 kB / 0.9176 GB, free: 130.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/1.524, allocations: 1.357 MB / 0.919 GB, free: 130.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001913/1.525, allocations: 128.6 kB / 0.9191 GB, free: 130.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007189/1.532, allocations: 0.6042 MB / 0.9197 GB, free: 130.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/1.533, allocations: 274.8 kB / 0.9199 GB, free: 130.2 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 (P.nextEventScaled,P.nextEvent,$PRE.P.nextEvent,P.last,P.b,P.a,TWat.nextEventScaled,TWat.nextEvent,$PRE.TWat.nextEvent,TWat.last,TWat.b,TWat.a,$whenCondition2,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007157/1.54, allocations: 3.588 MB / 0.9234 GB, free: 128.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001886/1.542, allocations: 0.721 MB / 0.9241 GB, free: 128.3 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.554, allocations: 7.135 MB / 0.9311 GB, free: 125.6 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.515e-05/1.554, allocations: 41.91 kB / 0.9312 GB, free: 125.6 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.554, allocations: 0 / 0.9312 GB, free: 125.6 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008329/1.562, allocations: 5.84 MB / 0.9369 GB, free: 123.5 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.02661/1.589, allocations: 16.56 MB / 0.953 GB, free: 115.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/1.589, allocations: 4 kB / 0.953 GB, free: 115.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003586/1.593, allocations: 0.9337 MB / 0.9539 GB, free: 114.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.767e-05/1.593, allocations: 16 kB / 0.954 GB, free: 114.1 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/1.593, allocations: 123.9 kB / 0.9541 GB, free: 114 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.595e-05/1.593, allocations: 21.81 kB / 0.9541 GB, free: 114 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.593, allocations: 0 / 0.9541 GB, free: 114 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/1.605, allocations: 10.58 MB / 0.9644 GB, free: 103.4 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004133/1.609, allocations: 1.68 MB / 0.9661 GB, free: 101.7 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001575/1.611, allocations: 98.61 kB / 0.9662 GB, free: 101.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00581/1.617, allocations: 0.6277 MB / 0.9668 GB, free: 100.9 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000715/1.617, allocations: 252.8 kB / 0.967 GB, free: 100.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004589/1.618, allocations: 199.8 kB / 0.9672 GB, free: 100.5 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.007217/1.625, allocations: 5.202 MB / 0.9723 GB, free: 95.33 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.31e-07/1.625, allocations: 0 / 0.9723 GB, free: 95.33 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01393/1.639, allocations: 4.807 MB / 0.977 GB, free: 90.53 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001831/1.641, allocations: 0.5741 MB / 0.9775 GB, free: 90.06 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01505/1.656, allocations: 11.48 MB / 0.9888 GB, free: 78.94 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.656, allocations: 4.562 kB / 0.9888 GB, free: 78.93 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003843/1.66, allocations: 3.195 MB / 0.9919 GB, free: 75.8 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02326/1.683, allocations: 4.5 MB / 0.9963 GB, free: 71.44 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/1.717, allocations: 23.56 MB / 1.019 GB, free: 47.87 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006158/1.723, allocations: 6.095 MB / 1.025 GB, free: 41.73 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002737/1.726, allocations: 0.6476 MB / 1.026 GB, free: 41.09 MB / 0.67 GB Notification: Performance of SimCode: time 8.92e-07/1.726, allocations: 0 / 1.026 GB, free: 41.09 MB / 0.67 GB Notification: Performance of Templates: time 0.5086/2.234, allocations: 152.1 MB / 1.174 GB, free: 196.4 MB / 0.7482 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.makefile (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)