Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001323/0.001323, 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.247/1.247, allocations: 205.1 MB / 223.8 MB, free: 8.477 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.001/0.001, allocations: 105.1 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009051/0.0009052, allocations: 39.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2148, allocations: 46.63 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01465/0.2295, allocations: 18.35 MB / 392.2 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006971/0.2365, allocations: 6.316 MB / 398.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2378, allocations: 35.69 kB / 398.5 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007939/0.2386, allocations: 282.5 kB / 398.8 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.2407, allocations: 0.9839 MB / 399.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.2436, allocations: 1.367 MB / 401.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002319/0.2459, allocations: 3.065 MB / 404.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005123/0.2464, allocations: 422.9 kB / 404.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008447/0.2473, allocations: 0.6304 MB / 405.3 MB, free: 17.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006906/0.248, allocations: 0.7355 MB / 406 MB, free: 17.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.303e-05/0.2481, allocations: 36 kB / 406 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.2498, allocations: 1.096 MB / 407.1 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.25, allocations: 231.3 kB / 407.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.2502, allocations: 370.1 kB / 407.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.2517, allocations: 1.652 MB / 409.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2517, allocations: 0 / 409.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2517, allocations: 0 / 409.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.2517, allocations: 0 / 409.4 MB, free: 13.87 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001805/0.2535, allocations: 1.161 MB / 410.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.2536, allocations: 8.031 kB / 410.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.2538, allocations: 95.88 kB / 410.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006894/0.2545, allocations: 0.5517 MB / 411.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.2546, allocations: 36.98 kB / 411.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.09e-05/0.2547, allocations: 55.89 kB / 411.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008903/0.2556, allocations: 0.7333 MB / 412 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2556, allocations: 4 kB / 412 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.455e-05/0.2556, allocations: 23.98 kB / 412 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.167e-05/0.2557, allocations: 40.97 kB / 412.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008506/0.2566, allocations: 0.6987 MB / 412.8 MB, free: 10.35 MB / 298.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.003318/0.2599, allocations: 3.034 MB / 415.8 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/0.2605, allocations: 489.1 kB / 416.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.2608, allocations: 270 kB / 416.6 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00018/0.261, allocations: 349.3 kB / 416.9 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.261, allocations: 39 kB / 416.9 MB, free: 5.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 2.956e-06/0.2611, allocations: 0 / 416.9 MB, free: 5.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.004427/0.2655, allocations: 2.299 MB / 419.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.2655, allocations: 85.67 kB / 419.3 MB, free: 3.406 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005363/0.2661, allocations: 0.6133 MB / 419.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.2661, allocations: 45.69 kB / 420 MB, free: 2.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.2663, allocations: 328.4 kB / 420.3 MB, free: 2.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.2664, allocations: 213 kB / 420.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.2666, allocations: 138.6 kB / 420.6 MB, free: 2.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.2667, allocations: 382.7 kB / 421 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.2671, allocations: 312.7 kB / 421.3 MB, free: 1.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004472/0.2675, allocations: 473.3 kB / 421.8 MB, free: 0.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007579/0.2683, allocations: 0.7561 MB / 422.5 MB, free: 8 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2683, allocations: 7.938 kB / 422.5 MB, free: 0 / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00148/0.2698, allocations: 0.9695 MB / 423.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2698, allocations: 11.94 kB / 423.5 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.2698, allocations: 4 kB / 423.5 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/0.2721, allocations: 404.9 kB / 423.9 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/0.2727, allocations: 159.7 kB / 424.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009013/0.2736, allocations: 0.8254 MB / 424.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.2741, allocations: 39.92 kB / 424.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/0.2742, allocations: 31.98 kB / 425 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006512/0.2748, allocations: 477.9 kB / 425.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005376/0.2754, allocations: 474 kB / 425.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009285/0.2763, allocations: 0.7321 MB / 426.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.805e-06/0.2763, allocations: 0 / 426.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001342/0.2777, allocations: 0.9008 MB / 427.5 MB, free: 10.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.2777, allocations: 8 kB / 427.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2777, allocations: 4 kB / 427.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/0.2795, allocations: 273.1 kB / 427.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.2801, allocations: 167.7 kB / 428 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005411/0.2806, allocations: 0.7084 MB / 428.7 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.2811, allocations: 47.94 kB / 428.7 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.2812, allocations: 31.98 kB / 428.8 MB, free: 9.555 MB / 314.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.0002391/0.2814, allocations: 228.9 kB / 429 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.2816, allocations: 75.09 kB / 429.1 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.2831, allocations: 0.8696 MB / 429.9 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2831, allocations: 4.094 kB / 429.9 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.2831, allocations: 3.938 kB / 429.9 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.2831, allocations: 7.984 kB / 429.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.2856, allocations: 1.711 MB / 431.7 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2857, allocations: 64 / 431.7 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004603/0.2861, allocations: 111.9 kB / 431.8 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.2876, allocations: 340.4 kB / 432.1 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.2876, allocations: 16 kB / 432.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006993/0.2883, allocations: 0.8098 MB / 432.9 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2884, allocations: 0 / 432.9 MB, free: 5.285 MB / 314.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.1185/0.4069, allocations: 12.65 MB / 445.6 MB, free: 8.348 MB / 330.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.