Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 183 kB / 17.91 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.185/1.185, allocations: 205.1 MB / 223.7 MB, free: 8.492 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.0008993/0.0008993, allocations: 97.53 kB / 271.2 MB, free: 8.449 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007106/0.0007107, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1963, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02068/0.2171, allocations: 30.28 MB / 404.1 MB, free: 19.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.2324, allocations: 15.74 MB / 419.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002439/0.2348, allocations: 63.5 kB / 419.9 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.2367, allocations: 0.5168 MB / 420.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005171/0.242, allocations: 2.155 MB / 422.6 MB, free: 0.625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007463/0.2495, allocations: 3.17 MB / 425.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006172/0.2557, allocations: 6.171 MB / 431.9 MB, free: 7.281 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001831/0.2575, allocations: 1.023 MB / 432.9 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.2601, allocations: 1.354 MB / 434.3 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002312/0.2624, allocations: 1.662 MB / 436 MB, free: 3.207 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003665/0.2628, allocations: 92 kB / 436 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004293/0.2671, allocations: 2.355 MB / 438.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007353/0.2679, allocations: 0.5452 MB / 438.9 MB, free: 216 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.2691, allocations: 0.8047 MB / 439.8 MB, free: 15.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005514/0.2747, allocations: 3.643 MB / 443.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2747, allocations: 4 kB / 443.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2747, allocations: 0 / 443.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.743e-05/0.2748, allocations: 0 / 443.4 MB, free: 11.74 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005745/0.2805, allocations: 2.2 MB / 445.6 MB, free: 9.488 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2806, allocations: 8.031 kB / 445.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005097/0.2811, allocations: 178 kB / 445.8 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.2827, allocations: 0.995 MB / 446.8 MB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.2828, allocations: 183 kB / 447 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.283, allocations: 95.97 kB / 447 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.2854, allocations: 1.765 MB / 448.8 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2855, allocations: 0 / 448.8 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.2856, allocations: 47.91 kB / 448.9 MB, free: 6.109 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.2857, allocations: 113.9 kB / 449 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002496/0.2882, allocations: 1.784 MB / 450.8 MB, free: 4.203 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.01059/0.2988, allocations: 6.711 MB / 457.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.3006, allocations: 1.238 MB / 458.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3016, allocations: 0.769 MB / 459.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005376/0.307, allocations: 4.259 MB / 463.7 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3071, allocations: 51.56 kB / 463.8 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000647/0.3077, allocations: 206.6 kB / 464 MB, free: 6.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 2.735e-06/0.3077, allocations: 0 / 464 MB, free: 6.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01673/0.3245, allocations: 5.683 MB / 469.7 MB, free: 464 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.3246, allocations: 145.5 kB / 469.8 MB, free: 288 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.3261, allocations: 1.253 MB / 471.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.505e-05/0.3262, allocations: 53.69 kB / 471.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.3266, allocations: 0.6052 MB / 471.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.3269, allocations: 390.5 kB / 472.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004469/0.3273, allocations: 291.3 kB / 472.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/0.3274, allocations: 309.1 kB / 472.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.3285, allocations: 0.7192 MB / 473.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3298, allocations: 1.06 MB / 474.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002306/0.3321, allocations: 1.751 MB / 476.2 MB, free: 9.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.3321, allocations: 4 kB / 476.2 MB, free: 9.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003616/0.3357, allocations: 2.292 MB / 478.5 MB, free: 7.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.3358, allocations: 10.03 kB / 478.5 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3358, allocations: 15.97 kB / 478.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006481/0.3423, allocations: 1.278 MB / 479.8 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.3434, allocations: 299.5 kB / 480.1 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/0.3456, allocations: 1.602 MB / 481.7 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.3468, allocations: 79.8 kB / 481.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.3469, allocations: 75.91 kB / 481.9 MB, free: 3.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001424/0.3484, allocations: 0.984 MB / 482.8 MB, free: 2.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001235/0.3496, allocations: 1.047 MB / 483.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002196/0.3518, allocations: 1.726 MB / 485.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.939e-06/0.3518, allocations: 4 kB / 485.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003431/0.3553, allocations: 2.195 MB / 487.8 MB, free: 13.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3553, allocations: 12 kB / 487.8 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3553, allocations: 8 kB / 487.8 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005777/0.3611, allocations: 1.101 MB / 488.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.3622, allocations: 307.5 kB / 489.2 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.364, allocations: 1.45 MB / 490.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.3652, allocations: 91.78 kB / 490.8 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.3654, allocations: 67.97 kB / 490.8 MB, free: 10.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0004265/0.3658, allocations: 271.8 kB / 491.1 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000337/0.3661, allocations: 150.2 kB / 491.3 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003901/0.3701, allocations: 2.088 MB / 493.3 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.3701, allocations: 12 kB / 493.4 MB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3701, allocations: 4 kB / 493.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.3701, allocations: 11.97 kB / 493.4 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005385/0.3755, allocations: 3.571 MB / 496.9 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3755, allocations: 0 / 496.9 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.3764, allocations: 203.6 kB / 497.1 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003509/0.3799, allocations: 0.9885 MB / 498.1 MB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-05/0.38, allocations: 35.98 kB / 498.2 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/0.3819, allocations: 1.611 MB / 499.8 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3819, allocations: 0 / 499.8 MB, free: 1.504 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: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5133/0.8952, allocations: 38.71 MB / 0.5259 GB, free: 86.59 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.