Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_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_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001794/0.001794, allocations: 178.6 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.538/2.538, allocations: 205.4 MB / 223.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 88.98 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004722/0.0004722, allocations: 8 kB / 328.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5053/0.5058, allocations: 47.57 MB / 375.8 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03684/0.5428, allocations: 28.91 MB / 404.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01936/0.5622, allocations: 9.823 MB / 414.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003047/0.5653, allocations: 43.69 kB / 414.5 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.5674, allocations: 397.5 kB / 414.9 MB, free: 9.465 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007988/0.5754, allocations: 1.777 MB / 416.7 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009323/0.5848, allocations: 2.14 MB / 418.8 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007241/0.592, allocations: 4.322 MB / 423.2 MB, free: 1.215 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002647/0.5947, allocations: 1.004 MB / 424.2 MB, free: 204 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004542/0.5993, allocations: 1.312 MB / 425.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.603, allocations: 1.339 MB / 426.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.6034, allocations: 80 kB / 426.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006938/0.6103, allocations: 1.903 MB / 428.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.6114, allocations: 0.4946 MB / 429.3 MB, free: 11.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001908/0.6133, allocations: 0.7173 MB / 430 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006107/0.6195, allocations: 2.37 MB / 432.4 MB, free: 7.957 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.899e-06/0.6195, allocations: 8 kB / 432.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.909e-06/0.6195, allocations: 0 / 432.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.652e-05/0.6196, allocations: 0 / 432.4 MB, free: 7.949 MB / 314.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.006338/0.6259, allocations: 1.772 MB / 434.2 MB, free: 6.125 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.115e-05/0.626, allocations: 12.02 kB / 434.2 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005707/0.6266, allocations: 166.2 kB / 434.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.6284, allocations: 0.8901 MB / 435.2 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.6288, allocations: 238.5 kB / 435.5 MB, free: 4.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/0.629, allocations: 108 kB / 435.6 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003494/0.6325, allocations: 1.779 MB / 437.3 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.6326, allocations: 4 kB / 437.3 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.6327, allocations: 47.97 kB / 437.4 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/0.6329, allocations: 102 kB / 437.5 MB, free: 2.656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00342/0.6363, allocations: 1.768 MB / 439.3 MB, free: 0.8789 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.01535/0.6517, allocations: 6.948 MB / 446.2 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003252/0.655, allocations: 1.501 MB / 447.7 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001685/0.6567, allocations: 0.8749 MB / 448.6 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/0.6579, allocations: 0.6607 MB / 449.2 MB, free: 6.453 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.098e-05/0.658, allocations: 47.5 kB / 449.3 MB, free: 6.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.298e-06/0.658, allocations: 0 / 449.3 MB, free: 6.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.02063/0.6786, allocations: 6.656 MB / 455.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002104/0.6789, allocations: 171.5 kB / 456.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002866/0.6818, allocations: 1.088 MB / 457.2 MB, free: 14.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002101/0.682, allocations: 53.7 kB / 457.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008087/0.6829, allocations: 0.5042 MB / 457.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007682/0.6837, allocations: 437.7 kB / 458.2 MB, free: 13.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.6838, allocations: 24 kB / 458.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003208/0.6842, allocations: 365.9 kB / 458.6 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/0.6862, allocations: 0.8198 MB / 459.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.6884, allocations: 1.068 MB / 460.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003852/0.6923, allocations: 1.784 MB / 462.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.6923, allocations: 3.984 kB / 462.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005925/0.6983, allocations: 2.588 MB / 464.8 MB, free: 6.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003141/0.6986, allocations: 234.7 kB / 465.1 MB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.6986, allocations: 7.984 kB / 465.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004124/0.7028, allocations: 1.283 MB / 466.3 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.7038, allocations: 223.7 kB / 466.6 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009728/0.7136, allocations: 6.361 MB / 472.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/0.7157, allocations: 91.91 kB / 473 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.7161, allocations: 59.97 kB / 473.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.7161, allocations: 4 kB / 473.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006085/0.7222, allocations: 2.33 MB / 475.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.7223, allocations: 4 kB / 475.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002992/0.7253, allocations: 1.027 MB / 476.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.7264, allocations: 227.7 kB / 476.7 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0092/0.7356, allocations: 6.113 MB / 482.8 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/0.7379, allocations: 84 kB / 482.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004244/0.7383, allocations: 59.97 kB / 482.9 MB, free: 3.594 MB / 362.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.001651/0.74, allocations: 465.4 kB / 483.4 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007239/0.7407, allocations: 142.2 kB / 483.5 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007074/0.7478, allocations: 2.794 MB / 486.3 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.834e-05/0.7479, allocations: 7.969 kB / 486.3 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.7479, allocations: 3.938 kB / 486.3 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.7494, allocations: 451.2 kB / 486.8 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004991/0.7499, allocations: 28 kB / 486.8 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.7515, allocations: 91.84 kB / 486.9 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004697/0.752, allocations: 157 kB / 487 MB, free: 15.43 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.005633/0.7576, allocations: 1.772 MB / 488.8 MB, free: 13.64 MB / 378.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.