Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.035/2.035, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003348, allocations: 8 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.08979, allocations: 44.51 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.0334/0.1232, allocations: 21 MB / 330.1 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02093/0.1442, allocations: 9.876 MB / 339.9 MB, free: 1.406 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.1457, allocations: 43.62 kB / 340 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.1474, allocations: 417.8 kB / 340.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006/0.1535, allocations: 1.499 MB / 341.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008458/0.1619, allocations: 2.112 MB / 344 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004971/0.1669, allocations: 2.27 MB / 346.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002115/0.1691, allocations: 0.9529 MB / 347.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003178/0.1723, allocations: 1.133 MB / 348.4 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.1749, allocations: 0.9696 MB / 349.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004422/0.1754, allocations: 80 kB / 349.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005524/0.1809, allocations: 1.771 MB / 351.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.182, allocations: 466.8 kB / 351.6 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000616/0.1826, allocations: 285 kB / 351.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005586/0.1882, allocations: 2.28 MB / 354.2 MB, free: 3.109 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1883, allocations: 0 / 354.2 MB, free: 3.109 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1883, allocations: 0 / 354.2 MB, free: 3.109 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.992e-05/0.1883, allocations: 0 / 354.2 MB, free: 3.109 MB / 298.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.007365/0.1957, allocations: 1.765 MB / 356 MB, free: 1.293 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1958, allocations: 11.97 kB / 356 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008314/0.1966, allocations: 170.2 kB / 356.1 MB, free: 1.113 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002498/0.1991, allocations: 0.8712 MB / 357 MB, free: 204 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/0.1995, allocations: 238.5 kB / 357.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003277/0.1998, allocations: 107.8 kB / 357.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004891/0.2047, allocations: 1.779 MB / 359.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.117e-05/0.2048, allocations: 7.938 kB / 359.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002328/0.205, allocations: 39.98 kB / 359.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002307/0.2053, allocations: 106 kB / 359.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005132/0.2104, allocations: 1.761 MB / 361 MB, free: 12.07 MB / 314.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.02035/0.2308, allocations: 7.011 MB / 368 MB, free: 4.754 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004642/0.2355, allocations: 1.494 MB / 369.5 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.2368, allocations: 0.6529 MB / 370.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.2369, allocations: 51.56 kB / 370.2 MB, free: 2.406 MB / 314.7 MB Notification: Performance of pre-optimization done (n=116): time 4.228e-06/0.2369, allocations: 0 / 370.2 MB, free: 2.406 MB / 314.7 MB Notification: Performance of matching and sorting (n=128): time 0.2675/0.5045, allocations: 6.661 MB / 376.9 MB, free: 62.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.5046, allocations: 172.6 kB / 377.1 MB, free: 62.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.5068, allocations: 1.082 MB / 378.2 MB, free: 62.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003638/0.5072, allocations: 51.92 kB / 378.2 MB, free: 62.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.5077, allocations: 0.4992 MB / 378.7 MB, free: 61.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006041/0.5083, allocations: 439.9 kB / 379.1 MB, free: 61.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.5085, allocations: 25.72 kB / 379.2 MB, free: 61.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.5086, allocations: 365.7 kB / 379.5 MB, free: 61.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.5111, allocations: 0.8358 MB / 380.4 MB, free: 60.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002689/0.5139, allocations: 1.077 MB / 381.4 MB, free: 60.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002652/0.5166, allocations: 0.8916 MB / 382.3 MB, free: 59.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.5166, allocations: 1.156 kB / 382.3 MB, free: 59.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007794/0.5244, allocations: 2.614 MB / 384.9 MB, free: 58.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001438/0.5246, allocations: 249.8 kB / 385.2 MB, free: 58.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.5246, allocations: 9.359 kB / 385.2 MB, free: 58.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005717/0.5303, allocations: 1.308 MB / 386.5 MB, free: 58.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.5322, allocations: 211.2 kB / 386.7 MB, free: 58.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008753/0.541, allocations: 6.403 MB / 393.1 MB, free: 52.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/0.5436, allocations: 103.2 kB / 393.2 MB, free: 52.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002294/0.5438, allocations: 61.94 kB / 393.3 MB, free: 52.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.5439, allocations: 3.969 kB / 393.3 MB, free: 52.58 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006149/0.55, allocations: 2.167 MB / 395.4 MB, free: 51.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.5501, allocations: 3.719 kB / 395.4 MB, free: 51.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/0.5532, allocations: 0.7921 MB / 396.2 MB, free: 51.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/0.5552, allocations: 239.6 kB / 396.5 MB, free: 50.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007938/0.5632, allocations: 6.853 MB / 403.3 MB, free: 43.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.5654, allocations: 95.41 kB / 403.4 MB, free: 43.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/0.5656, allocations: 58.88 kB / 403.5 MB, free: 43.53 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (128): * Single equations (assignments): 123 * 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.001008/0.5666, allocations: 452.7 kB / 403.9 MB, free: 43.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003792/0.567, allocations: 138.3 kB / 404 MB, free: 42.94 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007482/0.5745, allocations: 2.797 MB / 406.8 MB, free: 40.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.654e-05/0.5746, allocations: 7.969 kB / 406.9 MB, free: 40.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.5746, allocations: 0 / 406.9 MB, free: 40.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.576, allocations: 443.1 kB / 407.3 MB, free: 39.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004447/0.5764, allocations: 30.75 kB / 407.3 MB, free: 39.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/0.5784, allocations: 107.8 kB / 407.4 MB, free: 39.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004837/0.5789, allocations: 153 kB / 407.6 MB, free: 39.39 MB / 314.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.007373/0.5863, allocations: 1.781 MB / 409.4 MB, free: 37.63 MB / 314.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.