Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, 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.354/1.354, allocations: 226.7 MB / 245.5 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 99.59 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 55.91 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2219, allocations: 50.46 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01301/0.235, allocations: 18.39 MB / 425.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006775/0.2418, allocations: 6.387 MB / 431.8 MB, free: 2.965 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009892/0.2429, allocations: 35.75 kB / 431.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007698/0.2436, allocations: 286.4 kB / 432.2 MB, free: 2.648 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.2456, allocations: 0.9879 MB / 433.1 MB, free: 1.656 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.2485, allocations: 1.365 MB / 434.5 MB, free: 308 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00307/0.2516, allocations: 3.076 MB / 437.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006362/0.2522, allocations: 414.6 kB / 438 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.2533, allocations: 0.6382 MB / 438.6 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009458/0.2542, allocations: 0.7434 MB / 439.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.2544, allocations: 36 kB / 439.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.2564, allocations: 1.104 MB / 440.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.2567, allocations: 223.3 kB / 440.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004029/0.2571, allocations: 386 kB / 441.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001952/0.2591, allocations: 1.649 MB / 442.8 MB, free: 8.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2591, allocations: 4 kB / 442.8 MB, free: 8.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.2591, allocations: 0 / 442.8 MB, free: 8.016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2591, allocations: 0 / 442.8 MB, free: 8.016 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.002349/0.2615, allocations: 1.168 MB / 443.9 MB, free: 6.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2615, allocations: 8.031 kB / 443.9 MB, free: 6.789 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.2618, allocations: 84.09 kB / 444 MB, free: 6.707 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008196/0.2626, allocations: 0.5557 MB / 444.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.2627, allocations: 40.98 kB / 444.6 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-05/0.2628, allocations: 51.98 kB / 444.7 MB, free: 6.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.2639, allocations: 0.7333 MB / 445.4 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.2639, allocations: 0 / 445.4 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-05/0.264, allocations: 27.98 kB / 445.4 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.307e-05/0.2641, allocations: 44.91 kB / 445.5 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.2651, allocations: 0.6948 MB / 446.2 MB, free: 4.488 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.004071/0.2692, allocations: 3.042 MB / 449.2 MB, free: 1.227 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/0.27, allocations: 494.5 kB / 449.7 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/0.2703, allocations: 266 kB / 449.9 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002591/0.2706, allocations: 345.3 kB / 450.3 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.2707, allocations: 43 kB / 450.3 MB, free: 4 kB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 1.753e-06/0.2707, allocations: 0 / 450.3 MB, free: 4 kB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.005202/0.2759, allocations: 2.299 MB / 452.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.2759, allocations: 85.61 kB / 452.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000745/0.2767, allocations: 0.6172 MB / 453.3 MB, free: 12.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.414e-05/0.2768, allocations: 41.7 kB / 453.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.277, allocations: 336.3 kB / 453.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.2772, allocations: 209 kB / 453.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.2774, allocations: 142.6 kB / 454 MB, free: 12.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.2776, allocations: 378.8 kB / 454.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.2781, allocations: 312.7 kB / 454.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005888/0.2787, allocations: 477.3 kB / 455.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.2797, allocations: 0.7484 MB / 455.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2797, allocations: 4 kB / 455.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00146/0.2812, allocations: 0.9733 MB / 456.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.2812, allocations: 14.8 kB / 456.9 MB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.2812, allocations: 4 kB / 456.9 MB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002342/0.2836, allocations: 408.7 kB / 457.3 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/0.2841, allocations: 151.8 kB / 457.5 MB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008618/0.285, allocations: 0.8216 MB / 458.3 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.2855, allocations: 43.98 kB / 458.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.461e-05/0.2856, allocations: 35.98 kB / 458.4 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006592/0.2863, allocations: 477.9 kB / 458.8 MB, free: 7.191 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005588/0.2868, allocations: 466.1 kB / 459.3 MB, free: 6.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009506/0.2878, allocations: 0.7281 MB / 460 MB, free: 5.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.131e-06/0.2878, allocations: 4 kB / 460 MB, free: 5.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001357/0.2892, allocations: 0.9085 MB / 460.9 MB, free: 4.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2892, allocations: 8 kB / 460.9 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2892, allocations: 4 kB / 460.9 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/0.291, allocations: 273 kB / 461.2 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.2916, allocations: 155.8 kB / 461.4 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006093/0.2922, allocations: 0.7123 MB / 462.1 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.2927, allocations: 39.97 kB / 462.1 MB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.634e-05/0.2928, allocations: 36.05 kB / 462.1 MB, free: 3.703 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.0002299/0.293, allocations: 228 kB / 462.4 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.2932, allocations: 75.09 kB / 462.4 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.2946, allocations: 0.8687 MB / 463.3 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.2947, allocations: 15.88 kB / 463.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2947, allocations: 0 / 463.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.2947, allocations: 3.984 kB / 463.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.2974, allocations: 1.708 MB / 465 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2974, allocations: 0 / 465 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004652/0.2978, allocations: 111.9 kB / 465.1 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.2993, allocations: 343.9 kB / 465.5 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/0.2994, allocations: 15.94 kB / 465.5 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000756/0.3001, allocations: 0.8099 MB / 466.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3002, allocations: 0 / 466.3 MB, free: 15.43 MB / 346.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.1328/0.433, allocations: 12.77 MB / 479.1 MB, free: 2.406 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.