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.001344/0.001344, 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.001226/0.001226, 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.312/1.312, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2054, allocations: 50.55 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02869/0.2341, allocations: 30.29 MB / 440.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.248, allocations: 10.29 MB / 450.5 MB, free: 8.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009/0.2489, allocations: 35.81 kB / 450.6 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.2502, allocations: 477 kB / 451 MB, free: 8.402 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004107/0.2543, allocations: 1.901 MB / 452.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005673/0.26, allocations: 2.75 MB / 455.7 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003738/0.2637, allocations: 3.693 MB / 459.4 MB, free: 52 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.2653, allocations: 1.158 MB / 460.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002422/0.2677, allocations: 1.53 MB / 462.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.2698, allocations: 1.425 MB / 463.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003707/0.2702, allocations: 152 kB / 463.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003558/0.2738, allocations: 2.114 MB / 465.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006398/0.2744, allocations: 0.565 MB / 466.3 MB, free: 9.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.2755, allocations: 0.8089 MB / 467.1 MB, free: 8.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004107/0.2796, allocations: 3.358 MB / 470.5 MB, free: 4.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2796, allocations: 4 kB / 470.5 MB, free: 4.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2796, allocations: 0 / 470.5 MB, free: 4.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.2797, allocations: 4 kB / 470.5 MB, free: 4.891 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.005086/0.2848, allocations: 2.034 MB / 472.5 MB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2848, allocations: 12.03 kB / 472.5 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005642/0.2854, allocations: 174.1 kB / 472.7 MB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.287, allocations: 0.9446 MB / 473.6 MB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.2873, allocations: 242.5 kB / 473.9 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.2875, allocations: 95.98 kB / 474 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/0.2904, allocations: 1.79 MB / 475.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.2905, allocations: 4 kB / 475.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001522/0.2906, allocations: 43.92 kB / 475.8 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.2908, allocations: 105.9 kB / 475.9 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002998/0.2938, allocations: 1.772 MB / 477.7 MB, free: 13.49 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.01174/0.3055, allocations: 6.916 MB / 484.6 MB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.3083, allocations: 1.49 MB / 486.1 MB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3097, allocations: 0.885 MB / 487 MB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000851/0.3105, allocations: 0.649 MB / 487.6 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.3106, allocations: 51.56 kB / 487.7 MB, free: 3.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.326e-06/0.3106, allocations: 0 / 487.7 MB, free: 3.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01653/0.3271, allocations: 6.617 MB / 494.3 MB, free: 12.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.3272, allocations: 171.5 kB / 494.5 MB, free: 12.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.3286, allocations: 1.099 MB / 495.6 MB, free: 11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/0.3288, allocations: 57.7 kB / 495.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.3291, allocations: 0.4888 MB / 496.1 MB, free: 10.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000375/0.3295, allocations: 437.7 kB / 496.5 MB, free: 10 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004969/0.33, allocations: 267.5 kB / 496.8 MB, free: 9.734 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3302, allocations: 357.9 kB / 497.1 MB, free: 9.379 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.3316, allocations: 0.8519 MB / 498 MB, free: 8.523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.3332, allocations: 1.08 MB / 499.1 MB, free: 7.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.3361, allocations: 1.808 MB / 0.4891 GB, free: 5.492 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3361, allocations: 4 kB / 0.4891 GB, free: 5.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004694/0.3408, allocations: 2.619 MB / 0.4917 GB, free: 2.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3408, allocations: 11.94 kB / 0.4917 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3408, allocations: 4 kB / 0.4917 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00358/0.3444, allocations: 1.303 MB / 0.493 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000984/0.3454, allocations: 215.7 kB / 0.4932 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/0.352, allocations: 6.727 MB / 0.4998 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.3532, allocations: 63.95 kB / 0.4998 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.3533, allocations: 59.97 kB / 0.4999 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00175/0.3551, allocations: 1.105 MB / 0.501 GB, free: 8.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001557/0.3566, allocations: 1.062 MB / 0.502 GB, free: 7.848 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002745/0.3594, allocations: 1.775 MB / 0.5037 GB, free: 6.004 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.27e-06/0.3594, allocations: 0 / 0.5037 GB, free: 6.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004445/0.3639, allocations: 2.498 MB / 0.5062 GB, free: 3.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.3639, allocations: 8 kB / 0.5062 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3639, allocations: 4 kB / 0.5062 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.3664, allocations: 1.023 MB / 0.5072 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3674, allocations: 227.6 kB / 0.5074 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006082/0.3735, allocations: 6.462 MB / 0.5137 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.3746, allocations: 67.94 kB / 0.5138 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.3747, allocations: 60.03 kB / 0.5138 GB, free: 11.26 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.0003722/0.3751, allocations: 272.9 kB / 0.5141 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.3754, allocations: 138.3 kB / 0.5142 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.3805, allocations: 2.795 MB / 0.517 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.3805, allocations: 11.97 kB / 0.517 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3806, allocations: 0 / 0.517 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007904/0.3814, allocations: 431 kB / 0.5174 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/0.3816, allocations: 32.06 kB / 0.5174 GB, free: 7.547 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.3827, allocations: 63.94 kB / 0.5175 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003311/0.383, allocations: 153.1 kB / 0.5176 GB, free: 7.332 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.004517/0.3875, allocations: 1.74 MB / 0.5193 GB, free: 5.582 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