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.001448/0.001448, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001854/0.001854, allocations: 188.3 kB / 16.25 MB, free: 6.59 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.398/1.398, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001232/0.001232, allocations: 52.27 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.198, allocations: 46.62 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03005/0.2281, allocations: 32.22 MB / 357.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.2467, allocations: 14.51 MB / 371.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002235/0.2491, allocations: 59.5 kB / 371.6 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.2507, allocations: 0.5129 MB / 372.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005314/0.2561, allocations: 2.027 MB / 374.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008845/0.2649, allocations: 3.376 MB / 377.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00508/0.27, allocations: 3.984 MB / 381.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.2716, allocations: 1.002 MB / 382.5 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002653/0.2742, allocations: 1.499 MB / 384 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.2763, allocations: 1.581 MB / 385.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002629/0.2765, allocations: 144 kB / 385.8 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005136/0.2817, allocations: 2.313 MB / 388.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006531/0.2823, allocations: 0.5532 MB / 388.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009566/0.2833, allocations: 0.8166 MB / 389.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005854/0.2892, allocations: 3.581 MB / 393 MB, free: 15.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2892, allocations: 0 / 393 MB, free: 15.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2892, allocations: 0 / 393 MB, free: 15.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.506e-05/0.2893, allocations: 0 / 393 MB, free: 15.73 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.004254/0.2935, allocations: 2.107 MB / 395.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.2936, allocations: 8.031 kB / 395.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000543/0.2941, allocations: 166.2 kB / 395.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.2955, allocations: 0.9598 MB / 396.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.971e-05/0.2956, allocations: 77.98 kB / 396.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.2957, allocations: 99.97 kB / 396.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.2982, allocations: 1.636 MB / 398.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.2982, allocations: 7.938 kB / 398.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.2984, allocations: 39.98 kB / 398.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.2985, allocations: 105.9 kB / 398.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002506/0.301, allocations: 1.643 MB / 399.9 MB, free: 8.707 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.009576/0.3106, allocations: 6.652 MB / 406.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.3122, allocations: 0.9386 MB / 407.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008031/0.313, allocations: 0.5504 MB / 408 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003576/0.3166, allocations: 2.801 MB / 410.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3166, allocations: 47.16 kB / 410.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.294e-06/0.3167, allocations: 0 / 410.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008194/0.3249, allocations: 3.703 MB / 414.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.325, allocations: 196.9 kB / 414.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.3267, allocations: 1.31 MB / 416.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.3268, allocations: 49.7 kB / 416.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004683/0.3273, allocations: 0.6433 MB / 416.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.3275, allocations: 323.4 kB / 417.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004192/0.328, allocations: 287.3 kB / 417.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3281, allocations: 309.1 kB / 417.6 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008971/0.329, allocations: 0.5864 MB / 418.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.3303, allocations: 1.004 MB / 419.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.3323, allocations: 1.481 MB / 420.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3323, allocations: 0 / 420.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003027/0.3354, allocations: 1.908 MB / 422.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.3354, allocations: 12 kB / 422.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.3354, allocations: 12.06 kB / 422.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004649/0.3401, allocations: 0.7674 MB / 423.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.3412, allocations: 287.5 kB / 423.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.3432, allocations: 2.164 MB / 425.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.3445, allocations: 91.92 kB / 426 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3446, allocations: 67.92 kB / 426 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001368/0.346, allocations: 0.8473 MB / 426.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001133/0.3471, allocations: 0.9914 MB / 427.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001758/0.3489, allocations: 1.46 MB / 429.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.382e-06/0.3489, allocations: 4 kB / 429.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.002935/0.3519, allocations: 1.822 MB / 431.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3519, allocations: 12 kB / 431.2 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.3519, allocations: 15.94 kB / 431.2 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00387/0.3558, allocations: 0.5881 MB / 431.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3568, allocations: 295.5 kB / 432 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.3584, allocations: 2.028 MB / 434.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.3595, allocations: 91.88 kB / 434.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.3597, allocations: 63.98 kB / 434.2 MB, free: 4.559 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.000369/0.36, allocations: 275.9 kB / 434.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/0.3603, allocations: 150.2 kB / 434.6 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/0.3631, allocations: 1.522 MB / 436.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.3632, allocations: 19.92 kB / 436.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3632, allocations: 0 / 436.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.3632, allocations: 3.984 kB / 436.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.3673, allocations: 2.799 MB / 439 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3673, allocations: 0 / 439 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006577/0.3679, allocations: 155.8 kB / 439.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002628/0.3706, allocations: 0.5801 MB / 439.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.3707, allocations: 23.98 kB / 439.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.3723, allocations: 2.11 MB / 441.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3723, allocations: 11.94 kB / 441.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003112/0.3754, allocations: 2.098 MB / 444 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003402/0.3758, allocations: 219.3 kB / 444.2 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/0.3761, allocations: 31.92 kB / 444.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008197/0.3769, allocations: 67.8 kB / 444.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.3771, allocations: 92.88 kB / 444.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.3772, allocations: 43.97 kB / 444.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00137/0.3786, allocations: 0.9044 MB / 445.3 MB, free: 9.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3786, allocations: 0 / 445.3 MB, free: 9.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003284/0.3819, allocations: 1.109 MB / 446.4 MB, free: 8.102 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.00172/0.3836, allocations: 0.8294 MB / 447.3 MB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005136/0.3888, allocations: 2.58 MB / 449.8 MB, free: 4.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.3888, allocations: 7.859 kB / 449.8 MB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.39, allocations: 0.6781 MB / 450.5 MB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.3929, allocations: 0.6365 MB / 451.2 MB, free: 3.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.3977, allocations: 3.185 MB / 454.3 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.135/0.5327, allocations: 1.254 MB / 455.6 MB, free: 115.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002583/0.5353, allocations: 0.5715 MB / 456.2 MB, free: 115.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.5358, allocations: 113.2 kB / 456.3 MB, free: 115.1 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5358, allocations: 0 / 456.3 MB, free: 115.1 MB / 382.1 MB Notification: Performance of Templates: time 0.04949/0.5853, allocations: 39.58 MB / 495.9 MB, free: 84.25 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)