Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 104.8 kB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 194.9 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009393/0.0009393, allocations: 47.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.209, allocations: 49.44 MB / 401.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02863/0.2377, allocations: 30.14 MB / 431.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.2509, allocations: 10.28 MB / 441.8 MB, free: 264 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008663/0.2518, allocations: 35.75 kB / 441.9 MB, free: 228 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.2529, allocations: 485.1 kB / 442.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00398/0.257, allocations: 1.886 MB / 444.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005789/0.2628, allocations: 2.753 MB / 447 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003814/0.2666, allocations: 3.685 MB / 450.7 MB, free: 7.414 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.2681, allocations: 1.162 MB / 451.8 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.2706, allocations: 1.53 MB / 453.4 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002037/0.2726, allocations: 1.413 MB / 454.8 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003654/0.273, allocations: 152 kB / 454.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003567/0.2766, allocations: 2.079 MB / 457 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006325/0.2772, allocations: 0.5844 MB / 457.6 MB, free: 476 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001012/0.2783, allocations: 0.8011 MB / 458.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004317/0.2826, allocations: 3.351 MB / 461.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2826, allocations: 0 / 461.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2826, allocations: 0 / 461.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.28e-05/0.2827, allocations: 4 kB / 461.7 MB, free: 12.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005133/0.2878, allocations: 2.034 MB / 463.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2879, allocations: 8.031 kB / 463.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005547/0.2884, allocations: 170.1 kB / 464 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.2901, allocations: 0.9447 MB / 464.9 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.2903, allocations: 238.5 kB / 465.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.2905, allocations: 99.98 kB / 465.2 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00294/0.2934, allocations: 1.79 MB / 467 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.2935, allocations: 0 / 467 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.2936, allocations: 55.86 kB / 467.1 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.2938, allocations: 102 kB / 467.2 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.2968, allocations: 1.776 MB / 469 MB, free: 4.895 MB / 382.1 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.012/0.3088, allocations: 6.909 MB / 475.9 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.3115, allocations: 1.498 MB / 477.4 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.3128, allocations: 0.8797 MB / 478.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008369/0.3137, allocations: 0.6451 MB / 478.9 MB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.3138, allocations: 59.55 kB / 478.9 MB, free: 10.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.135e-06/0.3138, allocations: 0 / 478.9 MB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01658/0.3303, allocations: 6.617 MB / 485.6 MB, free: 3.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/0.3304, allocations: 175.5 kB / 485.7 MB, free: 3.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.3318, allocations: 1.099 MB / 486.8 MB, free: 2.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.332, allocations: 53.64 kB / 486.9 MB, free: 2.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/0.3324, allocations: 0.4927 MB / 487.4 MB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/0.3328, allocations: 433.8 kB / 487.8 MB, free: 1.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004945/0.3333, allocations: 271.5 kB / 488.1 MB, free: 1.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3334, allocations: 361.9 kB / 488.4 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.3348, allocations: 0.8558 MB / 489.3 MB, free: 15.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001583/0.3364, allocations: 1.069 MB / 490.3 MB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002833/0.3393, allocations: 1.808 MB / 492.1 MB, free: 12.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3393, allocations: 4 kB / 492.2 MB, free: 12.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00467/0.3439, allocations: 2.611 MB / 494.8 MB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.344, allocations: 16.28 kB / 494.8 MB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.344, allocations: 8 kB / 494.8 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003631/0.3476, allocations: 1.303 MB / 496.1 MB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009935/0.3486, allocations: 211.7 kB / 496.3 MB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006639/0.3553, allocations: 6.731 MB / 0.4912 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.3564, allocations: 64.02 kB / 0.4913 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.3566, allocations: 59.97 kB / 0.4914 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001765/0.3583, allocations: 1.101 MB / 0.4924 GB, free: 416 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001566/0.3599, allocations: 1.058 MB / 0.4935 GB, free: 15.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00274/0.3627, allocations: 1.774 MB / 0.4952 GB, free: 13.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.507e-06/0.3627, allocations: 0 / 0.4952 GB, free: 13.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004484/0.3672, allocations: 2.498 MB / 0.4976 GB, free: 10.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3672, allocations: 12.06 kB / 0.4976 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3672, allocations: 7.938 kB / 0.4977 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.3697, allocations: 1.019 MB / 0.4987 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.3707, allocations: 223.6 kB / 0.4989 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006062/0.3768, allocations: 6.462 MB / 0.5052 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.378, allocations: 75.81 kB / 0.5052 GB, free: 2.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.3782, allocations: 55.98 kB / 0.5053 GB, free: 2.676 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004252/0.3786, allocations: 261.4 kB / 0.5055 GB, free: 2.414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.379, allocations: 138.3 kB / 0.5057 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005315/0.3843, allocations: 2.807 MB / 0.5084 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.3843, allocations: 3.984 kB / 0.5084 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3843, allocations: 0 / 0.5084 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000839/0.3852, allocations: 435.1 kB / 0.5088 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/0.3855, allocations: 28 kB / 0.5089 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.3865, allocations: 59.94 kB / 0.5089 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.3868, allocations: 145.1 kB / 0.5091 GB, free: 14.77 MB / 446.1 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004461/0.3913, allocations: 1.752 MB / 0.5108 GB, free: 13 MB / 446.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Fluid.Examples.Tanks.TanksWithOverflow could not be translated