Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 104.9 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008762/0.0008765, allocations: 43.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2175, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01267/0.2302, allocations: 18.32 MB / 417.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.2371, allocations: 6.375 MB / 424.2 MB, free: 8.586 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.2382, allocations: 31.75 kB / 424.2 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007937/0.239, allocations: 290.4 kB / 424.5 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002157/0.2412, allocations: 0.9801 MB / 425.5 MB, free: 7.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003219/0.2444, allocations: 1.36 MB / 426.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002364/0.2468, allocations: 3.064 MB / 429.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005078/0.2473, allocations: 413.4 kB / 430.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000814/0.2482, allocations: 0.646 MB / 431 MB, free: 1.793 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007077/0.2489, allocations: 0.7356 MB / 431.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.629e-05/0.249, allocations: 36 kB / 431.7 MB, free: 1.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001631/0.2506, allocations: 1.092 MB / 432.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.2509, allocations: 231.2 kB / 433 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.2512, allocations: 374.1 kB / 433.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.2532, allocations: 1.657 MB / 435.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2532, allocations: 0 / 435.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.2532, allocations: 4 kB / 435.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.2533, allocations: 0 / 435.1 MB, free: 13.67 MB / 314.7 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.002202/0.2555, allocations: 1.161 MB / 436.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2555, allocations: 8.031 kB / 436.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.2558, allocations: 87.98 kB / 436.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008389/0.2566, allocations: 0.5596 MB / 436.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.2567, allocations: 36.98 kB / 436.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.2568, allocations: 55.98 kB / 437 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.2578, allocations: 0.7294 MB / 437.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.2579, allocations: 0 / 437.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.346e-05/0.258, allocations: 23.98 kB / 437.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.308e-05/0.258, allocations: 44.97 kB / 437.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2591, allocations: 0.7025 MB / 438.5 MB, free: 10.14 MB / 314.7 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.004037/0.2631, allocations: 3.03 MB / 441.5 MB, free: 6.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.2638, allocations: 492.9 kB / 442 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000359/0.2642, allocations: 266 kB / 442.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002322/0.2644, allocations: 340.8 kB / 442.6 MB, free: 5.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.2645, allocations: 50.98 kB / 442.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 2.494e-06/0.2645, allocations: 0 / 442.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004897/0.2694, allocations: 2.292 MB / 444.9 MB, free: 3.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.2695, allocations: 81.67 kB / 445 MB, free: 3.211 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006609/0.2701, allocations: 0.6211 MB / 445.6 MB, free: 2.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.2702, allocations: 41.7 kB / 445.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.2704, allocations: 332.4 kB / 446 MB, free: 2.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.2705, allocations: 205 kB / 446.2 MB, free: 2.004 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.2708, allocations: 142.6 kB / 446.3 MB, free: 1.859 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.2709, allocations: 378.8 kB / 446.7 MB, free: 1.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.2713, allocations: 316.7 kB / 447 MB, free: 1.168 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005469/0.2719, allocations: 477.3 kB / 447.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009434/0.2729, allocations: 0.7483 MB / 448.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2729, allocations: 0 / 448.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001413/0.2743, allocations: 0.9734 MB / 449.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2743, allocations: 7.938 kB / 449.2 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2743, allocations: 8 kB / 449.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/0.2766, allocations: 416.5 kB / 449.6 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.2771, allocations: 147.8 kB / 449.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008862/0.278, allocations: 0.8255 MB / 450.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.2785, allocations: 47.97 kB / 450.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.069e-05/0.2786, allocations: 35.98 kB / 450.7 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000645/0.2792, allocations: 469.9 kB / 451.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005654/0.2798, allocations: 474 kB / 451.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009608/0.2808, allocations: 0.7282 MB / 452.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.687e-06/0.2808, allocations: 4 kB / 452.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001358/0.2822, allocations: 0.9087 MB / 453.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2822, allocations: 11.94 kB / 453.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2822, allocations: 4 kB / 453.2 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.2839, allocations: 272.9 kB / 453.5 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/0.2845, allocations: 155.8 kB / 453.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006035/0.2851, allocations: 0.7162 MB / 454.4 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004766/0.2856, allocations: 39.97 kB / 454.4 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.2857, allocations: 28 kB / 454.4 MB, free: 9.371 MB / 330.7 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.0002637/0.286, allocations: 236.1 kB / 454.7 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.2861, allocations: 75.09 kB / 454.7 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.2876, allocations: 0.8685 MB / 455.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.2876, allocations: 8 kB / 455.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2876, allocations: 0 / 455.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2877, allocations: 48 / 455.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.2903, allocations: 1.715 MB / 457.3 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2903, allocations: 0 / 457.3 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/0.2908, allocations: 108 kB / 457.4 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.2922, allocations: 340.5 kB / 457.8 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.2923, allocations: 23.86 kB / 457.8 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007272/0.293, allocations: 0.8107 MB / 458.6 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.293, allocations: 0 / 458.6 MB, free: 5.09 MB / 330.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1232/0.4162, allocations: 12.64 MB / 471.3 MB, free: 8.191 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.