Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009364/0.0009364, allocations: 115.4 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000935/0.0009351, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2208, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.02879/0.2496, allocations: 38.52 MB / 445.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0214/0.2711, allocations: 15.9 MB / 461.5 MB, free: 5.238 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.2736, allocations: 71.44 kB / 461.5 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.2757, allocations: 0.5866 MB / 462.1 MB, free: 4.578 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006424/0.2821, allocations: 2.392 MB / 464.5 MB, free: 2.176 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00837/0.2905, allocations: 3.181 MB / 467.7 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008032/0.2986, allocations: 7.162 MB / 474.9 MB, free: 7.828 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001959/0.3006, allocations: 1.095 MB / 476 MB, free: 6.711 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003371/0.3039, allocations: 1.514 MB / 477.5 MB, free: 5.191 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002958/0.3069, allocations: 1.818 MB / 479.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003373/0.3073, allocations: 96 kB / 479.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005058/0.3123, allocations: 2.383 MB / 481.8 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000796/0.3132, allocations: 0.5802 MB / 482.3 MB, free: 312 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.3145, allocations: 0.9018 MB / 483.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005931/0.3205, allocations: 3.997 MB / 487.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3205, allocations: 0 / 487.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.3205, allocations: 0 / 487.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.136e-05/0.3205, allocations: 4 kB / 487.2 MB, free: 11.39 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00534/0.3259, allocations: 2.411 MB / 489.7 MB, free: 8.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3259, allocations: 12.59 kB / 489.7 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006037/0.3266, allocations: 201.7 kB / 489.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3284, allocations: 1.086 MB / 491 MB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.233e-05/0.3285, allocations: 110.2 kB / 491.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.3287, allocations: 112 kB / 491.2 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003031/0.3318, allocations: 1.955 MB / 493.1 MB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.3318, allocations: 7.844 kB / 493.1 MB, free: 5.285 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.332, allocations: 51.98 kB / 493.2 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001583/0.3322, allocations: 114.3 kB / 493.3 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.3353, allocations: 1.996 MB / 495.3 MB, free: 3.117 MB / 362.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.01102/0.3464, allocations: 7.864 MB / 0.4914 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3483, allocations: 1.176 MB / 0.4925 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.3493, allocations: 0.7621 MB / 0.4933 GB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004874/0.3542, allocations: 3.407 MB / 0.4966 GB, free: 5.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.3543, allocations: 55.5 kB / 0.4966 GB, free: 5.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 2.515e-06/0.3543, allocations: 4 kB / 0.4966 GB, free: 5.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=134): time 0.1966/0.5509, allocations: 5.4 MB / 0.5019 GB, free: 96.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.551, allocations: 169.3 kB / 0.5021 GB, free: 96.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.5533, allocations: 1.429 MB / 0.5035 GB, free: 96.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002705/0.5535, allocations: 60.98 kB / 0.5035 GB, free: 96.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004971/0.5541, allocations: 0.709 MB / 0.5042 GB, free: 95.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.5544, allocations: 471.2 kB / 0.5047 GB, free: 95.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005281/0.555, allocations: 341.2 kB / 0.505 GB, free: 95.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.755e-05/0.555, allocations: 304.1 kB / 0.5053 GB, free: 94.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.5562, allocations: 0.7816 MB / 0.506 GB, free: 94.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.5576, allocations: 1.208 MB / 0.5072 GB, free: 93.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.5601, allocations: 1.886 MB / 0.5091 GB, free: 92.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.5601, allocations: 3.531 kB / 0.5091 GB, free: 92.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003703/0.5638, allocations: 2.451 MB / 0.5115 GB, free: 91.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.5638, allocations: 18.75 kB / 0.5115 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.5639, allocations: 14.69 kB / 0.5115 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006349/0.5702, allocations: 1.097 MB / 0.5126 GB, free: 91.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.5715, allocations: 349.9 kB / 0.5129 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.5736, allocations: 2.901 MB / 0.5157 GB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.575, allocations: 116 kB / 0.5158 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.5752, allocations: 79.12 kB / 0.5159 GB, free: 88.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001537/0.5767, allocations: 1.08 MB / 0.517 GB, free: 88.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001221/0.5779, allocations: 1.19 MB / 0.5181 GB, free: 87.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00199/0.5799, allocations: 1.841 MB / 0.5199 GB, free: 86.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.292e-06/0.58, allocations: 3.562 kB / 0.5199 GB, free: 86.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003054/0.583, allocations: 2.302 MB / 0.5222 GB, free: 83.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.5831, allocations: 8 kB / 0.5222 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.5831, allocations: 12 kB / 0.5222 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005288/0.5884, allocations: 0.8098 MB / 0.523 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.5896, allocations: 360.3 kB / 0.5233 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.5911, allocations: 2.657 MB / 0.5259 GB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.5925, allocations: 123.4 kB / 0.5261 GB, free: 79.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.5927, allocations: 75.98 kB / 0.5261 GB, free: 79.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004227/0.5931, allocations: 305.3 kB / 0.5264 GB, free: 79.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.5934, allocations: 169.9 kB / 0.5266 GB, free: 79.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003862/0.5972, allocations: 2.358 MB / 0.5289 GB, free: 76.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.5973, allocations: 16 kB / 0.5289 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5973, allocations: 4 kB / 0.5289 GB, free: 76.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.5973, allocations: 7.969 kB / 0.5289 GB, free: 76.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005353/0.6027, allocations: 4.01 MB / 0.5328 GB, free: 72.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6027, allocations: 4 kB / 0.5328 GB, free: 72.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008895/0.6036, allocations: 239.8 kB / 0.5331 GB, free: 72.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003659/0.6072, allocations: 0.8791 MB / 0.5339 GB, free: 71.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.6074, allocations: 39.98 kB / 0.534 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.6091, allocations: 2.846 MB / 0.5367 GB, free: 68.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6091, allocations: 4.109 kB / 0.5367 GB, free: 68.75 MB / 378.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.3559/0.9651, allocations: 32.32 MB / 0.5683 GB, free: 36.19 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.