Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009899/0.0009897, allocations: 105.9 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000877/0.0008771, allocations: 43.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2431, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02081/0.2639, allocations: 30.26 MB / 429.7 MB, free: 3.023 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02185/0.2858, allocations: 15.75 MB / 445.5 MB, free: 3.238 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002708/0.2886, allocations: 63.5 kB / 445.5 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.2908, allocations: 0.5206 MB / 446.1 MB, free: 2.652 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006874/0.2977, allocations: 2.159 MB / 448.2 MB, free: 496 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009839/0.3076, allocations: 3.167 MB / 451.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008066/0.3157, allocations: 6.171 MB / 457.5 MB, free: 7.141 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002363/0.3181, allocations: 1.023 MB / 458.6 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003403/0.3215, allocations: 1.354 MB / 459.9 MB, free: 4.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003479/0.325, allocations: 1.662 MB / 461.6 MB, free: 3.062 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007659/0.3258, allocations: 92 kB / 461.7 MB, free: 2.973 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006113/0.3319, allocations: 2.359 MB / 464 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.3334, allocations: 0.5452 MB / 464.6 MB, free: 64 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.3356, allocations: 0.8048 MB / 465.4 MB, free: 15.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008324/0.3439, allocations: 3.635 MB / 469 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.344, allocations: 4 kB / 469 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.344, allocations: 4 kB / 469 MB, free: 11.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001023/0.3441, allocations: 3.938 kB / 469 MB, free: 11.6 MB / 346.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.006505/0.3506, allocations: 2.2 MB / 471.2 MB, free: 9.344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3507, allocations: 8.031 kB / 471.2 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005957/0.3513, allocations: 182 kB / 471.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.3531, allocations: 0.9988 MB / 472.4 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.3532, allocations: 187 kB / 472.6 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.3534, allocations: 99.95 kB / 472.7 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/0.3562, allocations: 1.749 MB / 474.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.3563, allocations: 4 kB / 474.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.3564, allocations: 47.91 kB / 474.5 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.3565, allocations: 105.9 kB / 474.6 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.3595, allocations: 1.784 MB / 476.4 MB, free: 4.062 MB / 346.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.01218/0.3717, allocations: 6.715 MB / 483.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.3739, allocations: 1.235 MB / 484.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.3752, allocations: 0.7651 MB / 485.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005767/0.381, allocations: 4.259 MB / 489.4 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.3811, allocations: 51.55 kB / 489.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007266/0.3818, allocations: 210.6 kB / 489.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 6.212e-06/0.3818, allocations: 3.984 kB / 489.6 MB, free: 6.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01767/0.3995, allocations: 5.68 MB / 495.3 MB, free: 320 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.3996, allocations: 141.5 kB / 495.4 MB, free: 148 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.4012, allocations: 1.265 MB / 496.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.4013, allocations: 49.7 kB / 496.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004415/0.4018, allocations: 0.6013 MB / 497.4 MB, free: 14.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/0.4021, allocations: 398.4 kB / 497.7 MB, free: 13.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004625/0.4026, allocations: 287.3 kB / 498 MB, free: 13.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4027, allocations: 301.1 kB / 498.3 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.4039, allocations: 0.7231 MB / 499 MB, free: 12.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.4053, allocations: 1.068 MB / 0.4884 GB, free: 11.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002433/0.4078, allocations: 1.739 MB / 0.4901 GB, free: 9.418 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.4078, allocations: 4 kB / 0.4901 GB, free: 9.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004631/0.4124, allocations: 2.288 MB / 0.4923 GB, free: 7.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.4125, allocations: 15.94 kB / 0.4923 GB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.4125, allocations: 8.594 kB / 0.4923 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00742/0.4199, allocations: 1.281 MB / 0.4936 GB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.4213, allocations: 299.5 kB / 0.4939 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.4237, allocations: 1.603 MB / 0.4954 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.4253, allocations: 75.8 kB / 0.4955 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002727/0.4256, allocations: 75.95 kB / 0.4956 GB, free: 3.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002628/0.4282, allocations: 0.9801 MB / 0.4966 GB, free: 2.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001866/0.4301, allocations: 1.059 MB / 0.4976 GB, free: 1.543 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1927/0.6228, allocations: 1.718 MB / 0.4993 GB, free: 100.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.384e-05/0.6228, allocations: 2.75 kB / 0.4993 GB, free: 100.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004903/0.6277, allocations: 2.197 MB / 0.5014 GB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6278, allocations: 13.69 kB / 0.5014 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.6278, allocations: 7.906 kB / 0.5014 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006095/0.6339, allocations: 1.105 MB / 0.5025 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.6354, allocations: 304.4 kB / 0.5028 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.6377, allocations: 1.453 MB / 0.5042 GB, free: 99.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.6392, allocations: 81.92 kB / 0.5043 GB, free: 99.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.6395, allocations: 70.56 kB / 0.5044 GB, free: 99.16 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.0005577/0.6401, allocations: 272.1 kB / 0.5046 GB, free: 98.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/0.6406, allocations: 148.8 kB / 0.5048 GB, free: 98.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/0.6448, allocations: 2.094 MB / 0.5068 GB, free: 98.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.6448, allocations: 11.81 kB / 0.5068 GB, free: 98.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.6449, allocations: 0 / 0.5068 GB, free: 98.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.6449, allocations: 9.719 kB / 0.5068 GB, free: 98.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005191/0.6501, allocations: 3.587 MB / 0.5103 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.6501, allocations: 1.281 kB / 0.5103 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008504/0.651, allocations: 189 kB / 0.5105 GB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003494/0.6545, allocations: 0.9968 MB / 0.5115 GB, free: 95.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.6546, allocations: 37.02 kB / 0.5115 GB, free: 95.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.6565, allocations: 1.61 MB / 0.5131 GB, free: 94.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6565, allocations: 2.156 kB / 0.5131 GB, free: 94.64 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.3713/1.028, allocations: 38.71 MB / 0.5509 GB, free: 56.34 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.