Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 112.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 206.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 55.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2065, allocations: 50.54 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.0281/0.2347, allocations: 30.29 MB / 440.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01346/0.2481, allocations: 10.3 MB / 450.5 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008489/0.249, allocations: 31.81 kB / 450.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.2503, allocations: 485 kB / 451 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003994/0.2543, allocations: 1.897 MB / 452.9 MB, free: 6.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005544/0.2598, allocations: 2.746 MB / 455.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.2636, allocations: 3.701 MB / 459.4 MB, free: 24 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.2653, allocations: 1.161 MB / 460.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002424/0.2677, allocations: 1.53 MB / 462.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.2699, allocations: 1.421 MB / 463.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003417/0.2702, allocations: 155.9 kB / 463.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003281/0.2735, allocations: 2.11 MB / 465.7 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005183/0.274, allocations: 0.5766 MB / 466.3 MB, free: 9.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007861/0.2748, allocations: 0.7973 MB / 467.1 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003557/0.2784, allocations: 3.358 MB / 470.5 MB, free: 4.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2784, allocations: 4 kB / 470.5 MB, free: 4.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2784, allocations: 0 / 470.5 MB, free: 4.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.2784, allocations: 4 kB / 470.5 MB, free: 4.863 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.004468/0.2829, allocations: 2.037 MB / 472.5 MB, free: 2.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.283, allocations: 8.031 kB / 472.5 MB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004992/0.2835, allocations: 170.2 kB / 472.7 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.2849, allocations: 0.9524 MB / 473.6 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.2851, allocations: 230.5 kB / 473.9 MB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.2853, allocations: 99.97 kB / 474 MB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.2882, allocations: 1.79 MB / 475.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.2882, allocations: 7.938 kB / 475.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.2884, allocations: 43.92 kB / 475.8 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.2885, allocations: 106 kB / 475.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.2915, allocations: 1.772 MB / 477.7 MB, free: 13.46 MB / 398.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.01081/0.3023, allocations: 6.913 MB / 484.6 MB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.3049, allocations: 1.494 MB / 486.1 MB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001348/0.3062, allocations: 0.8816 MB / 487 MB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008461/0.3071, allocations: 0.6451 MB / 487.6 MB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3071, allocations: 51.55 kB / 487.7 MB, free: 3.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 2.916e-06/0.3072, allocations: 0 / 487.7 MB, free: 3.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01588/0.323, allocations: 6.621 MB / 494.3 MB, free: 12.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.3231, allocations: 167.5 kB / 494.5 MB, free: 12.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.3244, allocations: 1.099 MB / 495.6 MB, free: 10.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.3246, allocations: 49.7 kB / 495.6 MB, free: 10.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/0.3249, allocations: 0.4888 MB / 496.1 MB, free: 10.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.3253, allocations: 441.8 kB / 496.5 MB, free: 9.988 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004914/0.3258, allocations: 267.5 kB / 496.8 MB, free: 9.719 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3259, allocations: 361.9 kB / 497.1 MB, free: 9.359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.3273, allocations: 0.848 MB / 498 MB, free: 8.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.3289, allocations: 1.076 MB / 499.1 MB, free: 7.352 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.3317, allocations: 1.808 MB / 0.4891 GB, free: 5.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3318, allocations: 4 kB / 0.4891 GB, free: 5.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004624/0.3364, allocations: 2.627 MB / 0.4917 GB, free: 2.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3364, allocations: 11.94 kB / 0.4917 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3364, allocations: 7.938 kB / 0.4917 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003567/0.34, allocations: 1.306 MB / 0.493 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009688/0.341, allocations: 211.7 kB / 0.4932 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006608/0.3476, allocations: 6.733 MB / 0.4998 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.3486, allocations: 59.95 kB / 0.4998 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.3488, allocations: 59.97 kB / 0.4999 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001778/0.3506, allocations: 1.101 MB / 0.501 GB, free: 8.973 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001577/0.3522, allocations: 1.066 MB / 0.502 GB, free: 7.824 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002743/0.3549, allocations: 1.77 MB / 0.5037 GB, free: 5.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.818e-06/0.3549, allocations: 0 / 0.5037 GB, free: 5.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004451/0.3594, allocations: 2.503 MB / 0.5062 GB, free: 3.457 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.3594, allocations: 8 kB / 0.5062 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3594, allocations: 4 kB / 0.5062 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/0.3619, allocations: 1.027 MB / 0.5072 GB, free: 2.402 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009927/0.3629, allocations: 223.7 kB / 0.5074 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006044/0.369, allocations: 6.462 MB / 0.5137 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.37, allocations: 67.94 kB / 0.5138 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.3701, allocations: 55.98 kB / 0.5138 GB, free: 11.24 MB / 446.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.0003581/0.3705, allocations: 272.8 kB / 0.5141 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002761/0.3708, allocations: 138.3 kB / 0.5142 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.3759, allocations: 2.795 MB / 0.517 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.376, allocations: 11.97 kB / 0.517 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.376, allocations: 4.188 kB / 0.517 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006761/0.3767, allocations: 435 kB / 0.5174 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/0.3769, allocations: 31.98 kB / 0.5174 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.3779, allocations: 67.94 kB / 0.5175 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003348/0.3782, allocations: 145.1 kB / 0.5176 GB, free: 7.312 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.004259/0.3825, allocations: 1.747 MB / 0.5193 GB, free: 5.555 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