Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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) 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001013/0.001013, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.298/1.298, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009412/0.0009412, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2083, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03551/0.2438, allocations: 36.78 MB / 438.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.2627, allocations: 15.12 MB / 453.3 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.2639, allocations: 47.69 kB / 453.4 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.2655, allocations: 0.6909 MB / 454.1 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00518/0.2707, allocations: 2.554 MB / 456.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00752/0.2783, allocations: 3.764 MB / 460.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004833/0.2831, allocations: 4.717 MB / 465.1 MB, free: 9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.2848, allocations: 1.283 MB / 466.4 MB, free: 7.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.2874, allocations: 1.76 MB / 468.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002525/0.29, allocations: 1.795 MB / 469.9 MB, free: 4.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004125/0.2904, allocations: 176 kB / 470.1 MB, free: 3.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004176/0.2946, allocations: 2.441 MB / 472.5 MB, free: 1.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007923/0.2954, allocations: 0.6505 MB / 473.2 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001319/0.2967, allocations: 0.9879 MB / 474.2 MB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005166/0.3019, allocations: 4.075 MB / 478.3 MB, free: 11.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3019, allocations: 8 kB / 478.3 MB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3019, allocations: 0 / 478.3 MB, free: 11.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-05/0.302, allocations: 0 / 478.3 MB, free: 11.77 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005132/0.3071, allocations: 2.411 MB / 480.7 MB, free: 9.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3072, allocations: 8.031 kB / 480.7 MB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006247/0.3078, allocations: 201.8 kB / 480.9 MB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.3097, allocations: 1.152 MB / 482 MB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.522e-05/0.3098, allocations: 102.2 kB / 482.1 MB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.31, allocations: 116 kB / 482.2 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/0.313, allocations: 1.955 MB / 484.2 MB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.322e-05/0.3131, allocations: 11.94 kB / 484.2 MB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.3133, allocations: 51.97 kB / 484.3 MB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001512/0.3134, allocations: 114.3 kB / 484.4 MB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003147/0.3166, allocations: 1.992 MB / 486.4 MB, free: 3.441 MB / 398.1 MB 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.01089/0.3275, allocations: 7.871 MB / 494.2 MB, free: 11.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3293, allocations: 1.176 MB / 495.4 MB, free: 9.914 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.3305, allocations: 0.7462 MB / 496.2 MB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004664/0.3352, allocations: 3.416 MB / 499.6 MB, free: 5.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.3352, allocations: 51.56 kB / 499.6 MB, free: 5.426 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 2.965e-06/0.3352, allocations: 0 / 499.6 MB, free: 5.426 MB / 414.1 MB Notification: Performance of matching and sorting (n=134): time 0.01235/0.3476, allocations: 5.394 MB / 0.4932 GB, free: 15.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.3477, allocations: 167.5 kB / 0.4933 GB, free: 15.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.3494, allocations: 1.423 MB / 0.4947 GB, free: 14.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.3495, allocations: 61.7 kB / 0.4948 GB, free: 14.21 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000541/0.3501, allocations: 0.7073 MB / 0.4955 GB, free: 13.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003799/0.3505, allocations: 481.2 kB / 0.4959 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005437/0.351, allocations: 347.2 kB / 0.4963 GB, free: 12.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.759e-05/0.3511, allocations: 313.1 kB / 0.4966 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.3525, allocations: 0.7855 MB / 0.4973 GB, free: 11.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.3541, allocations: 1.199 MB / 0.4985 GB, free: 10.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.3568, allocations: 1.884 MB / 0.5004 GB, free: 8.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.3569, allocations: 4 kB / 0.5004 GB, free: 8.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004103/0.361, allocations: 2.451 MB / 0.5028 GB, free: 5.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.361, allocations: 12 kB / 0.5028 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.361, allocations: 20.11 kB / 0.5028 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006968/0.368, allocations: 1.096 MB / 0.5039 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3693, allocations: 347.5 kB / 0.5042 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.372, allocations: 2.908 MB / 0.507 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3732, allocations: 83.94 kB / 0.5071 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.3734, allocations: 75.98 kB / 0.5072 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001693/0.3751, allocations: 1.078 MB / 0.5082 GB, free: 15.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001572/0.3766, allocations: 1.193 MB / 0.5094 GB, free: 14.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002631/0.3793, allocations: 1.837 MB / 0.5112 GB, free: 12.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.775e-06/0.3793, allocations: 4 kB / 0.5112 GB, free: 12.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003865/0.3832, allocations: 2.303 MB / 0.5134 GB, free: 10.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3832, allocations: 11.94 kB / 0.5135 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.3832, allocations: 20 kB / 0.5135 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005829/0.3891, allocations: 0.7994 MB / 0.5142 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.3904, allocations: 375.4 kB / 0.5146 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.3925, allocations: 2.65 MB / 0.5172 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3937, allocations: 95.92 kB / 0.5173 GB, free: 6.188 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.3939, allocations: 79.92 kB / 0.5174 GB, free: 6.109 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003581/0.3943, allocations: 301.6 kB / 0.5177 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003073/0.3946, allocations: 166 kB / 0.5178 GB, free: 5.645 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004487/0.3991, allocations: 2.354 MB / 0.5201 GB, free: 3.301 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.3991, allocations: 11.91 kB / 0.5201 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3991, allocations: 0 / 0.5201 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.3994, allocations: 250.8 kB / 0.5204 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000261/0.3997, allocations: 43.78 kB / 0.5204 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009702/0.4007, allocations: 67.94 kB / 0.5205 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.4009, allocations: 133.8 kB / 0.5206 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00488/0.4058, allocations: 2.203 MB / 0.5227 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004229/0.4101, allocations: 2.775 MB / 0.5255 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001191/0.4113, allocations: 0.8042 MB / 0.5262 GB, free: 12.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.4125, allocations: 0.9825 MB / 0.5272 GB, free: 11.99 MB / 462.1 MB Notification: Performance of Backend: time 4.01e-07/0.4125, allocations: 4 kB / 0.5272 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007095/0.4196, allocations: 3.322 MB / 0.5304 GB, free: 8.668 MB / 462.1 MB Notification: Performance of SimCode: time 0.006151/0.4258, allocations: 4.25 MB / 0.5346 GB, free: 4.387 MB / 462.1 MB Notification: Performance of Templates: time 0.2255/0.6513, allocations: 54.6 MB / 0.5879 GB, free: 96.3 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)