Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, 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.248/1.248, 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.0009542/0.0009542, allocations: 105.5 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008565/0.0008567, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1947, allocations: 46.61 MB / 373.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02129/0.216, allocations: 32.28 MB / 406.1 MB, free: 17.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.231, allocations: 14.94 MB / 421 MB, free: 2.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.2341, allocations: 63.5 kB / 421.1 MB, free: 2.117 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.2355, allocations: 0.5012 MB / 421.6 MB, free: 1.613 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004047/0.2395, allocations: 2.046 MB / 423.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00739/0.2469, allocations: 3.127 MB / 426.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006134/0.2531, allocations: 5.95 MB / 432.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.2543, allocations: 0.8612 MB / 433.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.2562, allocations: 1.296 MB / 434.9 MB, free: 4.305 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.258, allocations: 1.526 MB / 436.4 MB, free: 2.773 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.2582, allocations: 80 kB / 436.5 MB, free: 2.695 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004001/0.2623, allocations: 2.254 MB / 438.7 MB, free: 448 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005523/0.2628, allocations: 498.5 kB / 439.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008044/0.2636, allocations: 0.7579 MB / 440 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004481/0.2681, allocations: 3.514 MB / 443.5 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2681, allocations: 0 / 443.5 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2682, allocations: 0 / 443.5 MB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.2682, allocations: 0 / 443.5 MB, free: 11.66 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003955/0.2721, allocations: 2.114 MB / 445.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2722, allocations: 8.031 kB / 445.6 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004877/0.2727, allocations: 166.2 kB / 445.8 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.2742, allocations: 0.9521 MB / 446.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.2743, allocations: 85.95 kB / 446.8 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.2744, allocations: 99.89 kB / 446.9 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.2768, allocations: 1.628 MB / 448.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.2768, allocations: 4 kB / 448.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.277, allocations: 47.97 kB / 448.6 MB, free: 6.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.2771, allocations: 105.9 kB / 448.7 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.2795, allocations: 1.647 MB / 450.3 MB, free: 4.629 MB / 330.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.009018/0.2885, allocations: 6.637 MB / 457 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.29, allocations: 0.9303 MB / 457.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007884/0.2908, allocations: 0.5625 MB / 458.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003623/0.2944, allocations: 2.801 MB / 461.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.2945, allocations: 51.14 kB / 461.3 MB, free: 8.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 2.194e-06/0.2945, allocations: 4 kB / 461.3 MB, free: 8.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.00829/0.3028, allocations: 3.703 MB / 465 MB, free: 5.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.786e-05/0.3029, allocations: 188.9 kB / 465.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.3045, allocations: 1.306 MB / 466.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.536e-05/0.3047, allocations: 49.7 kB / 466.6 MB, free: 3.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004973/0.3052, allocations: 0.651 MB / 467.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.3054, allocations: 327.4 kB / 467.5 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004246/0.3059, allocations: 283.3 kB / 467.8 MB, free: 2.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.306, allocations: 305.1 kB / 468.1 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009581/0.3069, allocations: 0.5903 MB / 468.7 MB, free: 1.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.3081, allocations: 0.9967 MB / 469.7 MB, free: 224 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.3101, allocations: 1.492 MB / 471.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.3101, allocations: 4 kB / 471.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003094/0.3132, allocations: 1.896 MB / 473.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.3132, allocations: 12 kB / 473.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.3133, allocations: 12 kB / 473.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004531/0.3178, allocations: 0.7638 MB / 473.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.3189, allocations: 287.5 kB / 474.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.3208, allocations: 2.164 MB / 476.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.3221, allocations: 92 kB / 476.4 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.3222, allocations: 71.92 kB / 476.5 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001308/0.3235, allocations: 0.8395 MB / 477.3 MB, free: 8.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001165/0.3247, allocations: 0.9953 MB / 478.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001837/0.3266, allocations: 1.456 MB / 479.8 MB, free: 5.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.212e-06/0.3266, allocations: 4 kB / 479.8 MB, free: 5.512 MB / 362.7 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.002949/0.3295, allocations: 1.826 MB / 481.6 MB, free: 3.668 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3296, allocations: 18.02 kB / 481.6 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3296, allocations: 12 kB / 481.6 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003889/0.3335, allocations: 0.5959 MB / 482.2 MB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.3345, allocations: 291.5 kB / 482.5 MB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.3361, allocations: 2.02 MB / 484.5 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.3372, allocations: 100 kB / 484.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3373, allocations: 63.98 kB / 484.7 MB, free: 0.4922 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003827/0.3377, allocations: 284.5 kB / 485 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.3379, allocations: 146.2 kB / 485.1 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.3408, allocations: 1.514 MB / 486.6 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.3408, allocations: 15.94 kB / 486.7 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3408, allocations: 0 / 486.7 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3409, allocations: 7.969 kB / 486.7 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.3452, allocations: 2.799 MB / 489.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.3452, allocations: 7.938 kB / 489.5 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006513/0.3459, allocations: 155.9 kB / 489.6 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002815/0.3487, allocations: 0.5956 MB / 490.2 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.3488, allocations: 31.98 kB / 490.2 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/0.3505, allocations: 2.11 MB / 492.4 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.351e-06/0.3505, allocations: 7.969 kB / 492.4 MB, free: 8.633 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.4815/0.8321, allocations: 26.06 MB / 0.5063 GB, free: 121.2 MB / 394.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.