Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.231/1.231, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009519/0.0009518, allocations: 98.28 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007959/0.000796, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2012, allocations: 46.61 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.01759/0.2189, allocations: 22.56 MB / 396.4 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.2294, allocations: 10.43 MB / 406.8 MB, free: 16.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.2309, allocations: 39.69 kB / 406.9 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009604/0.232, allocations: 350.1 kB / 407.2 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.2346, allocations: 1.326 MB / 408.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004437/0.2391, allocations: 2.216 MB / 410.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.2416, allocations: 3.818 MB / 414.6 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006148/0.2423, allocations: 0.5808 MB / 415.1 MB, free: 8.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009694/0.2432, allocations: 0.8523 MB / 416 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008771/0.2441, allocations: 0.9771 MB / 417 MB, free: 6.254 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.2442, allocations: 48 kB / 417 MB, free: 6.207 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002403/0.2467, allocations: 1.681 MB / 418.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002623/0.2469, allocations: 319 kB / 419 MB, free: 4.211 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000424/0.2474, allocations: 0.4898 MB / 419.5 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00242/0.2498, allocations: 2.4 MB / 421.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2498, allocations: 0 / 421.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.2498, allocations: 7.938 kB / 421.9 MB, free: 1.305 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2498, allocations: 0 / 421.9 MB, free: 1.305 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002348/0.2522, allocations: 1.492 MB / 423.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2522, allocations: 12.03 kB / 423.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/0.2526, allocations: 114.8 kB / 423.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009622/0.2535, allocations: 0.6824 MB / 424.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.608e-05/0.2536, allocations: 49.3 kB / 424.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.923e-05/0.2537, allocations: 63.98 kB / 424.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.2551, allocations: 1.06 MB / 425.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.2552, allocations: 3.938 kB / 425.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.689e-05/0.2553, allocations: 27.98 kB / 425.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-05/0.2553, allocations: 65.27 kB / 425.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.2568, allocations: 1.039 MB / 426.5 MB, free: 12.55 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.005778/0.2626, allocations: 4.434 MB / 430.9 MB, free: 7.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000882/0.2635, allocations: 0.5787 MB / 431.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.264, allocations: 322 kB / 431.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002354/0.2663, allocations: 1.969 MB / 433.8 MB, free: 4.754 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.2664, allocations: 42.89 kB / 433.8 MB, free: 4.703 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.474e-06/0.2664, allocations: 0 / 433.8 MB, free: 4.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.004127/0.2705, allocations: 1.952 MB / 435.8 MB, free: 2.652 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.331e-05/0.2706, allocations: 162.2 kB / 436 MB, free: 2.457 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.2717, allocations: 0.9312 MB / 436.9 MB, free: 1.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.664e-05/0.2717, allocations: 37.7 kB / 436.9 MB, free: 1.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003427/0.2721, allocations: 490.8 kB / 437.4 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2722, allocations: 161.7 kB / 437.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.2725, allocations: 186.5 kB / 437.7 MB, free: 0.625 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2726, allocations: 334 kB / 438.1 MB, free: 300 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005233/0.2732, allocations: 340.7 kB / 438.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007085/0.2739, allocations: 0.6289 MB / 439 MB, free: 15.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.2751, allocations: 0.8851 MB / 439.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2751, allocations: 7.938 kB / 439.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001708/0.2768, allocations: 1.12 MB / 441 MB, free: 13.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2768, allocations: 8 kB / 441.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.2768, allocations: 8 kB / 441.1 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002207/0.279, allocations: 378 kB / 441.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.2797, allocations: 183.7 kB / 441.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.2808, allocations: 1.339 MB / 442.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.2814, allocations: 55.88 kB / 443 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.2815, allocations: 40 kB / 443 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000746/0.2823, allocations: 0.5301 MB / 443.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00071/0.283, allocations: 0.6228 MB / 444.2 MB, free: 9.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001055/0.2841, allocations: 0.8714 MB / 445.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.479e-06/0.2841, allocations: 4 kB / 445.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001611/0.2857, allocations: 1.089 MB / 446.2 MB, free: 7.582 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2857, allocations: 14.03 kB / 446.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.2857, allocations: 12.27 kB / 446.2 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.2877, allocations: 337.5 kB / 446.5 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.2883, allocations: 187.6 kB / 446.7 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.2894, allocations: 1.304 MB / 448 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007023/0.2901, allocations: 55.97 kB / 448.1 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.2902, allocations: 55.86 kB / 448.1 MB, free: 5.574 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002892/0.2905, allocations: 235.3 kB / 448.3 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.2906, allocations: 98.88 kB / 448.4 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.2922, allocations: 0.797 MB / 449.2 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.2922, allocations: 8 kB / 449.2 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2923, allocations: 4 kB / 449.2 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2923, allocations: 3.984 kB / 449.2 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.2946, allocations: 1.583 MB / 450.8 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.2946, allocations: 4 kB / 450.8 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.295, allocations: 75.97 kB / 450.9 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.2963, allocations: 277.4 kB / 451.2 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.053e-05/0.2964, allocations: 15.98 kB / 451.2 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009258/0.2973, allocations: 1.304 MB / 452.5 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2973, allocations: 3.938 kB / 452.5 MB, free: 1.043 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.2049/0.5022, allocations: 16.15 MB / 468.7 MB, free: 0.5039 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.