Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_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.0007557/0.0007557, allocations: 92.39 kB / 17.31 MB, free: 6.535 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.001187/0.001187, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.296/1.296, allocations: 223.3 MB / 242.3 MB, free: 240 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.000257, allocations: 15.94 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09381/0.09408, allocations: 50.42 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2022/0.2963, allocations: 31.49 MB / 384 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01712/0.3135, allocations: 14.71 MB / 398.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001765/0.3153, allocations: 54.22 kB / 398.7 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001385/0.3167, allocations: 0.5035 MB / 399.3 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005238/0.322, allocations: 2.044 MB / 401.3 MB, free: 304 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008808/0.3308, allocations: 3.123 MB / 404.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006601/0.3374, allocations: 5.943 MB / 410.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.3388, allocations: 0.8635 MB / 411.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.3412, allocations: 1.266 MB / 412.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002172/0.3434, allocations: 1.507 MB / 414 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.3436, allocations: 76 kB / 414.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004513/0.3481, allocations: 2.262 MB / 416.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005962/0.3487, allocations: 494.5 kB / 416.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009286/0.3497, allocations: 0.7714 MB / 417.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00352/0.3532, allocations: 2.603 MB / 420.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3532, allocations: 0 / 420.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3532, allocations: 0 / 420.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.3533, allocations: 0 / 420.2 MB, free: 2.027 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.003698/0.357, allocations: 1.815 MB / 422 MB, free: 164 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.357, allocations: 11.97 kB / 422 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005218/0.3575, allocations: 170.4 kB / 422.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.3589, allocations: 0.9405 MB / 423.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.639e-05/0.359, allocations: 89.95 kB / 423.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.3592, allocations: 107.8 kB / 423.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003158/0.3624, allocations: 1.628 MB / 424.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.782e-05/0.3624, allocations: 7.938 kB / 425 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.3627, allocations: 47.95 kB / 425 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.3628, allocations: 105.9 kB / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.3654, allocations: 1.643 MB / 426.7 MB, free: 11.29 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.009542/0.3749, allocations: 6.66 MB / 433.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.3764, allocations: 0.9291 MB / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008166/0.3772, allocations: 0.5569 MB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003772/0.381, allocations: 2.828 MB / 437.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.3811, allocations: 43.22 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.815e-06/0.3811, allocations: 0 / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.009216/0.3903, allocations: 3.735 MB / 441.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/0.3905, allocations: 192.9 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/0.3926, allocations: 1.298 MB / 443 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/0.3928, allocations: 49.7 kB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005954/0.3934, allocations: 0.6471 MB / 443.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.3938, allocations: 335.4 kB / 444 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/0.3941, allocations: 113.7 kB / 444.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3942, allocations: 305.1 kB / 444.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.3954, allocations: 0.5778 MB / 445 MB, free: 8.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.3968, allocations: 1.004 MB / 446 MB, free: 7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.3991, allocations: 1.485 MB / 447.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.3991, allocations: 4 kB / 447.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.00349/0.4026, allocations: 1.896 MB / 449.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.403, allocations: 442.4 kB / 449.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.403, allocations: 15.94 kB / 449.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005255/0.4083, allocations: 0.7945 MB / 450.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.4095, allocations: 283.5 kB / 450.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002069/0.4115, allocations: 2.168 MB / 453.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.413, allocations: 96 kB / 453.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/0.4132, allocations: 67.98 kB / 453.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.4132, allocations: 4 kB / 453.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002908/0.4161, allocations: 1.662 MB / 454.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.4161, allocations: 12 kB / 454.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004404/0.4205, allocations: 0.6234 MB / 455.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.4217, allocations: 295.5 kB / 455.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.4235, allocations: 2.024 MB / 457.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.4248, allocations: 87.95 kB / 457.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.425, allocations: 67.98 kB / 458 MB, free: 10.47 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.0008221/0.4258, allocations: 477 kB / 458.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.4261, allocations: 142.2 kB / 458.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.4293, allocations: 1.529 MB / 460.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4293, allocations: 8 kB / 460.1 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.4293, allocations: 4 kB / 460.1 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4293, allocations: 11.86 kB / 460.2 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.434, allocations: 2.815 MB / 463 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.4341, allocations: 3.938 kB / 463 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006731/0.4347, allocations: 155.8 kB / 463.1 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003029/0.4378, allocations: 0.6387 MB / 463.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.4379, allocations: 27.98 kB / 463.8 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.4397, allocations: 2.102 MB / 465.9 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4397, allocations: 7.969 kB / 465.9 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003376/0.4431, allocations: 2.101 MB / 468 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005349/0.4437, allocations: 251.3 kB / 468.3 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/0.444, allocations: 24 kB / 468.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.4449, allocations: 79.88 kB / 468.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.4452, allocations: 92.81 kB / 468.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4453, allocations: 43.97 kB / 468.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.4466, allocations: 0.9006 MB / 469.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4466, allocations: 0 / 469.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002995/0.4496, allocations: 1.117 MB / 470.5 MB, free: 13.71 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.002181/0.4518, allocations: 0.8192 MB / 471.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.4563, allocations: 2.234 MB / 473.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.4563, allocations: 8.188 kB / 473.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.4577, allocations: 0.6846 MB / 474.2 MB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/0.4612, allocations: 0.5944 MB / 474.8 MB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/0.4661, allocations: 3.371 MB / 478.2 MB, free: 5.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008366/0.4669, allocations: 1.252 MB / 479.5 MB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004614/0.4674, allocations: 127.4 kB / 479.6 MB, free: 4.559 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4674, allocations: 0 / 479.6 MB, free: 4.559 MB / 382.1 MB Notification: Performance of Templates: time 0.05565/0.5231, allocations: 44.85 MB / 0.5121 GB, free: 7.82 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)