Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.099/2.099, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003674, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 44.51 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03682/0.1456, allocations: 21 MB / 330 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02169/0.1674, allocations: 9.88 MB / 339.9 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.169, allocations: 43.62 kB / 339.9 MB, free: 2.047 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.1709, allocations: 421.8 kB / 340.3 MB, free: 1.633 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006359/0.1773, allocations: 1.492 MB / 341.8 MB, free: 140 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008928/0.1862, allocations: 2.12 MB / 343.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005358/0.1916, allocations: 2.266 MB / 346.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.194, allocations: 0.9646 MB / 347.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003467/0.1975, allocations: 1.122 MB / 348.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.2002, allocations: 0.9813 MB / 349.3 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004347/0.2007, allocations: 80 kB / 349.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006264/0.207, allocations: 1.775 MB / 351.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001409/0.2084, allocations: 462.8 kB / 351.6 MB, free: 6.348 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007852/0.2093, allocations: 285 kB / 351.9 MB, free: 6.062 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006337/0.2156, allocations: 2.284 MB / 354.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2157, allocations: 0 / 354.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.2157, allocations: 0 / 354.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.647e-05/0.2157, allocations: 0 / 354.1 MB, free: 3.777 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.007834/0.2236, allocations: 1.765 MB / 355.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.2237, allocations: 11.97 kB / 355.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.2247, allocations: 166.2 kB / 356.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/0.2275, allocations: 0.8751 MB / 356.9 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/0.2278, allocations: 230.5 kB / 357.2 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003375/0.2281, allocations: 107.9 kB / 357.3 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005036/0.2332, allocations: 1.79 MB / 359.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.395e-05/0.2333, allocations: 4 kB / 359.1 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002435/0.2335, allocations: 43.97 kB / 359.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002225/0.2338, allocations: 97.98 kB / 359.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005259/0.2391, allocations: 1.768 MB / 361 MB, free: 12.73 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.02199/0.2611, allocations: 7.007 MB / 368 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004927/0.2661, allocations: 1.486 MB / 369.5 MB, free: 3.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001377/0.2675, allocations: 0.6568 MB / 370.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/0.2676, allocations: 43.56 kB / 370.2 MB, free: 3.086 MB / 314.7 MB Notification: Performance of pre-optimization done (n=116): time 7.524e-06/0.2676, allocations: 3.984 kB / 370.2 MB, free: 3.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=128): time 0.2952/0.5628, allocations: 6.666 MB / 376.8 MB, free: 62.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.5629, allocations: 173.7 kB / 377 MB, free: 62.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/0.5654, allocations: 1.083 MB / 378.1 MB, free: 62.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004679/0.566, allocations: 51.83 kB / 378.1 MB, free: 62.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004416/0.5664, allocations: 0.4914 MB / 378.6 MB, free: 61.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/0.5671, allocations: 435.8 kB / 379.1 MB, free: 61.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.5673, allocations: 31.31 kB / 379.1 MB, free: 61.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5674, allocations: 362.3 kB / 379.4 MB, free: 60.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.5701, allocations: 0.8339 MB / 380.3 MB, free: 60.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.573, allocations: 1.084 MB / 381.4 MB, free: 60.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.576, allocations: 0.8941 MB / 382.3 MB, free: 59.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.5761, allocations: 1.406 kB / 382.3 MB, free: 59.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00824/0.5843, allocations: 2.551 MB / 384.8 MB, free: 58.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/0.5846, allocations: 245.3 kB / 385.1 MB, free: 58.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.5846, allocations: 5.219 kB / 385.1 MB, free: 58.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006041/0.5906, allocations: 1.301 MB / 386.4 MB, free: 58.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/0.5927, allocations: 217.8 kB / 386.6 MB, free: 58.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009251/0.602, allocations: 6.403 MB / 393 MB, free: 52.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.6047, allocations: 94.42 kB / 393.1 MB, free: 52.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002481/0.6049, allocations: 63.5 kB / 393.1 MB, free: 52.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.605, allocations: 3.969 kB / 393.1 MB, free: 52.69 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00638/0.6114, allocations: 2.175 MB / 395.3 MB, free: 51.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.6114, allocations: 3.938 kB / 395.3 MB, free: 51.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003032/0.6145, allocations: 0.7679 MB / 396.1 MB, free: 51.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/0.6165, allocations: 235.4 kB / 396.3 MB, free: 51.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008424/0.625, allocations: 6.871 MB / 403.2 MB, free: 44.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.6269, allocations: 87.56 kB / 403.3 MB, free: 44.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.6271, allocations: 63.91 kB / 403.3 MB, free: 44.19 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.001171/0.6283, allocations: 448.6 kB / 403.8 MB, free: 43.74 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00044/0.6287, allocations: 138.4 kB / 403.9 MB, free: 43.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007737/0.6365, allocations: 2.802 MB / 406.7 MB, free: 40.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.188e-05/0.6366, allocations: 13.8 kB / 406.7 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.6366, allocations: 4 kB / 406.7 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/0.638, allocations: 439.1 kB / 407.1 MB, free: 40.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004207/0.6384, allocations: 28 kB / 407.2 MB, free: 40.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/0.6404, allocations: 107.8 kB / 407.3 MB, free: 40.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004636/0.6409, allocations: 145.1 kB / 407.4 MB, free: 40.07 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.007532/0.6484, allocations: 1.78 MB / 409.2 MB, free: 38.3 MB / 314.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.