Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0018/0.001801, allocations: 108 kB / 15.6 MB, free: 132 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.00229/0.00229, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2581, allocations: 46.63 MB / 325.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03202/0.2902, allocations: 30.99 MB / 356.3 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.3094, allocations: 14.28 MB / 370.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.3112, allocations: 39.75 kB / 370.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.313, allocations: 0.5783 MB / 371.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005184/0.3182, allocations: 2.173 MB / 373.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008161/0.3264, allocations: 3.678 MB / 377.1 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004652/0.3311, allocations: 3.96 MB / 381 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001933/0.333, allocations: 1.01 MB / 382 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.3358, allocations: 1.464 MB / 383.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.3382, allocations: 1.518 MB / 385 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006159/0.3388, allocations: 144 kB / 385.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005778/0.3446, allocations: 2.309 MB / 387.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008836/0.3455, allocations: 0.5531 MB / 388 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001766/0.3473, allocations: 0.8205 MB / 388.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.3532, allocations: 3.573 MB / 392.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3532, allocations: 0 / 392.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3532, allocations: 0 / 392.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.288e-05/0.3533, allocations: 0 / 392.4 MB, free: 0.6484 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004422/0.3577, allocations: 2.103 MB / 394.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3578, allocations: 8.031 kB / 394.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005847/0.3584, allocations: 170.1 kB / 394.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.3598, allocations: 0.956 MB / 395.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.41e-05/0.3599, allocations: 81.97 kB / 395.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.3601, allocations: 104 kB / 395.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002464/0.3625, allocations: 1.625 MB / 397.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.3626, allocations: 0 / 397.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.3627, allocations: 43.98 kB / 397.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.3629, allocations: 101.9 kB / 397.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.3654, allocations: 1.655 MB / 399.2 MB, free: 9.629 MB / 334.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.009257/0.3747, allocations: 6.66 MB / 405.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.3762, allocations: 0.9343 MB / 406.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.377, allocations: 0.5547 MB / 407.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003565/0.3806, allocations: 2.805 MB / 410.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.3806, allocations: 47.16 kB / 410.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.775e-06/0.3807, allocations: 0 / 410.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008446/0.3891, allocations: 3.7 MB / 413.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3892, allocations: 200.8 kB / 414.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.3909, allocations: 1.31 MB / 415.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.033e-05/0.391, allocations: 53.7 kB / 415.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005053/0.3915, allocations: 0.6471 MB / 416.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.3918, allocations: 323.5 kB / 416.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004516/0.3922, allocations: 283.3 kB / 416.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3923, allocations: 305.1 kB / 417 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009553/0.3933, allocations: 0.5903 MB / 417.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.3946, allocations: 0.9967 MB / 418.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.3966, allocations: 1.492 MB / 420.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.3966, allocations: 0 / 420.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003154/0.3998, allocations: 1.904 MB / 422 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.3998, allocations: 12 kB / 422 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3998, allocations: 12 kB / 422 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004665/0.4045, allocations: 0.76 MB / 422.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.4056, allocations: 287.5 kB / 423.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.4075, allocations: 2.16 MB / 425.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.4086, allocations: 76.02 kB / 425.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.4088, allocations: 67.98 kB / 425.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001385/0.4102, allocations: 0.8434 MB / 426.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001234/0.4114, allocations: 0.9913 MB / 427.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001989/0.4134, allocations: 1.464 MB / 428.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.634e-06/0.4134, allocations: 4 kB / 428.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.00302/0.4164, allocations: 1.826 MB / 430.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.4165, allocations: 12 kB / 430.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4165, allocations: 16.08 kB / 430.5 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003982/0.4205, allocations: 0.5958 MB / 431.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.4215, allocations: 295.5 kB / 431.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.4232, allocations: 2.016 MB / 433.4 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.4243, allocations: 71.95 kB / 433.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4244, allocations: 67.98 kB / 433.6 MB, free: 5.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003727/0.4248, allocations: 280 kB / 433.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.4251, allocations: 150.1 kB / 434 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003/0.4281, allocations: 1.518 MB / 435.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4281, allocations: 15.94 kB / 435.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4281, allocations: 0 / 435.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.4281, allocations: 7.969 kB / 435.5 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004429/0.4326, allocations: 2.803 MB / 438.3 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4326, allocations: 4 kB / 438.3 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006633/0.4333, allocations: 151.7 kB / 438.5 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002771/0.436, allocations: 0.5841 MB / 439.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-05/0.4361, allocations: 20 kB / 439.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/0.4379, allocations: 2.114 MB / 441.2 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.4379, allocations: 11.97 kB / 441.2 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.4411, allocations: 2.102 MB / 443.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.4414, allocations: 219.2 kB / 443.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4417, allocations: 27.94 kB / 443.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007962/0.4425, allocations: 47.95 kB / 443.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.4427, allocations: 92.88 kB / 443.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4428, allocations: 43.97 kB / 443.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.4441, allocations: 0.9044 MB / 444.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4441, allocations: 0 / 444.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002652/0.4467, allocations: 1.113 MB / 445.8 MB, free: 9.047 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001985/0.4487, allocations: 0.8254 MB / 446.6 MB, free: 8.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005247/0.454, allocations: 2.58 MB / 449.2 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/0.454, allocations: 11.8 kB / 449.2 MB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.4553, allocations: 0.6938 MB / 449.9 MB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.4583, allocations: 0.6287 MB / 450.5 MB, free: 4.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.4637, allocations: 2.725 MB / 453.2 MB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00126/0.465, allocations: 1.26 MB / 454.5 MB, free: 256 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.1537/0.6187, allocations: 0.5732 MB / 455.1 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000455/0.6192, allocations: 113.4 kB / 455.2 MB, free: 114.8 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.6192, allocations: 0 / 455.2 MB, free: 114.8 MB / 382.1 MB Notification: Performance of Templates: time 0.04988/0.6691, allocations: 39.89 MB / 495.1 MB, free: 84.54 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)