Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 187 kB / 17.92 MB, free: 3.852 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.191/1.191, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.000972/0.0009722, allocations: 96.56 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009201/0.0009203, allocations: 43.92 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2152, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01397/0.2292, allocations: 16.68 MB / 390.5 MB, free: 32.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008906/0.2382, allocations: 7.208 MB / 397.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.2397, allocations: 31.75 kB / 397.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007942/0.2405, allocations: 298.4 kB / 398 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.2426, allocations: 1.007 MB / 399 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003228/0.2459, allocations: 1.506 MB / 400.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002403/0.2483, allocations: 3.197 MB / 403.7 MB, free: 19.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006114/0.2489, allocations: 0.5308 MB / 404.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008367/0.2497, allocations: 0.7005 MB / 405 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000767/0.2505, allocations: 0.8018 MB / 405.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.2506, allocations: 44 kB / 405.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001838/0.2525, allocations: 1.193 MB / 407 MB, free: 16.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.2527, allocations: 283.1 kB / 407.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.253, allocations: 425.9 kB / 407.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001586/0.2546, allocations: 1.804 MB / 409.5 MB, free: 13.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2546, allocations: 0 / 409.5 MB, free: 13.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.2546, allocations: 0 / 409.5 MB, free: 13.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.2547, allocations: 0 / 409.5 MB, free: 13.74 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002206/0.2569, allocations: 1.258 MB / 410.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2569, allocations: 8.031 kB / 410.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.2572, allocations: 96 kB / 410.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007789/0.258, allocations: 0.5932 MB / 411.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.429e-05/0.2581, allocations: 104.7 kB / 411.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.27e-05/0.2582, allocations: 59.98 kB / 411.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.2593, allocations: 0.8962 MB / 412.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.2593, allocations: 0 / 412.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-05/0.2594, allocations: 23.98 kB / 412.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.069e-05/0.2595, allocations: 53.28 kB / 412.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.2605, allocations: 0.8405 MB / 413.4 MB, free: 9.676 MB / 298.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.004322/0.2649, allocations: 3.458 MB / 416.9 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007763/0.2657, allocations: 0.6646 MB / 417.5 MB, free: 5.355 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004118/0.2661, allocations: 362.3 kB / 417.9 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00215/0.2682, allocations: 2.039 MB / 419.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.2683, allocations: 43.12 kB / 420 MB, free: 2.715 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 1.994e-06/0.2683, allocations: 4 kB / 420 MB, free: 2.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.005741/0.274, allocations: 2.832 MB / 422.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.2741, allocations: 81.67 kB / 422.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007995/0.2749, allocations: 0.6876 MB / 423.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.424e-05/0.275, allocations: 41.7 kB / 423.6 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/0.2752, allocations: 336.4 kB / 424 MB, free: 14.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.2754, allocations: 224.8 kB / 424.2 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.2756, allocations: 146.6 kB / 424.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.2758, allocations: 390.8 kB / 424.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005791/0.2764, allocations: 368.6 kB / 425.1 MB, free: 13.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/0.2771, allocations: 0.523 MB / 425.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.2783, allocations: 0.8638 MB / 426.4 MB, free: 12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2783, allocations: 0 / 426.4 MB, free: 12 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001778/0.2801, allocations: 1.157 MB / 427.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.2801, allocations: 8.547 kB / 427.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.2801, allocations: 12 kB / 427.6 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.2813, allocations: 452.3 kB / 428.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005957/0.2819, allocations: 159.7 kB / 428.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.2831, allocations: 1.021 MB / 429.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/0.2836, allocations: 47.88 kB / 429.3 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/0.2837, allocations: 31.98 kB / 429.3 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007588/0.2844, allocations: 0.5331 MB / 429.9 MB, free: 8.551 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006369/0.2851, allocations: 0.5121 MB / 430.4 MB, free: 7.977 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001115/0.2862, allocations: 0.8451 MB / 431.2 MB, free: 7.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.2862, allocations: 4 kB / 431.2 MB, free: 7.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001751/0.288, allocations: 1.102 MB / 432.3 MB, free: 5.957 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.288, allocations: 8 kB / 432.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.288, allocations: 4 kB / 432.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006578/0.2887, allocations: 312.9 kB / 432.6 MB, free: 5.637 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/0.2893, allocations: 167.7 kB / 432.8 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008953/0.2902, allocations: 0.8996 MB / 433.7 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.2907, allocations: 51.92 kB / 433.7 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.2908, allocations: 31.98 kB / 433.8 MB, free: 4.465 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002361/0.291, allocations: 236.9 kB / 434 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.2912, allocations: 79 kB / 434.1 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.293, allocations: 1.091 MB / 435.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.293, allocations: 8 kB / 435.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.293, allocations: 0 / 435.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.293, allocations: 3.984 kB / 435.2 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.2958, allocations: 2.005 MB / 437.2 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2959, allocations: 4 kB / 437.2 MB, free: 0.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005077/0.2964, allocations: 115.9 kB / 437.3 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.2975, allocations: 456.5 kB / 437.8 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-05/0.2976, allocations: 16 kB / 437.8 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.2986, allocations: 1.035 MB / 438.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2987, allocations: 0 / 438.8 MB, free: 15.32 MB / 330.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.1502/0.4489, allocations: 20.35 MB / 459.2 MB, free: 10.66 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.