Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 171.2 MB / 187.3 MB, free: 1.148 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004408, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09616, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03424/0.1305, allocations: 21 MB / 293.6 MB, free: 7.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2556/0.3861, allocations: 9.843 MB / 303.4 MB, free: 9.023 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.3876, allocations: 42.78 kB / 303.4 MB, free: 9.023 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.3895, allocations: 417.4 kB / 303.9 MB, free: 9.023 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0068/0.3964, allocations: 1.507 MB / 305.4 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009759/0.4061, allocations: 2.126 MB / 307.5 MB, free: 8.965 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005652/0.4118, allocations: 2.266 MB / 309.7 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002621/0.4145, allocations: 0.9651 MB / 310.7 MB, free: 8.859 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00434/0.4189, allocations: 1.132 MB / 311.8 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003259/0.4222, allocations: 0.9672 MB / 312.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007122/0.423, allocations: 79.59 kB / 312.9 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007175/0.4302, allocations: 1.78 MB / 314.7 MB, free: 8.695 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.4316, allocations: 467 kB / 315.1 MB, free: 8.574 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009973/0.4327, allocations: 282.2 kB / 315.4 MB, free: 8.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007527/0.4402, allocations: 2.276 MB / 317.7 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.4403, allocations: 1.5 kB / 317.7 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4403, allocations: 4 kB / 317.7 MB, free: 7.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.803e-05/0.4404, allocations: 0 / 317.7 MB, free: 7.48 MB / 250.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.009045/0.4495, allocations: 1.772 MB / 319.5 MB, free: 6.324 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.4495, allocations: 6.188 kB / 319.5 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.4506, allocations: 164.8 kB / 319.6 MB, free: 6.25 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01542/0.466, allocations: 0.8765 MB / 320.5 MB, free: 5.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.4664, allocations: 233.5 kB / 320.7 MB, free: 5.629 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004328/0.4668, allocations: 102.6 kB / 320.8 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.4816, allocations: 1.782 MB / 322.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.695e-05/0.4817, allocations: 1.375 kB / 322.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003362/0.482, allocations: 45.27 kB / 322.7 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/0.4823, allocations: 103.9 kB / 322.8 MB, free: 5.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/0.4973, allocations: 1.77 MB / 324.5 MB, free: 4.762 MB / 250.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.02616/0.5235, allocations: 7.005 MB / 331.5 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004236/0.5278, allocations: 1.492 MB / 333 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001381/0.5292, allocations: 0.6593 MB / 333.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.5293, allocations: 53.53 kB / 333.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 4.408e-06/0.5293, allocations: 0 / 333.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=128): time 0.0301/0.5594, allocations: 6.663 MB / 340.4 MB, free: 7.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.5595, allocations: 142.7 kB / 340.5 MB, free: 7.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.5619, allocations: 1.079 MB / 341.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003114/0.5622, allocations: 53.7 kB / 341.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005555/0.5628, allocations: 0.4897 MB / 342.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006426/0.5635, allocations: 434 kB / 342.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.5637, allocations: 28 kB / 342.6 MB, free: 5.707 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.5639, allocations: 370.7 kB / 343 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002524/0.5664, allocations: 0.8354 MB / 343.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/0.5692, allocations: 1.071 MB / 344.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.5718, allocations: 0.8938 MB / 345.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.5718, allocations: 4 kB / 345.8 MB, free: 2.457 MB / 266.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00804/0.5799, allocations: 2.54 MB / 348.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.5801, allocations: 251.6 kB / 348.6 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.5802, allocations: 4 kB / 348.6 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006096/0.5863, allocations: 1.303 MB / 349.9 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001992/0.5883, allocations: 219.7 kB / 350.1 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.5996, allocations: 6.402 MB / 356.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/0.6024, allocations: 99.84 kB / 356.6 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002706/0.6027, allocations: 60.73 kB / 356.6 MB, free: 7.148 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.6027, allocations: 4 kB / 356.6 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007075/0.6098, allocations: 2.168 MB / 358.8 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.6098, allocations: 4 kB / 358.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003241/0.6131, allocations: 0.7673 MB / 359.6 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.6151, allocations: 239.6 kB / 359.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.6264, allocations: 6.881 MB / 366.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.6288, allocations: 91.84 kB / 366.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002795/0.6291, allocations: 55.97 kB / 366.8 MB, free: 12.49 MB / 298.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.001612/0.6307, allocations: 460.7 kB / 367.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000606/0.6313, allocations: 134.4 kB / 367.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/0.643, allocations: 2.803 MB / 370.2 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.131e-05/0.6431, allocations: 11.97 kB / 370.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.6431, allocations: 0 / 370.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/0.645, allocations: 439.1 kB / 370.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005756/0.6456, allocations: 31.98 kB / 370.7 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00301/0.6487, allocations: 95.83 kB / 370.8 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007274/0.6494, allocations: 145.1 kB / 370.9 MB, free: 8.34 MB / 298.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.01086/0.6603, allocations: 1.784 MB / 372.7 MB, free: 6.578 MB / 298.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.