Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.007684/0.007684, allocations: 105.8 kB / 15.74 MB, free: 5.578 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.001369/0.001369, allocations: 188.5 kB / 16.67 MB, free: 5.52 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.582/1.582, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001442/0.001442, allocations: 55.92 kB / 326.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.108, allocations: 46.61 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.2493/0.3573, allocations: 17.53 MB / 390.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008375/0.3658, allocations: 5.98 MB / 396.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.3672, allocations: 27.06 kB / 396.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.3685, allocations: 330.1 kB / 397 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003268/0.3717, allocations: 1.055 MB / 398.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005264/0.377, allocations: 1.634 MB / 399.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003244/0.3803, allocations: 1.938 MB / 401.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.3813, allocations: 482.3 kB / 402.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002044/0.3834, allocations: 0.7387 MB / 402.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.3852, allocations: 0.7328 MB / 403.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003117/0.3856, allocations: 70.84 kB / 403.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.3885, allocations: 1.107 MB / 404.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004548/0.389, allocations: 261.4 kB / 405 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008409/0.3898, allocations: 402.8 kB / 405.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002669/0.3925, allocations: 1.684 MB / 407.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3925, allocations: 0 / 407.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3925, allocations: 1.156 kB / 407.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.3926, allocations: 0 / 407.1 MB, free: 9.609 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.002185/0.3948, allocations: 1.174 MB / 408.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3948, allocations: 13.52 kB / 408.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002965/0.3951, allocations: 85.72 kB / 408.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008405/0.396, allocations: 0.5769 MB / 408.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.396, allocations: 42.62 kB / 409 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.3961, allocations: 47.98 kB / 409 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.3973, allocations: 0.7375 MB / 409.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3973, allocations: 0.9375 kB / 409.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.3974, allocations: 21.55 kB / 409.8 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.779e-05/0.3975, allocations: 43.62 kB / 409.8 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.3986, allocations: 0.7026 MB / 410.5 MB, free: 7.273 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.004247/0.4029, allocations: 3.036 MB / 413.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/0.4037, allocations: 0.4899 MB / 414.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003941/0.4041, allocations: 269.5 kB / 414.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002767/0.4044, allocations: 339.9 kB / 414.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.4044, allocations: 42.23 kB / 414.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/0.4044, allocations: 5 kB / 414.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.005328/0.4098, allocations: 2.3 MB / 417 MB, free: 2.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.4098, allocations: 84.55 kB / 417.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.4106, allocations: 0.6212 MB / 417.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.686e-05/0.4106, allocations: 39.2 kB / 417.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.4109, allocations: 328.1 kB / 418.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.411, allocations: 204.6 kB / 418.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/0.4113, allocations: 139.8 kB / 418.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4114, allocations: 387.7 kB / 418.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004977/0.4119, allocations: 307 kB / 419.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006009/0.4125, allocations: 479.5 kB / 419.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.4136, allocations: 0.7487 MB / 420.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4136, allocations: 0 / 420.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001588/0.4152, allocations: 0.9735 MB / 421.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.4152, allocations: 4 kB / 421.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.4152, allocations: 8 kB / 421.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.4177, allocations: 412.5 kB / 421.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006179/0.4183, allocations: 147.8 kB / 421.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009336/0.4193, allocations: 0.8341 MB / 422.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.4199, allocations: 39.91 kB / 422.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.42, allocations: 28.06 kB / 422.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007154/0.4207, allocations: 482 kB / 423.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005948/0.4213, allocations: 474.1 kB / 423.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001032/0.4223, allocations: 0.7255 MB / 424.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.171e-06/0.4224, allocations: 8 kB / 424.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001453/0.4238, allocations: 0.8975 MB / 425.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4238, allocations: 19.92 kB / 425.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4239, allocations: 4 kB / 425.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/0.4257, allocations: 264.5 kB / 425.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.4263, allocations: 157.9 kB / 425.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005877/0.4269, allocations: 0.7149 MB / 426.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005728/0.4275, allocations: 39.97 kB / 426.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.4275, allocations: 27.98 kB / 426.5 MB, free: 9.379 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.0002363/0.4278, allocations: 230.3 kB / 426.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.4279, allocations: 79.09 kB / 426.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.4295, allocations: 0.8636 MB / 427.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4295, allocations: 4 kB / 427.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4295, allocations: 4 kB / 427.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4295, allocations: 3.984 kB / 427.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.4323, allocations: 1.706 MB / 429.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4323, allocations: 0 / 429.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.4328, allocations: 111.9 kB / 429.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.4343, allocations: 320.6 kB / 429.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.4344, allocations: 19.92 kB / 429.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007871/0.4352, allocations: 0.8216 MB / 430.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.4352, allocations: 0 / 430.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.4371, allocations: 1.288 MB / 431.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.4374, allocations: 152.1 kB / 432.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.4375, allocations: 15.98 kB / 432.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000487/0.438, allocations: 28.05 kB / 432.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4381, allocations: 52.48 kB / 432.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/0.4382, allocations: 31.92 kB / 432.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005453/0.4388, allocations: 439 kB / 432.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4388, allocations: 0 / 432.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001731/0.4405, allocations: 0.5271 MB / 433.2 MB, free: 2.578 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.001276/0.4418, allocations: 456.7 kB / 433.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.4442, allocations: 1.196 MB / 434.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.4443, allocations: 0 / 434.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.445, allocations: 399.7 kB / 435.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.4466, allocations: 370.5 kB / 435.6 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.4495, allocations: 1.57 MB / 437.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006122/0.4501, allocations: 0.9712 MB / 438.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009093/0.451, allocations: 282.1 kB / 438.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.4512, allocations: 63.42 kB / 438.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4512, allocations: 0 / 438.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of Templates: time 0.033/0.4842, allocations: 20.51 MB / 459 MB, free: 8.68 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)