Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001012/0.001012, allocations: 107.1 kB / 18.4 MB, free: 4.68 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.0009855/0.0009855, allocations: 188.5 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07344/0.07461, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1775/0.2521, allocations: 30.15 MB / 406 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01418/0.2663, allocations: 10.25 MB / 416.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.2676, allocations: 41 kB / 416.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.2691, allocations: 472.8 kB / 416.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004718/0.2738, allocations: 1.893 MB / 418.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006464/0.2803, allocations: 2.747 MB / 421.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004163/0.2845, allocations: 3.68 MB / 425.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.2861, allocations: 1.166 MB / 426.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00281/0.289, allocations: 1.53 MB / 427.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002359/0.2913, allocations: 1.41 MB / 429.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004891/0.2918, allocations: 157.3 kB / 429.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003986/0.2958, allocations: 2.071 MB / 431.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007601/0.2966, allocations: 0.5805 MB / 432 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.2979, allocations: 0.805 MB / 432.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004661/0.3025, allocations: 3.347 MB / 436.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3026, allocations: 3.984 kB / 436.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3026, allocations: 0 / 436.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.996e-05/0.3027, allocations: 3.938 kB / 436.1 MB, free: 3.266 MB / 350.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.00569/0.3084, allocations: 2.037 MB / 438.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3084, allocations: 12.03 kB / 438.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000645/0.3091, allocations: 170.2 kB / 438.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.3108, allocations: 0.937 MB / 439.3 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.311, allocations: 238.5 kB / 439.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.3113, allocations: 107.9 kB / 439.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.3142, allocations: 1.794 MB / 441.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.3142, allocations: 3.938 kB / 441.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.3144, allocations: 47.97 kB / 441.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.3145, allocations: 97.98 kB / 441.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.3175, allocations: 1.776 MB / 443.3 MB, free: 11.86 MB / 366.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.01152/0.329, allocations: 6.914 MB / 450.2 MB, free: 4.645 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.3316, allocations: 1.486 MB / 451.7 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.3331, allocations: 0.8822 MB / 452.6 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009444/0.334, allocations: 0.6451 MB / 453.3 MB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.3341, allocations: 51.55 kB / 453.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.247e-06/0.3341, allocations: 0 / 453.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.0172/0.3513, allocations: 6.622 MB / 459.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.3514, allocations: 171.5 kB / 460.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.3531, allocations: 1.103 MB / 461.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.3532, allocations: 49.7 kB / 461.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004177/0.3536, allocations: 0.5081 MB / 461.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004403/0.3541, allocations: 433.8 kB / 462.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005142/0.3546, allocations: 259.5 kB / 462.4 MB, free: 8.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3548, allocations: 361.9 kB / 462.8 MB, free: 7.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.3563, allocations: 0.8519 MB / 463.6 MB, free: 6.887 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.3579, allocations: 1.08 MB / 464.7 MB, free: 5.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/0.361, allocations: 1.812 MB / 466.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.361, allocations: 4 kB / 466.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004905/0.3659, allocations: 2.612 MB / 469.1 MB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3659, allocations: 8 kB / 469.2 MB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.3659, allocations: 10.41 kB / 469.2 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003681/0.3696, allocations: 1.302 MB / 470.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009835/0.3706, allocations: 215.7 kB / 470.7 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006743/0.3774, allocations: 6.721 MB / 477.4 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.3786, allocations: 63.95 kB / 477.5 MB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.3787, allocations: 55.97 kB / 477.5 MB, free: 8.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00185/0.3806, allocations: 1.113 MB / 478.6 MB, free: 7.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001574/0.3822, allocations: 1.059 MB / 479.7 MB, free: 6.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002797/0.385, allocations: 1.779 MB / 481.5 MB, free: 4.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.838e-06/0.385, allocations: 0 / 481.5 MB, free: 4.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004547/0.3895, allocations: 2.51 MB / 484 MB, free: 1.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.3896, allocations: 8 kB / 484 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3896, allocations: 8 kB / 484 MB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/0.3921, allocations: 1.026 MB / 485 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.3932, allocations: 227.7 kB / 485.2 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006225/0.3994, allocations: 6.457 MB / 491.7 MB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.4006, allocations: 67.94 kB / 491.8 MB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.4007, allocations: 59.97 kB / 491.8 MB, free: 9.625 MB / 414.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.0004033/0.4011, allocations: 264 kB / 492.1 MB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.4014, allocations: 138.3 kB / 492.2 MB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005146/0.4066, allocations: 2.807 MB / 495 MB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.4066, allocations: 11.95 kB / 495 MB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4066, allocations: 0 / 495 MB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008342/0.4075, allocations: 427 kB / 495.4 MB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.4077, allocations: 28 kB / 495.5 MB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.4088, allocations: 63.94 kB / 495.5 MB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.4091, allocations: 153.1 kB / 495.7 MB, free: 5.703 MB / 414.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.004432/0.4136, allocations: 1.744 MB / 497.4 MB, free: 3.945 MB / 414.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