Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 110.7 kB / 18.4 MB, free: 4.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 190 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07439/0.07562, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.172/0.2476, allocations: 30.17 MB / 406 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.261, allocations: 10.25 MB / 416.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008813/0.2619, allocations: 31.78 kB / 416.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.263, allocations: 481.3 kB / 416.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2668, allocations: 1.896 MB / 418.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005838/0.2727, allocations: 2.752 MB / 421.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003553/0.2762, allocations: 3.679 MB / 425.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.2774, allocations: 1.159 MB / 426.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.2794, allocations: 1.522 MB / 427.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.2811, allocations: 1.418 MB / 429.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.2813, allocations: 159.9 kB / 429.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00333/0.2846, allocations: 2.071 MB / 431.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005391/0.2852, allocations: 0.5806 MB / 432 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007785/0.286, allocations: 0.805 MB / 432.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003541/0.2895, allocations: 3.351 MB / 436.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2896, allocations: 0 / 436.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2896, allocations: 3.938 kB / 436.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.2896, allocations: 0 / 436.1 MB, free: 3.266 MB / 350.1 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.0045/0.2941, allocations: 2.041 MB / 438.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.2941, allocations: 8.031 kB / 438.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005109/0.2946, allocations: 170.2 kB / 438.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.296, allocations: 0.9409 MB / 439.3 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.2962, allocations: 238.5 kB / 439.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001989/0.2965, allocations: 103.9 kB / 439.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002876/0.2993, allocations: 1.794 MB / 441.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/0.2994, allocations: 7.938 kB / 441.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.2995, allocations: 35.98 kB / 441.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.2997, allocations: 102 kB / 441.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002921/0.3026, allocations: 1.776 MB / 443.3 MB, free: 11.86 MB / 366.1 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.01098/0.3136, allocations: 6.921 MB / 450.2 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00295/0.3166, allocations: 1.486 MB / 451.7 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.3179, allocations: 0.8783 MB / 452.6 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008334/0.3188, allocations: 0.6529 MB / 453.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.3188, allocations: 43.56 kB / 453.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.685e-06/0.3188, allocations: 0 / 453.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01646/0.3353, allocations: 6.625 MB / 459.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.3354, allocations: 171.5 kB / 460.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.3367, allocations: 1.099 MB / 461.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.3369, allocations: 49.7 kB / 461.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003839/0.3372, allocations: 0.5081 MB / 461.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003506/0.3376, allocations: 433.8 kB / 462.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004868/0.3381, allocations: 263.5 kB / 462.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3382, allocations: 361.9 kB / 462.8 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001429/0.3397, allocations: 0.8441 MB / 463.6 MB, free: 6.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.3413, allocations: 1.084 MB / 464.7 MB, free: 5.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.3441, allocations: 1.808 MB / 466.5 MB, free: 3.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3441, allocations: 0 / 466.5 MB, free: 3.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004619/0.3487, allocations: 2.619 MB / 469.1 MB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3488, allocations: 11.98 kB / 469.2 MB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3488, allocations: 4 kB / 469.2 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003588/0.3524, allocations: 1.299 MB / 470.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000963/0.3534, allocations: 215.6 kB / 470.7 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006533/0.3599, allocations: 6.726 MB / 477.4 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.361, allocations: 63.95 kB / 477.5 MB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.3611, allocations: 59.97 kB / 477.5 MB, free: 8.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001775/0.3629, allocations: 1.109 MB / 478.6 MB, free: 7.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001531/0.3645, allocations: 1.059 MB / 479.7 MB, free: 6.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002725/0.3672, allocations: 1.77 MB / 481.5 MB, free: 4.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.809e-06/0.3672, allocations: 7.938 kB / 481.5 MB, free: 4.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004386/0.3716, allocations: 2.506 MB / 484 MB, free: 1.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.3716, allocations: 8 kB / 484 MB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3716, allocations: 4 kB / 484 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002445/0.3741, allocations: 1.024 MB / 485 MB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3751, allocations: 231.6 kB / 485.2 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006011/0.3811, allocations: 6.465 MB / 491.7 MB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.3822, allocations: 71.94 kB / 491.8 MB, free: 9.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.3823, allocations: 55.97 kB / 491.8 MB, free: 9.621 MB / 414.1 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 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003581/0.3827, allocations: 264.1 kB / 492.1 MB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.383, allocations: 134.3 kB / 492.2 MB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/0.388, allocations: 2.803 MB / 495 MB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.3881, allocations: 7.969 kB / 495 MB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3881, allocations: 0 / 495 MB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006211/0.3887, allocations: 435 kB / 495.4 MB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.3889, allocations: 24 kB / 495.5 MB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.39, allocations: 67.94 kB / 495.5 MB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003137/0.3903, allocations: 149 kB / 495.7 MB, free: 5.707 MB / 414.1 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.004408/0.3947, allocations: 1.752 MB / 497.4 MB, free: 3.941 MB / 414.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Fluid.Examples.Tanks.TanksWithOverflow could not be translated