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.001202/0.001201, allocations: 107 kB / 17.16 MB, free: 6.324 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.001081/0.001081, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.361/1.361, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 43.09 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09823, allocations: 49.44 MB / 350.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2109/0.3092, allocations: 32.27 MB / 382.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01977/0.329, allocations: 14.93 MB / 397.3 MB, free: 380 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3319, allocations: 56.72 kB / 397.3 MB, free: 352 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.3338, allocations: 0.5107 MB / 397.8 MB, free: 52 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006951/0.3407, allocations: 2.044 MB / 399.9 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.3522, allocations: 3.134 MB / 403 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008137/0.3603, allocations: 5.928 MB / 408.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/0.3623, allocations: 0.8706 MB / 409.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002786/0.3651, allocations: 1.279 MB / 411.1 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.3677, allocations: 1.518 MB / 412.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004671/0.3681, allocations: 80 kB / 412.7 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005812/0.374, allocations: 2.266 MB / 414.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.375, allocations: 0.4907 MB / 415.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001952/0.377, allocations: 0.7541 MB / 416.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005316/0.3823, allocations: 2.627 MB / 418.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.3823, allocations: 3.984 kB / 418.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3823, allocations: 0 / 418.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.31e-05/0.3824, allocations: 0 / 418.8 MB, free: 0.7734 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.006566/0.389, allocations: 2.107 MB / 420.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.3891, allocations: 8.031 kB / 420.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009177/0.39, allocations: 166.2 kB / 421.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001974/0.392, allocations: 0.9483 MB / 422 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.3921, allocations: 81.97 kB / 422.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002593/0.3924, allocations: 99.91 kB / 422.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003378/0.3958, allocations: 1.632 MB / 423.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/0.3958, allocations: 7.938 kB / 423.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.396, allocations: 39.98 kB / 423.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/0.3962, allocations: 105.9 kB / 424 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.3992, allocations: 1.647 MB / 425.7 MB, free: 9.754 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.01167/0.4109, allocations: 6.64 MB / 432.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.4126, allocations: 0.9326 MB / 433.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008832/0.4135, allocations: 0.5542 MB / 433.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004355/0.4179, allocations: 2.805 MB / 436.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.4179, allocations: 43.2 kB / 436.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.4179, allocations: 4 kB / 436.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.009146/0.4271, allocations: 3.712 MB / 440.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4273, allocations: 196.9 kB / 440.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00223/0.4295, allocations: 1.302 MB / 441.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.4297, allocations: 57.64 kB / 441.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000696/0.4304, allocations: 0.6472 MB / 442.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003722/0.4308, allocations: 331.4 kB / 442.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005669/0.4313, allocations: 283.3 kB / 443.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4315, allocations: 301.1 kB / 443.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.4327, allocations: 0.5864 MB / 444 MB, free: 6.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.4342, allocations: 1.004 MB / 445 MB, free: 5.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.4366, allocations: 1.481 MB / 446.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.4366, allocations: 4 kB / 446.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003738/0.4404, allocations: 1.904 MB / 448.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.4404, allocations: 8 kB / 448.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/0.4405, allocations: 12 kB / 448.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005067/0.4455, allocations: 0.7676 MB / 449.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.4467, allocations: 283.6 kB / 449.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.4491, allocations: 2.164 MB / 451.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.4506, allocations: 84.06 kB / 451.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/0.4508, allocations: 67.98 kB / 451.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001567/0.4524, allocations: 0.8473 MB / 452.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001386/0.4538, allocations: 0.9913 MB / 453.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002194/0.456, allocations: 1.464 MB / 455.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.385e-05/0.456, allocations: 4 kB / 455.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003562/0.4596, allocations: 1.83 MB / 456.9 MB, free: 8.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4596, allocations: 12 kB / 456.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.4597, allocations: 12 kB / 457 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004206/0.4639, allocations: 0.5842 MB / 457.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.4651, allocations: 295.5 kB / 457.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.4669, allocations: 2.021 MB / 459.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.4683, allocations: 88.06 kB / 459.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.4685, allocations: 71.92 kB / 460 MB, free: 5.637 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.0005369/0.4691, allocations: 284.3 kB / 460.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004078/0.4695, allocations: 142.3 kB / 460.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003234/0.4727, allocations: 1.536 MB / 462 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.4728, allocations: 8 kB / 462 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4728, allocations: 0 / 462 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.4728, allocations: 15.89 kB / 462 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005218/0.478, allocations: 2.803 MB / 464.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.478, allocations: 0 / 464.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/0.4788, allocations: 155.9 kB / 464.9 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/0.4821, allocations: 0.6034 MB / 465.5 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.4822, allocations: 27.94 kB / 465.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.4844, allocations: 2.106 MB / 467.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4844, allocations: 0 / 467.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003843/0.4883, allocations: 2.102 MB / 469.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006042/0.4889, allocations: 219.3 kB / 470 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004437/0.4893, allocations: 27.98 kB / 470 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.4905, allocations: 71.73 kB / 470.1 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.4908, allocations: 96.8 kB / 470.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.4909, allocations: 47.97 kB / 470.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001611/0.4925, allocations: 0.9006 MB / 471.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4925, allocations: 0 / 471.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003607/0.4961, allocations: 1.117 MB / 472.2 MB, free: 9.148 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.002704/0.4988, allocations: 0.8177 MB / 473.1 MB, free: 8.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004967/0.5038, allocations: 2.268 MB / 475.3 MB, free: 6.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.5039, allocations: 4.688 kB / 475.3 MB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.5053, allocations: 0.6887 MB / 476 MB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003384/0.5087, allocations: 0.5927 MB / 476.6 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.5144, allocations: 3.248 MB / 479.9 MB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.5154, allocations: 1.244 MB / 481.1 MB, free: 232 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.5159, allocations: 131.4 kB / 481.2 MB, free: 100 kB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5159, allocations: 0 / 481.2 MB, free: 100 kB / 382.1 MB Notification: Performance of Templates: time 0.06634/0.5823, allocations: 45.03 MB / 0.5139 GB, free: 3.176 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)