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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0009508/0.0009508, allocations: 102.3 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 43.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2026, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02172/0.2243, allocations: 31.51 MB / 405.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.2367, allocations: 10.8 MB / 416.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.2381, allocations: 47.62 kB / 416.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.2393, allocations: 417.7 kB / 416.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003442/0.2427, allocations: 1.731 MB / 418.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004312/0.2471, allocations: 2.317 MB / 420.6 MB, free: 2.562 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.2511, allocations: 5.224 MB / 425.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.2527, allocations: 1.032 MB / 426.9 MB, free: 12.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002468/0.2552, allocations: 1.319 MB / 428.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.2574, allocations: 1.413 MB / 429.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.2577, allocations: 88 kB / 429.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.2614, allocations: 1.993 MB / 431.7 MB, free: 7.457 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006488/0.262, allocations: 0.5102 MB / 432.2 MB, free: 6.945 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.2631, allocations: 0.7425 MB / 433 MB, free: 6.199 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004484/0.2676, allocations: 3.261 MB / 436.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.2676, allocations: 0 / 436.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.047e-05/0.2677, allocations: 0 / 436.2 MB, free: 2.93 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.004766/0.2724, allocations: 2.045 MB / 438.3 MB, free: 0.832 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.2725, allocations: 12.03 kB / 438.3 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000489/0.273, allocations: 170.2 kB / 438.4 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.2744, allocations: 0.8902 MB / 439.3 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.2746, allocations: 238.5 kB / 439.6 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.2748, allocations: 99.89 kB / 439.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00252/0.2773, allocations: 1.798 MB / 441.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.2773, allocations: 3.938 kB / 441.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.2775, allocations: 43.98 kB / 441.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.2776, allocations: 106 kB / 441.6 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.2802, allocations: 1.772 MB / 443.4 MB, free: 11.56 MB / 330.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.009833/0.29, allocations: 6.913 MB / 450.3 MB, free: 4.352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002345/0.2924, allocations: 1.497 MB / 451.8 MB, free: 2.848 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.2937, allocations: 0.8783 MB / 452.7 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007578/0.2944, allocations: 0.649 MB / 453.3 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.2945, allocations: 47.56 kB / 453.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 2.825e-06/0.2945, allocations: 0 / 453.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.01486/0.3094, allocations: 6.616 MB / 460 MB, free: 10.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/0.3095, allocations: 171.5 kB / 460.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/0.3107, allocations: 1.099 MB / 461.3 MB, free: 9.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.317e-05/0.3108, allocations: 49.7 kB / 461.3 MB, free: 9.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.3112, allocations: 0.5043 MB / 461.8 MB, free: 8.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003306/0.3115, allocations: 429.8 kB / 462.2 MB, free: 8.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004538/0.312, allocations: 271.5 kB / 462.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3121, allocations: 357.9 kB / 462.8 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.3134, allocations: 0.848 MB / 463.7 MB, free: 6.613 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.3148, allocations: 1.076 MB / 464.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.3174, allocations: 1.812 MB / 466.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3174, allocations: 0 / 466.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004071/0.3215, allocations: 2.619 MB / 469.2 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3215, allocations: 15.88 kB / 469.2 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3215, allocations: 7.984 kB / 469.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003249/0.3248, allocations: 1.304 MB / 470.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008389/0.3256, allocations: 215.7 kB / 470.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005908/0.3315, allocations: 6.347 MB / 477.1 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.3328, allocations: 83.91 kB / 477.2 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.3329, allocations: 59.97 kB / 477.2 MB, free: 8.547 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001684/0.3346, allocations: 1.106 MB / 478.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00143/0.3361, allocations: 1.066 MB / 479.4 MB, free: 6.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002506/0.3386, allocations: 1.77 MB / 481.2 MB, free: 4.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.919e-06/0.3386, allocations: 8 kB / 481.2 MB, free: 4.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.00403/0.3426, allocations: 2.487 MB / 483.7 MB, free: 1.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.3427, allocations: 8 kB / 483.7 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.3427, allocations: 4.188 kB / 483.7 MB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002302/0.345, allocations: 1.035 MB / 484.7 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009044/0.3459, allocations: 227.7 kB / 484.9 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005466/0.3514, allocations: 6.084 MB / 491 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.3526, allocations: 99.84 kB / 491.1 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.3528, allocations: 59.97 kB / 491.2 MB, free: 10.06 MB / 378.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 (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.0004369/0.3532, allocations: 271.8 kB / 491.4 MB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.3535, allocations: 130.4 kB / 491.6 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/0.3581, allocations: 2.802 MB / 494.4 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-05/0.3581, allocations: 15.94 kB / 494.4 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3582, allocations: 4 kB / 494.4 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.3582, allocations: 7.969 kB / 494.4 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006737/0.3649, allocations: 4.522 MB / 498.9 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.3649, allocations: 3.938 kB / 498.9 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.3657, allocations: 171.7 kB / 499.1 MB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003058/0.3688, allocations: 1.296 MB / 0.4886 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.3689, allocations: 39.97 kB / 0.4887 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1457/0.5146, allocations: 6.366 MB / 0.4949 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5146, allocations: 0 / 0.4949 GB, free: 108.8 MB / 378.7 MB Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3136/0.8282, allocations: 59.45 MB / 0.553 GB, free: 57.66 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.