Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001397, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001669/0.001669, allocations: 191 kB / 18 MB, free: 5.098 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.641/1.641, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.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.001184/0.001184, allocations: 47.94 kB / 327.9 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09833/0.09953, allocations: 46.63 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.2262/0.3258, allocations: 17.52 MB / 392 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009146/0.335, allocations: 5.985 MB / 398 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.3364, allocations: 25.56 kB / 398 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.3377, allocations: 327.1 kB / 398.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.3406, allocations: 1.027 MB / 399.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005317/0.3459, allocations: 1.643 MB / 401 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003917/0.3498, allocations: 1.933 MB / 402.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008864/0.3508, allocations: 483.6 kB / 403.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3522, allocations: 0.7176 MB / 404.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.3534, allocations: 0.737 MB / 404.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.3536, allocations: 69.06 kB / 404.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.3566, allocations: 1.11 MB / 406 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.357, allocations: 260 kB / 406.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000498/0.3575, allocations: 402.6 kB / 406.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003131/0.3606, allocations: 1.697 MB / 408.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.3607, allocations: 0 / 408.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3607, allocations: 0 / 408.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.3607, allocations: 0 / 408.4 MB, free: 9.629 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003164/0.3639, allocations: 1.199 MB / 409.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3639, allocations: 8.562 kB / 409.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003776/0.3643, allocations: 94.41 kB / 409.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009554/0.3653, allocations: 0.5829 MB / 410.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.3653, allocations: 41.92 kB / 410.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.3654, allocations: 51.48 kB / 410.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3667, allocations: 0.7361 MB / 411.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.3668, allocations: 0.625 kB / 411.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.3669, allocations: 22.56 kB / 411.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.207e-05/0.3669, allocations: 42.78 kB / 411.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.3682, allocations: 0.6943 MB / 411.9 MB, free: 7.266 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.004453/0.3727, allocations: 3.056 MB / 414.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008356/0.3735, allocations: 0.4913 MB / 415.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.3739, allocations: 263.2 kB / 415.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003083/0.3742, allocations: 339.7 kB / 416 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.3743, allocations: 42.34 kB / 416 MB, free: 3.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.805e-06/0.3743, allocations: 0 / 416 MB, free: 3.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.006036/0.3804, allocations: 2.311 MB / 418.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.3804, allocations: 82.98 kB / 418.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008534/0.3813, allocations: 0.6264 MB / 419.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.52e-05/0.3814, allocations: 43.2 kB / 419.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/0.3817, allocations: 336.8 kB / 419.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.3819, allocations: 213.7 kB / 419.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/0.3821, allocations: 139.1 kB / 419.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3823, allocations: 380.6 kB / 420.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.3828, allocations: 314.1 kB / 420.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/0.3835, allocations: 483.6 kB / 420.9 MB, free: 496 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3846, allocations: 0.7421 MB / 421.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3846, allocations: 0 / 421.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001587/0.3862, allocations: 0.9736 MB / 422.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3862, allocations: 8.625 kB / 422.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.3862, allocations: 4 kB / 422.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/0.3887, allocations: 416.3 kB / 423.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.3893, allocations: 151.7 kB / 423.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009488/0.3902, allocations: 0.8333 MB / 424 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006248/0.3909, allocations: 35.92 kB / 424.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.992e-05/0.3909, allocations: 32.73 kB / 424.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007349/0.3917, allocations: 477.9 kB / 424.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000583/0.3923, allocations: 474.1 kB / 425 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001003/0.3933, allocations: 0.7243 MB / 425.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.145e-06/0.3933, allocations: 0 / 425.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001581/0.3949, allocations: 0.9129 MB / 426.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3949, allocations: 4 kB / 426.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.3949, allocations: 8 kB / 426.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/0.3968, allocations: 269.1 kB / 426.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.3974, allocations: 166.4 kB / 427.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006293/0.3981, allocations: 0.711 MB / 427.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000579/0.3986, allocations: 35.97 kB / 427.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/0.3987, allocations: 28 kB / 427.9 MB, free: 9.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.399, allocations: 236.2 kB / 428.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.3992, allocations: 79.41 kB / 428.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.4008, allocations: 0.8644 MB / 429.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.4009, allocations: 4 kB / 429.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4009, allocations: 0 / 429.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4009, allocations: 3.984 kB / 429.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.404, allocations: 1.714 MB / 430.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.404, allocations: 1.125 kB / 430.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.4045, allocations: 108 kB / 430.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.406, allocations: 324.5 kB / 431.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.329e-05/0.4061, allocations: 27.92 kB / 431.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008276/0.4069, allocations: 0.81 MB / 432 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4069, allocations: 3.938 kB / 432 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.409, allocations: 1.296 MB / 433.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.4092, allocations: 152.6 kB / 433.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.4094, allocations: 15.75 kB / 433.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.4099, allocations: 27.97 kB / 433.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.4101, allocations: 48.5 kB / 433.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/0.4102, allocations: 35.91 kB / 433.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005977/0.4108, allocations: 443 kB / 434 MB, free: 3.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4108, allocations: 0 / 434 MB, free: 3.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001831/0.4126, allocations: 0.538 MB / 434.6 MB, free: 2.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001345/0.414, allocations: 450.6 kB / 435 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.4165, allocations: 1.199 MB / 436.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4165, allocations: 0 / 436.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007022/0.4172, allocations: 396.1 kB / 436.6 MB, free: 468 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.4191, allocations: 373.9 kB / 437 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.4219, allocations: 1.581 MB / 438.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.4225, allocations: 0.9713 MB / 439.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009797/0.4235, allocations: 290.1 kB / 439.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.4237, allocations: 63.42 kB / 439.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4237, allocations: 4 kB / 439.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of Templates: time 0.03524/0.459, allocations: 20.5 MB / 460.4 MB, free: 8.586 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)