Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 188.9 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.288/1.288, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001176/0.001176, allocations: 109.6 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 43.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2441, allocations: 49.45 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01185/0.256, allocations: 16.65 MB / 416.1 MB, free: 16.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007751/0.2638, allocations: 7.264 MB / 423.4 MB, free: 9.391 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009834/0.2648, allocations: 35.75 kB / 423.4 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008327/0.2657, allocations: 290.4 kB / 423.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001953/0.2677, allocations: 1.007 MB / 424.7 MB, free: 8.059 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003351/0.271, allocations: 1.515 MB / 426.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002579/0.2736, allocations: 3.185 MB / 429.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005521/0.2742, allocations: 0.5308 MB / 429.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008627/0.2751, allocations: 0.6965 MB / 430.6 MB, free: 2.113 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000768/0.2758, allocations: 0.8018 MB / 431.4 MB, free: 1.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.963e-05/0.2759, allocations: 44 kB / 431.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.2782, allocations: 1.19 MB / 432.7 MB, free: 76 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003449/0.2785, allocations: 283.2 kB / 432.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005076/0.2791, allocations: 425.8 kB / 433.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00256/0.2816, allocations: 1.8 MB / 435.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2817, allocations: 4 kB / 435.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2817, allocations: 0 / 435.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2817, allocations: 0 / 435.2 MB, free: 13.57 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002392/0.2841, allocations: 1.262 MB / 436.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.2841, allocations: 12.03 kB / 436.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.2844, allocations: 88 kB / 436.5 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000878/0.2853, allocations: 0.6011 MB / 437.1 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.947e-05/0.2854, allocations: 108.7 kB / 437.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.2855, allocations: 55.98 kB / 437.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.2868, allocations: 0.9001 MB / 438.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.2869, allocations: 0 / 438.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.586e-05/0.2869, allocations: 23.97 kB / 438.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.642e-05/0.287, allocations: 53.28 kB / 438.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.2883, allocations: 0.8405 MB / 439.1 MB, free: 9.5 MB / 314.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.005116/0.2934, allocations: 3.458 MB / 442.6 MB, free: 5.848 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009207/0.2943, allocations: 0.6571 MB / 443.2 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.2949, allocations: 370.3 kB / 443.6 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002608/0.2975, allocations: 2.028 MB / 445.6 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.2975, allocations: 47.06 kB / 445.7 MB, free: 2.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.336e-06/0.2975, allocations: 3.984 kB / 445.7 MB, free: 2.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006474/0.304, allocations: 2.82 MB / 448.5 MB, free: 15.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3041, allocations: 97.61 kB / 448.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007767/0.3049, allocations: 0.6797 MB / 449.3 MB, free: 14.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.3049, allocations: 41.7 kB / 449.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.3052, allocations: 340.3 kB / 449.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.3054, allocations: 228.8 kB / 449.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.3056, allocations: 146.6 kB / 450 MB, free: 14.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3058, allocations: 386.8 kB / 450.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005707/0.3064, allocations: 372.6 kB / 450.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000648/0.307, allocations: 0.5152 MB / 451.2 MB, free: 12.76 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.3082, allocations: 0.8599 MB / 452.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3082, allocations: 4 kB / 452.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001828/0.31, allocations: 1.161 MB / 453.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3101, allocations: 11.98 kB / 453.3 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3101, allocations: 4 kB / 453.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.3113, allocations: 455.5 kB / 453.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006157/0.312, allocations: 167.7 kB / 453.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.313, allocations: 1.017 MB / 454.9 MB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005427/0.3136, allocations: 43.88 kB / 455 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.3137, allocations: 31.98 kB / 455 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007431/0.3144, allocations: 0.5331 MB / 455.5 MB, free: 8.391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006246/0.315, allocations: 0.5083 MB / 456 MB, free: 7.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001127/0.3162, allocations: 0.849 MB / 456.9 MB, free: 6.906 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.3162, allocations: 3.938 kB / 456.9 MB, free: 6.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001724/0.3179, allocations: 1.106 MB / 458 MB, free: 5.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.3179, allocations: 4 kB / 458 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.318, allocations: 8.031 kB / 458 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000653/0.3186, allocations: 312.6 kB / 458.3 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.3192, allocations: 167.7 kB / 458.5 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008706/0.3201, allocations: 0.9073 MB / 459.4 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.3207, allocations: 44.02 kB / 459.4 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.3207, allocations: 31.98 kB / 459.5 MB, free: 4.293 MB / 330.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.0002125/0.321, allocations: 228 kB / 459.7 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.3211, allocations: 83 kB / 459.8 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.323, allocations: 1.099 MB / 460.9 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.323, allocations: 15.94 kB / 460.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.323, allocations: 0 / 460.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.323, allocations: 3.984 kB / 460.9 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.3258, allocations: 1.994 MB / 462.9 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3258, allocations: 4 kB / 462.9 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005358/0.3264, allocations: 119.8 kB / 463 MB, free: 0.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.3275, allocations: 455.5 kB / 463.4 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.3276, allocations: 15.98 kB / 463.4 MB, free: 212 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.3287, allocations: 1.028 MB / 464.5 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3287, allocations: 3.938 kB / 464.5 MB, free: 15.15 MB / 346.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.1519/0.4806, allocations: 20.35 MB / 484.8 MB, free: 10.53 MB / 362.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.