Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.614/1.614, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003358, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07778/0.07813, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03268/0.1109, allocations: 21 MB / 293.6 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.237/0.3479, allocations: 9.855 MB / 303.5 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.3492, allocations: 42.38 kB / 303.5 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.3508, allocations: 417 kB / 303.9 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005545/0.3563, allocations: 1.503 MB / 305.4 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008511/0.3649, allocations: 2.121 MB / 307.6 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004835/0.3697, allocations: 2.269 MB / 309.8 MB, free: 9.629 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.3717, allocations: 0.9581 MB / 310.8 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00314/0.3749, allocations: 1.127 MB / 311.9 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.3773, allocations: 0.9629 MB / 312.9 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003846/0.3777, allocations: 83.66 kB / 313 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005568/0.3833, allocations: 1.78 MB / 314.7 MB, free: 9.305 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009875/0.3843, allocations: 461.8 kB / 315.2 MB, free: 9.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007329/0.3851, allocations: 284.5 kB / 315.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005212/0.3903, allocations: 2.282 MB / 317.7 MB, free: 8.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3903, allocations: 0 / 317.7 MB, free: 8.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3904, allocations: 0 / 317.7 MB, free: 8.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.3904, allocations: 3.281 kB / 317.7 MB, free: 8.09 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.006569/0.397, allocations: 1.768 MB / 319.5 MB, free: 6.934 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.397, allocations: 7.656 kB / 319.5 MB, free: 6.934 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006564/0.3977, allocations: 166.3 kB / 319.7 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.3997, allocations: 0.871 MB / 320.6 MB, free: 6.379 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002123/0.3999, allocations: 238.3 kB / 320.8 MB, free: 6.211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.4002, allocations: 101.4 kB / 320.9 MB, free: 6.207 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004254/0.4045, allocations: 1.785 MB / 322.7 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.045e-05/0.4046, allocations: 0 / 322.7 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000221/0.4048, allocations: 49.03 kB / 322.7 MB, free: 5.656 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001948/0.405, allocations: 97.7 kB / 322.8 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00442/0.4094, allocations: 1.77 MB / 324.6 MB, free: 5.324 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.01696/0.4264, allocations: 7.001 MB / 331.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004168/0.4306, allocations: 1.498 MB / 333.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.432, allocations: 0.6572 MB / 333.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.432, allocations: 47.56 kB / 333.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.977e-06/0.432, allocations: 0 / 333.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=128): time 0.02867/0.4607, allocations: 6.667 MB / 340.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.4609, allocations: 149.8 kB / 340.6 MB, free: 7.547 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.4631, allocations: 1.079 MB / 341.7 MB, free: 6.449 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.4633, allocations: 49.7 kB / 341.7 MB, free: 6.395 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006112/0.4639, allocations: 0.5024 MB / 342.2 MB, free: 5.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006116/0.4645, allocations: 435.1 kB / 342.7 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.4647, allocations: 32 kB / 342.7 MB, free: 5.438 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.4649, allocations: 361.9 kB / 343 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.4674, allocations: 0.8315 MB / 343.9 MB, free: 4.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/0.4701, allocations: 1.069 MB / 344.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.4726, allocations: 0.8945 MB / 345.8 MB, free: 2.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.4727, allocations: 0 / 345.8 MB, free: 2.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007865/0.4805, allocations: 2.617 MB / 348.5 MB, free: 15.56 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002083/0.4808, allocations: 247.1 kB / 348.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.4808, allocations: 4 kB / 348.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005925/0.4867, allocations: 1.303 MB / 350 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.4887, allocations: 215.7 kB / 350.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.4996, allocations: 6.405 MB / 356.6 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/0.5021, allocations: 99.83 kB / 356.7 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002262/0.5023, allocations: 59.97 kB / 356.8 MB, free: 6.824 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.5024, allocations: 4.625 kB / 356.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006855/0.5092, allocations: 2.166 MB / 358.9 MB, free: 4.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.5093, allocations: 7.938 kB / 359 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003327/0.5126, allocations: 0.7914 MB / 359.7 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001957/0.5146, allocations: 239.6 kB / 360 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.5246, allocations: 6.86 MB / 366.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.5267, allocations: 87.84 kB / 366.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/0.5269, allocations: 55.98 kB / 367 MB, free: 12.16 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.001143/0.5281, allocations: 456.6 kB / 367.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003774/0.5284, allocations: 138.4 kB / 367.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008496/0.537, allocations: 2.803 MB / 370.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.537, allocations: 7.969 kB / 370.4 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.537, allocations: 4 kB / 370.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/0.5383, allocations: 435.1 kB / 370.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004082/0.5387, allocations: 31.95 kB / 370.8 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001974/0.5407, allocations: 95.86 kB / 370.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004984/0.5412, allocations: 149.1 kB / 371.1 MB, free: 8.016 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.007695/0.5489, allocations: 1.786 MB / 372.9 MB, free: 6.254 MB / 298.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.