Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001308, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 8.859 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.77 kB / 306.9 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 50.53 MB / 357.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2154/0.3195, allocations: 32.47 MB / 389.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02206/0.3416, allocations: 14.95 MB / 404.9 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.3443, allocations: 62.09 kB / 404.9 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.3463, allocations: 0.5003 MB / 405.4 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006221/0.3526, allocations: 2.055 MB / 407.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01036/0.3629, allocations: 3.108 MB / 410.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007447/0.3704, allocations: 5.947 MB / 416.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.3722, allocations: 0.8721 MB / 417.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002946/0.3752, allocations: 1.28 MB / 418.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002655/0.3779, allocations: 1.526 MB / 420.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002787/0.3782, allocations: 76 kB / 420.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005518/0.3837, allocations: 2.297 MB / 422.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.3844, allocations: 494.5 kB / 423.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3856, allocations: 0.758 MB / 423.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004576/0.3902, allocations: 2.631 MB / 426.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3902, allocations: 0 / 426.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3902, allocations: 0 / 426.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.3903, allocations: 0 / 426.5 MB, free: 6.906 MB / 334.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.00519/0.3955, allocations: 2.107 MB / 428.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3955, allocations: 8.031 kB / 428.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005945/0.3961, allocations: 170.2 kB / 428.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.3977, allocations: 0.9482 MB / 429.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.16e-05/0.3977, allocations: 85.67 kB / 429.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.3979, allocations: 103.9 kB / 429.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.4005, allocations: 1.632 MB / 431.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.4005, allocations: 3.938 kB / 431.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.4006, allocations: 43.98 kB / 431.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/0.4008, allocations: 101.9 kB / 431.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002538/0.4033, allocations: 1.651 MB / 433.3 MB, free: 15.88 MB / 350.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.009825/0.4132, allocations: 6.641 MB / 439.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.4147, allocations: 0.9301 MB / 440.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000833/0.4156, allocations: 0.5582 MB / 441.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003911/0.4195, allocations: 2.805 MB / 444.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.4195, allocations: 39.22 kB / 444.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.545e-06/0.4196, allocations: 0 / 444.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008526/0.4281, allocations: 3.707 MB / 448 MB, free: 448 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4282, allocations: 196.9 kB / 448.2 MB, free: 204 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002185/0.4304, allocations: 1.306 MB / 449.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.615e-05/0.4305, allocations: 49.7 kB / 449.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005966/0.4311, allocations: 0.6433 MB / 450.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/0.4314, allocations: 331.4 kB / 450.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004902/0.4319, allocations: 283.3 kB / 450.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4321, allocations: 305.1 kB / 451.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009994/0.4331, allocations: 0.5942 MB / 451.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.4345, allocations: 1.001 MB / 452.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.4368, allocations: 1.489 MB / 454.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.4368, allocations: 4 kB / 454.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003553/0.4404, allocations: 1.897 MB / 456 MB, free: 7.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.4404, allocations: 12 kB / 456.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.4405, allocations: 20.11 kB / 456.1 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004918/0.4454, allocations: 0.7632 MB / 456.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.4465, allocations: 279.6 kB / 457.1 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.4488, allocations: 2.164 MB / 459.3 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.4503, allocations: 87.97 kB / 459.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.4505, allocations: 67.98 kB / 459.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001568/0.452, allocations: 0.8481 MB / 460.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001351/0.4534, allocations: 0.9937 MB / 461.3 MB, free: 2.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002172/0.4556, allocations: 1.468 MB / 462.7 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.562e-05/0.4556, allocations: 4 kB / 462.7 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003527/0.4592, allocations: 1.822 MB / 464.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.4592, allocations: 16.16 kB / 464.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.4592, allocations: 15.98 kB / 464.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004231/0.4635, allocations: 0.5838 MB / 465.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.4646, allocations: 295.5 kB / 465.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/0.4666, allocations: 2.02 MB / 467.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.4681, allocations: 87.94 kB / 467.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/0.4682, allocations: 69.39 kB / 467.6 MB, free: 11.77 MB / 382.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.0005367/0.4688, allocations: 281.1 kB / 467.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000432/0.4692, allocations: 146.2 kB / 468.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.4726, allocations: 1.519 MB / 469.6 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.4726, allocations: 8 kB / 469.6 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4726, allocations: 96 / 469.6 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.4726, allocations: 19.84 kB / 469.6 MB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005275/0.4779, allocations: 2.807 MB / 472.4 MB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.4779, allocations: 3.984 kB / 472.4 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007076/0.4787, allocations: 152 kB / 472.6 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003019/0.4817, allocations: 0.6113 MB / 473.2 MB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.349e-05/0.4818, allocations: 27.98 kB / 473.2 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.4838, allocations: 2.102 MB / 475.3 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4838, allocations: 192 / 475.3 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003527/0.4874, allocations: 2.098 MB / 477.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005471/0.4879, allocations: 215.3 kB / 477.6 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003373/0.4883, allocations: 31.98 kB / 477.6 MB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.4893, allocations: 71.73 kB / 477.7 MB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.4895, allocations: 96.86 kB / 477.8 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.4896, allocations: 39.92 kB / 477.9 MB, free: 1.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001589/0.4912, allocations: 0.9044 MB / 478.8 MB, free: 420 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4912, allocations: 0 / 478.8 MB, free: 420 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003681/0.4949, allocations: 1.121 MB / 479.9 MB, free: 15.29 MB / 398.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.002643/0.4976, allocations: 0.8332 MB / 480.7 MB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005089/0.5027, allocations: 2.26 MB / 483 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.5027, allocations: 3.859 kB / 483 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.5042, allocations: 0.6857 MB / 483.7 MB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/0.5072, allocations: 0.6032 MB / 484.3 MB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.5127, allocations: 3.253 MB / 487.5 MB, free: 7.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009983/0.5137, allocations: 1.252 MB / 488.8 MB, free: 6.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/0.5142, allocations: 127.4 kB / 488.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5142, allocations: 0 / 488.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of Templates: time 0.06636/0.5805, allocations: 45.3 MB / 0.5217 GB, free: 9.008 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)