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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008899/0.0008899, 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.0009045/0.0009045, 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.196/1.196, 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.8538/0.8538, allocations: 135.2 MB / 426.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.000298, allocations: 8 kB / 0.5068 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.155, allocations: 82.31 MB / 0.5872 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.2886/0.4436, allocations: 46.95 MB / 0.633 GB, free: 26.8 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01496/0.4586, allocations: 15.15 MB / 0.6478 GB, free: 16.14 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001993/0.4606, allocations: 60.19 kB / 0.6479 GB, free: 16.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.4626, allocations: 0.8564 MB / 0.6487 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005113/0.4677, allocations: 2.296 MB / 0.651 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004013/0.4718, allocations: 1.725 MB / 0.6527 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01558/0.4874, allocations: 15.67 MB / 0.668 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01567/0.5031, allocations: 10.06 MB / 0.6778 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01398/0.5171, allocations: 6.082 MB / 0.6837 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01333/0.5304, allocations: 5.319 MB / 0.6889 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.002972/0.5334, allocations: 473.5 kB / 0.6894 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009232/0.5427, allocations: 1.236 MB / 0.6906 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.00529/0.548, allocations: 2.02 MB / 0.6926 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01024/0.5583, allocations: 2.22 MB / 0.6947 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02136/0.5797, allocations: 14.35 MB / 0.7087 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5797, allocations: 0 / 0.7087 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.148e-06/0.5797, allocations: 0 / 0.7087 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0005838/0.5803, allocations: 3.938 kB / 0.7088 GB, free: 15.78 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.02102/0.6013, allocations: 9.55 MB / 0.7181 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.6014, allocations: 12.03 kB / 0.7181 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005139/0.6065, allocations: 1.186 MB / 0.7192 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01772/0.6243, allocations: 8.359 MB / 0.7274 GB, free: 12.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005937/0.6249, allocations: 0.6101 MB / 0.728 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003069/0.628, allocations: 0.8201 MB / 0.7288 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.6512, allocations: 12.4 MB / 0.7409 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/0.6513, allocations: 19.88 kB / 0.7409 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008084/0.6522, allocations: 360 kB / 0.7413 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.6524, allocations: 251.9 kB / 0.7415 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01613/0.6685, allocations: 10.36 MB / 0.7516 GB, free: 3.273 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.06795/0.7365, allocations: 49.24 MB / 0.7997 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00921/0.7457, allocations: 6.371 MB / 0.8059 GB, free: 8.926 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.7471, allocations: 0.8477 MB / 0.8068 GB, free: 7.93 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005779/0.7529, allocations: 3.408 MB / 0.8101 GB, free: 4.488 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004338/0.7573, allocations: 0.5408 MB / 0.8106 GB, free: 3.941 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=449): time 1.719e-05/0.7573, allocations: 4 kB / 0.8106 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of matching and sorting (n=449): time 0.01441/0.7718, allocations: 9.066 MB / 0.8195 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.7719, allocations: 154.2 kB / 0.8196 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01307/0.785, allocations: 7.963 MB / 0.8274 GB, free: 2.688 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.001032/0.7861, allocations: 113.7 kB / 0.8275 GB, free: 2.57 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.004528/0.7906, allocations: 4.322 MB / 0.8317 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.002478/0.7931, allocations: 1.568 MB / 0.8333 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003435/0.7935, allocations: 120 kB / 0.8334 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0003469/0.7938, allocations: 0.5459 MB / 0.8339 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004478/0.7983, allocations: 3.002 MB / 0.8368 GB, free: 8.938 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005519/0.8038, allocations: 4.874 MB / 0.8416 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006456/0.8103, allocations: 4.05 MB / 0.8456 GB, free: 15.16 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.125e-05/0.8104, allocations: 16 kB / 0.8456 GB, free: 15.14 MB / 0.67 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01614/0.8265, allocations: 8.873 MB / 0.8542 GB, free: 6.238 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.4659/1.292, allocations: 29.26 MB / 0.8828 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001801/1.293, allocations: 62.56 kB / 0.8829 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001249/1.293, allocations: 98.41 kB / 0.883 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005423/1.298, allocations: 1.42 MB / 0.8844 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.258e-05/1.298, allocations: 132.2 kB / 0.8845 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006343/1.305, allocations: 0.6413 MB / 0.8851 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005299/1.305, allocations: 274.1 kB / 0.8854 GB, free: 163.2 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/1.305, allocations: 6.438 kB / 0.8854 GB, free: 163.2 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009856/1.315, allocations: 8.279 MB / 0.8935 GB, free: 162.7 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.002e-05/1.315, allocations: 58.16 kB / 0.8935 GB, free: 162.7 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.847e-05/1.315, allocations: 100.5 kB / 0.8936 GB, free: 162.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004441/1.32, allocations: 1.424 MB / 0.895 GB, free: 162.6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.495e-05/1.32, allocations: 127.1 kB / 0.8951 GB, free: 162.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/1.325, allocations: 0.6179 MB / 0.8957 GB, free: 162.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004028/1.326, allocations: 279.2 kB / 0.896 GB, free: 162.5 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.004723/1.33, allocations: 3.593 MB / 0.8995 GB, free: 160.9 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/1.332, allocations: 0.7161 MB / 0.9002 GB, free: 160.9 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009154/1.341, allocations: 7.141 MB / 0.9072 GB, free: 158.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.534e-05/1.341, allocations: 48.59 kB / 0.9072 GB, free: 158.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/1.341, allocations: 1 kB / 0.9072 GB, free: 158.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007478/1.349, allocations: 5.854 MB / 0.9129 GB, free: 156.1 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.02713/1.376, allocations: 16.64 MB / 0.9292 GB, free: 149.7 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/1.376, allocations: 2.094 kB / 0.9292 GB, free: 149.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003546/1.379, allocations: 0.8904 MB / 0.9301 GB, free: 149.6 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.556e-05/1.379, allocations: 15 kB / 0.9301 GB, free: 149.6 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002843/1.38, allocations: 121 kB / 0.9302 GB, free: 149.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.011e-05/1.38, allocations: 14.84 kB / 0.9302 GB, free: 149.5 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.38, allocations: 6.344 kB / 0.9302 GB, free: 149.5 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01535/1.395, allocations: 10.79 MB / 0.9407 GB, free: 145.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00575/1.401, allocations: 1.812 MB / 0.9425 GB, free: 144.5 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001728/1.403, allocations: 95.92 kB / 0.9426 GB, free: 144.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005142/1.408, allocations: 0.6124 MB / 0.9432 GB, free: 144.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004897/1.408, allocations: 251.8 kB / 0.9434 GB, free: 144.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003975/1.409, allocations: 195.5 kB / 0.9436 GB, free: 144.3 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.007577/1.416, allocations: 5.62 MB / 0.9491 GB, free: 142.4 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.31e-07/1.416, allocations: 0 / 0.9491 GB, free: 142.4 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01169/1.428, allocations: 4.854 MB / 0.9539 GB, free: 141.6 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.00151/1.43, allocations: 0.5912 MB / 0.9544 GB, free: 141.4 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01405/1.444, allocations: 11.5 MB / 0.9657 GB, free: 133.1 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/1.444, allocations: 4.562 kB / 0.9657 GB, free: 133.1 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003614/1.447, allocations: 3.223 MB / 0.9688 GB, free: 130.3 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01741/1.465, allocations: 4.385 MB / 0.9731 GB, free: 127.1 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02517/1.49, allocations: 22.68 MB / 0.9952 GB, free: 104.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004044/1.494, allocations: 6.301 MB / 1.001 GB, free: 98.14 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.01093/1.505, allocations: 4.367 MB / 1.006 GB, free: 93.77 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/1.507, allocations: 0.6086 MB / 1.006 GB, free: 93.16 MB / 0.67 GB Notification: Performance of SimCode: time 7.02e-07/1.507, allocations: 0 / 1.006 GB, free: 93.16 MB / 0.67 GB Notification: Performance of Templates: time 0.4664/1.973, allocations: 154.9 MB / 1.158 GB, free: 155.6 MB / 0.7013 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: