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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001206/0.001206, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001569/0.001568, allocations: 172.1 kB / 16.26 MB, free: 6.664 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.456/1.456, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7732/0.7732, allocations: 132.4 MB / 423.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003237, allocations: 8 kB / 0.504 GB, free: 3.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4498/0.4502, allocations: 81.58 MB / 0.5837 GB, free: 4.297 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.06817/0.5184, allocations: 54.74 MB / 0.6371 GB, free: 9.734 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02557/0.544, allocations: 17.3 MB / 0.654 GB, free: 8.383 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004765/0.5488, allocations: 71.56 kB / 0.6541 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003518/0.5524, allocations: 0.7965 MB / 0.6549 GB, free: 7.512 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008936/0.5613, allocations: 2.267 MB / 0.6571 GB, free: 5.234 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005267/0.5666, allocations: 1.603 MB / 0.6586 GB, free: 3.648 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.04212/0.6088, allocations: 38.26 MB / 0.696 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01825/0.6271, allocations: 11.45 MB / 0.7072 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01524/0.6423, allocations: 7.115 MB / 0.7141 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02002/0.6624, allocations: 7.989 MB / 0.7219 GB, free: 2.551 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.003842/0.6663, allocations: 472 kB / 0.7224 GB, free: 2.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009276/0.6756, allocations: 1.556 MB / 0.7239 GB, free: 0.5312 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.005133/0.6808, allocations: 2.194 MB / 0.7261 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0126/0.6934, allocations: 5.354 MB / 0.7313 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.03006/0.7235, allocations: 17.15 MB / 0.748 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.7235, allocations: 0 / 0.748 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.046e-06/0.7236, allocations: 0 / 0.748 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0008065/0.7244, allocations: 0 / 0.748 GB, free: 7.734 MB / 0.5762 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.03609/0.7605, allocations: 9.46 MB / 0.7573 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/0.7606, allocations: 16.02 kB / 0.7573 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008316/0.7689, allocations: 1.183 MB / 0.7584 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0238/0.7927, allocations: 9.203 MB / 0.7674 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007572/0.7935, allocations: 0.6101 MB / 0.768 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003432/0.797, allocations: 0.8162 MB / 0.7688 GB, free: 2.246 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03369/0.8307, allocations: 12.53 MB / 0.7811 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005019/0.8313, allocations: 27.77 kB / 0.7811 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003579/0.8349, allocations: 360 kB / 0.7814 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000341/0.8352, allocations: 247.9 kB / 0.7817 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/0.8624, allocations: 10.42 MB / 0.7918 GB, free: 10.27 MB / 0.6231 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.8881/1.751, allocations: 48.88 MB / 0.8396 GB, free: 175.4 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/1.761, allocations: 6.26 MB / 0.8457 GB, free: 173 MB / 0.6388 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007634/1.769, allocations: 4.974 MB / 0.8506 GB, free: 170.9 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001332/1.77, allocations: 0.8449 MB / 0.8514 GB, free: 170.1 MB / 0.6388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005576/1.776, allocations: 3.434 MB / 0.8547 GB, free: 168.1 MB / 0.6388 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004906/1.781, allocations: 0.5042 MB / 0.8552 GB, free: 168 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=449): time 1.753e-05/1.781, allocations: 0 / 0.8552 GB, free: 168 MB / 0.6388 GB Notification: Performance of matching and sorting (n=449): time 0.01471/1.796, allocations: 8.887 MB / 0.8639 GB, free: 163.6 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/1.796, allocations: 160.1 kB / 0.8641 GB, free: 163.5 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/1.809, allocations: 7.427 MB / 0.8713 GB, free: 159.7 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.001499/1.811, allocations: 114 kB / 0.8714 GB, free: 159.6 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.004002/1.815, allocations: 4.325 MB / 0.8756 GB, free: 155.9 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.002571/1.818, allocations: 1.566 MB / 0.8772 GB, free: 154.5 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007744/1.818, allocations: 474.8 kB / 0.8776 GB, free: 154 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 5.856e-05/1.818, allocations: 301.1 kB / 0.8779 GB, free: 153.7 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004045/1.822, allocations: 3.013 MB / 0.8809 GB, free: 150.7 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004795/1.827, allocations: 4.902 MB / 0.8856 GB, free: 145 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/1.839, allocations: 8.603 MB / 0.894 GB, free: 135.7 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.841e-05/1.839, allocations: 19.94 kB / 0.8941 GB, free: 135.7 MB / 0.6388 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02234/1.861, allocations: 8.889 MB / 0.9027 GB, free: 126.8 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 0.001347/1.863, allocations: 1.899 MB / 0.9046 GB, free: 124 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.863, allocations: 60 kB / 0.9047 GB, free: 124 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/1.863, allocations: 88 kB / 0.9047 GB, free: 123.9 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/1.87, allocations: 1.365 MB / 0.9061 GB, free: 122.5 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001973/1.87, allocations: 123.6 kB / 0.9062 GB, free: 122.4 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/1.882, allocations: 0.6155 MB / 0.9068 GB, free: 121.8 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/1.884, allocations: 279.9 kB / 0.9071 GB, free: 121.5 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/1.884, allocations: 7.938 kB / 0.9071 GB, free: 121.5 MB / 0.6388 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02108/1.905, allocations: 8.298 MB / 0.9152 GB, free: 113.2 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000181/1.905, allocations: 56 kB / 0.9152 GB, free: 113.1 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001094/1.905, allocations: 92 kB / 0.9153 GB, free: 113.1 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00582/1.911, allocations: 1.361 MB / 0.9166 GB, free: 111.7 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000139/1.911, allocations: 132.2 kB / 0.9168 GB, free: 111.6 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007957/1.919, allocations: 0.6001 MB / 0.9173 GB, free: 111 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.921, allocations: 272 kB / 0.9176 GB, free: 110.7 MB / 0.6388 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.007652/1.928, allocations: 3.601 MB / 0.9211 GB, free: 107.1 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002982/1.931, allocations: 0.7218 MB / 0.9218 GB, free: 106.3 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/1.946, allocations: 7.123 MB / 0.9288 GB, free: 99.2 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/1.946, allocations: 40 kB / 0.9288 GB, free: 99.16 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/1.946, allocations: 0 / 0.9288 GB, free: 99.16 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008958/1.955, allocations: 5.842 MB / 0.9345 GB, free: 93.28 MB / 0.6388 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.0397/1.995, allocations: 16.56 MB / 0.9507 GB, free: 76.66 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/1.995, allocations: 0 / 0.9507 GB, free: 76.66 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004173/1.999, allocations: 0.9403 MB / 0.9516 GB, free: 75.72 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.426e-05/1.999, allocations: 16 kB / 0.9516 GB, free: 75.7 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007148/2, allocations: 119.9 kB / 0.9517 GB, free: 75.59 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.039e-05/2, allocations: 15.94 kB / 0.9518 GB, free: 75.57 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2, allocations: 4 kB / 0.9518 GB, free: 75.57 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/2.017, allocations: 10.58 MB / 0.9621 GB, free: 64.92 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007831/2.025, allocations: 1.675 MB / 0.9637 GB, free: 63.22 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002663/2.028, allocations: 96.17 kB / 0.9638 GB, free: 63.12 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00774/2.035, allocations: 0.6346 MB / 0.9644 GB, free: 62.5 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008478/2.036, allocations: 263 kB / 0.9647 GB, free: 62.24 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005521/2.037, allocations: 191.9 kB / 0.9649 GB, free: 62.05 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.008457/2.045, allocations: 5.202 MB / 0.97 GB, free: 56.88 MB / 0.6388 GB Notification: Performance of sort global known variables: time 2.6e-07/2.045, allocations: 0 / 0.97 GB, free: 56.88 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01568/2.061, allocations: 4.813 MB / 0.9747 GB, free: 52.08 MB / 0.6388 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.001942/2.063, allocations: 0.5782 MB / 0.9752 GB, free: 51.54 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.01472/2.078, allocations: 11.48 MB / 0.9864 GB, free: 40.04 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/2.078, allocations: 6.562 kB / 0.9864 GB, free: 40.03 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.003916/2.082, allocations: 3.196 MB / 0.9896 GB, free: 36.81 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0277/2.109, allocations: 4.474 MB / 0.9939 GB, free: 32.45 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/2.142, allocations: 23.46 MB / 1.017 GB, free: 8.941 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005777/2.148, allocations: 6.137 MB / 1.023 GB, free: 2.77 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.01342/2.161, allocations: 4.246 MB / 1.027 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002955/2.164, allocations: 0.6125 MB / 1.028 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of SimCode: time 1.002e-06/2.164, allocations: 0 / 1.028 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of Templates: time 0.6295/2.794, allocations: 157.7 MB / 1.182 GB, free: 138.8 MB / 0.6857 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)