Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002362/0.002362, allocations: 197.7 kB / 18.05 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.889/1.889, allocations: 226.5 MB / 245.3 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009117/0.0009113, allocations: 92.66 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.000389, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3979, allocations: 51.31 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02453/0.4225, allocations: 28.97 MB / 437.7 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.4424, allocations: 9.834 MB / 447.5 MB, free: 4.797 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002763/0.4452, allocations: 43.62 kB / 447.5 MB, free: 4.754 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.4477, allocations: 401.5 kB / 447.9 MB, free: 4.359 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008057/0.4558, allocations: 1.788 MB / 449.7 MB, free: 2.562 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008975/0.4648, allocations: 2.138 MB / 451.9 MB, free: 444 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007358/0.4722, allocations: 4.336 MB / 456.2 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003004/0.4752, allocations: 1.004 MB / 457.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004687/0.4799, allocations: 1.316 MB / 458.5 MB, free: 9.738 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003765/0.4837, allocations: 1.347 MB / 459.9 MB, free: 8.387 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008537/0.4846, allocations: 80 kB / 459.9 MB, free: 8.309 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006888/0.4915, allocations: 1.919 MB / 461.9 MB, free: 6.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001626/0.4932, allocations: 498.5 kB / 462.3 MB, free: 5.898 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002882/0.4961, allocations: 0.7251 MB / 463.1 MB, free: 5.164 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005952/0.5021, allocations: 2.374 MB / 465.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.5021, allocations: 4 kB / 465.4 MB, free: 2.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.5021, allocations: 0 / 465.4 MB, free: 2.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.878e-05/0.5022, allocations: 4 kB / 465.5 MB, free: 2.781 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006646/0.5089, allocations: 1.78 MB / 467.2 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.509, allocations: 11.97 kB / 467.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009773/0.5099, allocations: 162.2 kB / 467.4 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.5122, allocations: 0.894 MB / 468.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.5125, allocations: 238.5 kB / 468.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004142/0.5129, allocations: 95.98 kB / 468.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003867/0.5168, allocations: 1.779 MB / 470.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.165e-05/0.5169, allocations: 11.86 kB / 470.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/0.5171, allocations: 47.97 kB / 470.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001658/0.5172, allocations: 106 kB / 470.6 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003459/0.5207, allocations: 1.768 MB / 472.3 MB, free: 11.7 MB / 346.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.01407/0.5348, allocations: 6.956 MB / 479.3 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002914/0.5378, allocations: 1.493 MB / 480.8 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.5393, allocations: 0.8849 MB / 481.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001068/0.5404, allocations: 0.6607 MB / 482.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.106e-05/0.5405, allocations: 43.56 kB / 482.4 MB, free: 1.223 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 5.099e-06/0.5405, allocations: 4 kB / 482.4 MB, free: 1.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=128): time 0.01887/0.5594, allocations: 6.652 MB / 489 MB, free: 10.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.5596, allocations: 167.5 kB / 489.2 MB, free: 10.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002508/0.5622, allocations: 1.099 MB / 490.3 MB, free: 9.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.5624, allocations: 49.7 kB / 490.3 MB, free: 9.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005794/0.563, allocations: 0.4888 MB / 490.8 MB, free: 8.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000626/0.5636, allocations: 445.7 kB / 491.3 MB, free: 8.133 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.5638, allocations: 28 kB / 491.3 MB, free: 8.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.564, allocations: 361.9 kB / 491.6 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.5657, allocations: 0.8237 MB / 492.5 MB, free: 6.922 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001797/0.5675, allocations: 1.065 MB / 493.5 MB, free: 5.781 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.5704, allocations: 1.784 MB / 495.3 MB, free: 3.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.5705, allocations: 0 / 495.3 MB, free: 3.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005298/0.5758, allocations: 2.588 MB / 497.9 MB, free: 1.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002417/0.576, allocations: 235.8 kB / 498.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.5761, allocations: 4 kB / 498.1 MB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/0.58, allocations: 1.288 MB / 499.4 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.581, allocations: 215.6 kB / 499.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00832/0.5894, allocations: 6.352 MB / 0.4941 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/0.5921, allocations: 103.8 kB / 0.4942 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004268/0.5925, allocations: 67.95 kB / 0.4943 GB, free: 8.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.5926, allocations: 4 kB / 0.4943 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007075/0.5996, allocations: 2.338 MB / 0.4966 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.5997, allocations: 7.938 kB / 0.4966 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003593/0.6033, allocations: 1.019 MB / 0.4976 GB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.6048, allocations: 231.6 kB / 0.4978 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3463/0.9511, allocations: 6.087 MB / 0.5037 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/0.9534, allocations: 95.78 kB / 0.5038 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.9537, allocations: 59.5 kB / 0.5039 GB, free: 94.19 MB / 378.7 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 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001241/0.955, allocations: 457.5 kB / 0.5043 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/0.9554, allocations: 139.8 kB / 0.5045 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00606/0.9615, allocations: 2.795 MB / 0.5072 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.703e-05/0.9615, allocations: 7.125 kB / 0.5072 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.9615, allocations: 1.375 kB / 0.5072 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009613/0.9625, allocations: 445.8 kB / 0.5076 GB, free: 93.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.9627, allocations: 26.88 kB / 0.5077 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.9638, allocations: 95.94 kB / 0.5077 GB, free: 93.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000411/0.9642, allocations: 151.2 kB / 0.5079 GB, free: 93.14 MB / 378.7 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.004288/0.9685, allocations: 1.789 MB / 0.5096 GB, free: 92.54 MB / 378.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.