Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008984, allocations: 96.78 kB / 15.36 MB, free: 0.7344 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.006758/0.006758, allocations: 171 kB / 16.27 MB, free: 6.652 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.614/1.614, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0004627/0.0004627, allocations: 11.98 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2464, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02112/0.2676, allocations: 21.92 MB / 349 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.2824, allocations: 10.26 MB / 359.2 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.284, allocations: 35.69 kB / 359.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2853, allocations: 338.1 kB / 359.6 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004007/0.2893, allocations: 1.334 MB / 360.9 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007405/0.2967, allocations: 2.217 MB / 363.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004511/0.3013, allocations: 3.805 MB / 366.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.3026, allocations: 0.5692 MB / 367.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.3048, allocations: 0.8366 MB / 368.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.3065, allocations: 0.9732 MB / 369.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002465/0.3068, allocations: 44 kB / 369.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003809/0.3106, allocations: 1.673 MB / 371 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000483/0.3111, allocations: 315 kB / 371.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008469/0.3119, allocations: 0.511 MB / 371.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004019/0.316, allocations: 2.388 MB / 374.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.316, allocations: 0 / 374.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.316, allocations: 0 / 374.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.174e-05/0.316, allocations: 0 / 374.2 MB, free: 4.004 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003048/0.3191, allocations: 1.309 MB / 375.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3191, allocations: 8.031 kB / 375.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/0.3196, allocations: 114.8 kB / 375.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3208, allocations: 0.6824 MB / 376.4 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.356e-05/0.3208, allocations: 61.22 kB / 376.4 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.321, allocations: 59.98 kB / 376.5 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.3225, allocations: 1.06 MB / 377.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.3226, allocations: 3.984 kB / 377.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.392e-05/0.3227, allocations: 27.98 kB / 377.6 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.487e-05/0.3228, allocations: 69.27 kB / 377.6 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.3243, allocations: 1.036 MB / 378.7 MB, free: 15.42 MB / 318.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.005947/0.3303, allocations: 4.449 MB / 383.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009069/0.3312, allocations: 0.567 MB / 383.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.3317, allocations: 322 kB / 384 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002263/0.3339, allocations: 1.977 MB / 386 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.334, allocations: 46.83 kB / 386 MB, free: 7.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.024e-06/0.334, allocations: 0 / 386 MB, free: 7.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004161/0.3382, allocations: 1.961 MB / 388 MB, free: 5.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.3383, allocations: 162.2 kB / 388.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.3394, allocations: 0.9312 MB / 389.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-05/0.3395, allocations: 37.7 kB / 389.1 MB, free: 4.316 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/0.3399, allocations: 490.8 kB / 389.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.34, allocations: 165.7 kB / 389.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3402, allocations: 77.67 kB / 389.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3403, allocations: 334 kB / 390.2 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005289/0.3408, allocations: 329.7 kB / 390.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008274/0.3417, allocations: 0.629 MB / 391.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.3428, allocations: 0.8851 MB / 392 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3428, allocations: 0 / 392 MB, free: 1.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001757/0.3446, allocations: 1.125 MB / 393.1 MB, free: 24 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.3448, allocations: 356.8 kB / 393.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3449, allocations: 8 kB / 393.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002566/0.3474, allocations: 401.2 kB / 393.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006761/0.3481, allocations: 183.7 kB / 394 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.3493, allocations: 1.343 MB / 395.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007734/0.3501, allocations: 55.91 kB / 395.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.957e-05/0.3502, allocations: 52.11 kB / 395.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.3502, allocations: 4 kB / 395.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001534/0.3518, allocations: 0.9717 MB / 396.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3518, allocations: 12 kB / 396.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/0.3541, allocations: 349.4 kB / 396.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/0.3547, allocations: 179.7 kB / 397 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.3557, allocations: 1.319 MB / 398.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006713/0.3564, allocations: 56.05 kB / 398.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/0.3564, allocations: 43.98 kB / 398.4 MB, free: 10.48 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004868/0.3569, allocations: 368.7 kB / 398.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3571, allocations: 94.88 kB / 398.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.3587, allocations: 0.7934 MB / 399.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3587, allocations: 8 kB / 399.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.3587, allocations: 0 / 399.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3587, allocations: 7.984 kB / 399.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.3611, allocations: 1.595 MB / 401.3 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3611, allocations: 4.062 kB / 401.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.3615, allocations: 75.91 kB / 401.3 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.3629, allocations: 301.6 kB / 401.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.3629, allocations: 12 kB / 401.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009148/0.3639, allocations: 1.304 MB / 403 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3639, allocations: 0 / 403 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.3654, allocations: 1.083 MB / 404 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.3656, allocations: 200 kB / 404.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.3657, allocations: 19.94 kB / 404.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005548/0.3663, allocations: 35.97 kB / 404.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3664, allocations: 44.38 kB / 404.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.3665, allocations: 19.98 kB / 404.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008223/0.3673, allocations: 0.6559 MB / 405 MB, free: 3.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3673, allocations: 0 / 405 MB, free: 3.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001889/0.3692, allocations: 0.7457 MB / 405.8 MB, free: 2.914 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001445/0.3707, allocations: 0.6184 MB / 406.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.3734, allocations: 1.274 MB / 407.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.3734, allocations: 0 / 407.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006062/0.374, allocations: 314.2 kB / 408 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.3764, allocations: 391.8 kB / 408.3 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.3795, allocations: 2.09 MB / 410.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.3801, allocations: 1.033 MB / 411.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001172/0.3813, allocations: 376 kB / 411.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.3815, allocations: 75.42 kB / 411.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3815, allocations: 0 / 411.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Templates: time 0.03894/0.4204, allocations: 23.81 MB / 435.7 MB, free: 4.832 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)