Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001466/0.001466, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001229/0.001229, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.452/1.452, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.00136/0.00136, allocations: 43.94 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2214, allocations: 46.63 MB / 324.8 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01775/0.2392, allocations: 18.32 MB / 343.2 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009002/0.2482, allocations: 6.125 MB / 349.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.2498, allocations: 31.75 kB / 349.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.2508, allocations: 302.4 kB / 349.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002463/0.2533, allocations: 0.9568 MB / 350.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003655/0.2569, allocations: 1.495 MB / 352.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002381/0.2593, allocations: 1.949 MB / 354 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00063/0.26, allocations: 485.7 kB / 354.5 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.261, allocations: 0.7279 MB / 355.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008407/0.2618, allocations: 0.7591 MB / 356 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.876e-05/0.2619, allocations: 64 kB / 356 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001899/0.2639, allocations: 1.108 MB / 357.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000283/0.2641, allocations: 271.2 kB / 357.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000414/0.2646, allocations: 402.1 kB / 357.8 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002018/0.2666, allocations: 1.675 MB / 359.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2666, allocations: 0 / 359.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2666, allocations: 4 kB / 359.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2666, allocations: 0 / 359.5 MB, free: 1.363 MB / 286.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.002238/0.2689, allocations: 1.168 MB / 360.7 MB, free: 148 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.2689, allocations: 11.97 kB / 360.7 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00029/0.2692, allocations: 88 kB / 360.8 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007681/0.27, allocations: 0.5478 MB / 361.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.2701, allocations: 33 kB / 361.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.771e-05/0.2702, allocations: 55.89 kB / 361.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.2713, allocations: 0.7372 MB / 362.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.2713, allocations: 3.938 kB / 362.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.706e-05/0.2714, allocations: 23.98 kB / 362.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-05/0.2714, allocations: 40.97 kB / 362.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2725, allocations: 0.7026 MB / 362.9 MB, free: 13.84 MB / 302.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.004056/0.2766, allocations: 3.026 MB / 365.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007113/0.2773, allocations: 0.4964 MB / 366.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003695/0.2777, allocations: 266 kB / 366.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002596/0.2779, allocations: 341.3 kB / 367 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.278, allocations: 39 kB / 367 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.364e-06/0.278, allocations: 4 kB / 367.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005172/0.2832, allocations: 2.299 MB / 369.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.2832, allocations: 81.67 kB / 369.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007355/0.284, allocations: 0.6211 MB / 370.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.2841, allocations: 45.69 kB / 370.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.2843, allocations: 332.4 kB / 370.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.2845, allocations: 209 kB / 370.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.2847, allocations: 138.6 kB / 370.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2849, allocations: 378.8 kB / 371.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004996/0.2854, allocations: 312.7 kB / 371.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.286, allocations: 477.3 kB / 371.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009891/0.287, allocations: 0.7445 MB / 372.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.287, allocations: 3.938 kB / 372.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001492/0.2885, allocations: 0.9733 MB / 373.6 MB, free: 2.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.2885, allocations: 8 kB / 373.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2885, allocations: 4 kB / 373.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.291, allocations: 408.9 kB / 374 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.2916, allocations: 151.8 kB / 374.2 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009066/0.2925, allocations: 0.8331 MB / 375 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.2931, allocations: 39.92 kB / 375.1 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.566e-05/0.2931, allocations: 35.98 kB / 375.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006738/0.2938, allocations: 473.9 kB / 375.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005682/0.2944, allocations: 478 kB / 376 MB, free: 16 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00099/0.2954, allocations: 0.7321 MB / 376.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.676e-06/0.2954, allocations: 0 / 376.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001461/0.2969, allocations: 0.9084 MB / 377.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.2969, allocations: 8.625 kB / 377.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2969, allocations: 4 kB / 377.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.2988, allocations: 280.4 kB / 377.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.2994, allocations: 151.8 kB / 378.1 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006186/0.3, allocations: 0.7085 MB / 378.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000582/0.3006, allocations: 47.94 kB / 378.8 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/0.3007, allocations: 31.98 kB / 378.9 MB, free: 13.05 MB / 318.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.0002591/0.301, allocations: 228 kB / 379.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.3011, allocations: 75.09 kB / 379.2 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.3026, allocations: 0.8659 MB / 380 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.3026, allocations: 8 kB / 380 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3026, allocations: 3.938 kB / 380.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3026, allocations: 3.984 kB / 380.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.3054, allocations: 1.723 MB / 381.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3054, allocations: 0 / 381.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.3059, allocations: 107.9 kB / 381.9 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.3073, allocations: 328.5 kB / 382.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.553e-05/0.3073, allocations: 16 kB / 382.2 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007526/0.3081, allocations: 0.8139 MB / 383 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3081, allocations: 12.09 kB / 383 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.31, allocations: 1.291 MB / 384.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.3102, allocations: 140.2 kB / 384.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.3103, allocations: 12 kB / 384.5 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004399/0.3108, allocations: 43.88 kB / 384.5 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3109, allocations: 48.44 kB / 384.6 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.539e-05/0.3109, allocations: 27.98 kB / 384.6 MB, free: 7.156 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005055/0.3115, allocations: 447.1 kB / 385 MB, free: 6.727 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3115, allocations: 3.938 kB / 385 MB, free: 6.723 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001393/0.3129, allocations: 0.5271 MB / 385.6 MB, free: 6.195 MB / 318.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.0009823/0.3139, allocations: 454.5 kB / 386 MB, free: 5.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.3164, allocations: 1.294 MB / 387.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.3164, allocations: 8.188 kB / 387.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006376/0.3171, allocations: 399 kB / 387.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.3187, allocations: 365.3 kB / 388.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.3214, allocations: 1.832 MB / 389.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.3219, allocations: 0.9635 MB / 390.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008745/0.3227, allocations: 290.1 kB / 391.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.3229, allocations: 63.42 kB / 391.2 MB, free: 500 kB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3229, allocations: 0 / 391.2 MB, free: 500 kB / 318.1 MB Notification: Performance of Templates: time 0.02993/0.3529, allocations: 20.16 MB / 411.4 MB, free: 12.29 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)