Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 102 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.195, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02032/0.2153, allocations: 30.34 MB / 437.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02209/0.2374, allocations: 15.75 MB / 453.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/0.2407, allocations: 67.44 kB / 453.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.2426, allocations: 0.5207 MB / 453.7 MB, free: 13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005655/0.2483, allocations: 2.167 MB / 455.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007828/0.2561, allocations: 3.153 MB / 459 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006786/0.2629, allocations: 6.183 MB / 465.2 MB, free: 1.48 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.2647, allocations: 1.031 MB / 466.3 MB, free: 428 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002506/0.2672, allocations: 1.343 MB / 467.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.2699, allocations: 1.67 MB / 469.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003206/0.2702, allocations: 88 kB / 469.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004482/0.2747, allocations: 2.379 MB / 471.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007267/0.2755, allocations: 0.5452 MB / 472.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.2766, allocations: 0.8047 MB / 473.1 MB, free: 9.57 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006241/0.2828, allocations: 3.651 MB / 476.7 MB, free: 5.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2829, allocations: 4 kB / 476.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2829, allocations: 0 / 476.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.2829, allocations: 0 / 476.7 MB, free: 5.906 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.004933/0.2878, allocations: 2.204 MB / 478.9 MB, free: 3.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2879, allocations: 8.031 kB / 478.9 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000576/0.2885, allocations: 182.1 kB / 479.1 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.2902, allocations: 0.9988 MB / 480.1 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.2904, allocations: 183 kB / 480.3 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.2906, allocations: 99.95 kB / 480.4 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/0.2933, allocations: 1.757 MB / 482.2 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.2934, allocations: 0 / 482.2 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.2935, allocations: 43.97 kB / 482.2 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.2937, allocations: 113.9 kB / 482.3 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002864/0.2965, allocations: 1.78 MB / 484.1 MB, free: 14.36 MB / 362.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.01193/0.3085, allocations: 6.715 MB / 490.8 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.3103, allocations: 1.238 MB / 492 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.3113, allocations: 0.7715 MB / 492.8 MB, free: 5.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006103/0.3175, allocations: 4.259 MB / 497.1 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.3175, allocations: 51.55 kB / 497.1 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000791/0.3183, allocations: 210.6 kB / 497.3 MB, free: 364 kB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 3.045e-06/0.3183, allocations: 0 / 497.3 MB, free: 364 kB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.0179/0.3363, allocations: 5.685 MB / 0.4912 GB, free: 10.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.3364, allocations: 141.5 kB / 0.4914 GB, free: 10.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.3382, allocations: 1.253 MB / 0.4926 GB, free: 9.184 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.3384, allocations: 45.7 kB / 0.4926 GB, free: 9.133 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004527/0.3389, allocations: 0.613 MB / 0.4932 GB, free: 8.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003836/0.3392, allocations: 398.3 kB / 0.4936 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004913/0.3397, allocations: 291.4 kB / 0.4939 GB, free: 7.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.3398, allocations: 301.1 kB / 0.4942 GB, free: 7.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.341, allocations: 0.7192 MB / 0.4949 GB, free: 6.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.3425, allocations: 1.072 MB / 0.4959 GB, free: 5.594 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002479/0.345, allocations: 1.739 MB / 0.4976 GB, free: 3.723 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.345, allocations: 4 kB / 0.4976 GB, free: 3.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003915/0.349, allocations: 2.285 MB / 0.4999 GB, free: 1.422 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.349, allocations: 15.94 kB / 0.4999 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.349, allocations: 8 kB / 0.4999 GB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006792/0.3558, allocations: 1.286 MB / 0.5011 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1799/0.5358, allocations: 294.8 kB / 0.5014 GB, free: 96.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.5384, allocations: 1.603 MB / 0.503 GB, free: 95.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.5399, allocations: 83.05 kB / 0.5031 GB, free: 95.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.54, allocations: 72.47 kB / 0.5031 GB, free: 95.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001552/0.5416, allocations: 0.9785 MB / 0.5041 GB, free: 95.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001292/0.5429, allocations: 1.057 MB / 0.5051 GB, free: 94.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002263/0.5452, allocations: 1.726 MB / 0.5068 GB, free: 93.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.468e-06/0.5452, allocations: 3.875 kB / 0.5068 GB, free: 93.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003989/0.5492, allocations: 2.199 MB / 0.509 GB, free: 92.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.5492, allocations: 8.906 kB / 0.509 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.5493, allocations: 11.38 kB / 0.509 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005789/0.555, allocations: 1.094 MB / 0.51 GB, free: 92.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.5562, allocations: 313.7 kB / 0.5103 GB, free: 92.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.5578, allocations: 1.441 MB / 0.5117 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.559, allocations: 89.52 kB / 0.5118 GB, free: 91.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.5592, allocations: 70.5 kB / 0.5119 GB, free: 91.91 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.000358/0.5595, allocations: 279.2 kB / 0.5122 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.5598, allocations: 147.3 kB / 0.5123 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003452/0.5632, allocations: 2.089 MB / 0.5143 GB, free: 90.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.5632, allocations: 16.09 kB / 0.5144 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5633, allocations: 1.969 kB / 0.5144 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.5633, allocations: 10 kB / 0.5144 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/0.5678, allocations: 3.589 MB / 0.5179 GB, free: 88.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.5678, allocations: 0 / 0.5179 GB, free: 88.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/0.5686, allocations: 191.8 kB / 0.5181 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003405/0.5721, allocations: 0.9924 MB / 0.519 GB, free: 87.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.5722, allocations: 35.98 kB / 0.5191 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.5739, allocations: 1.616 MB / 0.5206 GB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5739, allocations: 4.844 kB / 0.5206 GB, free: 85.42 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.3814/0.9554, allocations: 39.05 MB / 0.5588 GB, free: 46.36 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.