Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.7 MB / 245.5 MB, free: 6.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 105.5 kB / 296.7 MB, free: 6.449 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008953/0.0008954, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2371, allocations: 50.46 MB / 407 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01156/0.2487, allocations: 16.71 MB / 423.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007409/0.2562, allocations: 7.268 MB / 431 MB, free: 3.727 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007557/0.257, allocations: 31.75 kB / 431.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007064/0.2577, allocations: 294.4 kB / 431.3 MB, free: 3.406 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0018/0.2595, allocations: 1.023 MB / 432.4 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002896/0.2624, allocations: 1.497 MB / 433.9 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002586/0.265, allocations: 3.209 MB / 437.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006693/0.2657, allocations: 0.5308 MB / 437.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009319/0.2667, allocations: 0.7083 MB / 438.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000937/0.2676, allocations: 0.7979 MB / 439.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.2677, allocations: 44 kB / 439.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.2698, allocations: 1.205 MB / 440.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.2701, allocations: 283.1 kB / 440.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.2705, allocations: 433.9 kB / 441.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001997/0.2725, allocations: 1.8 MB / 442.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2726, allocations: 0 / 442.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.2726, allocations: 0 / 442.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.2726, allocations: 0 / 442.9 MB, free: 7.863 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.002464/0.275, allocations: 1.27 MB / 444.1 MB, free: 6.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2751, allocations: 8.031 kB / 444.1 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003074/0.2754, allocations: 92 kB / 444.2 MB, free: 6.445 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009138/0.2763, allocations: 0.6051 MB / 444.8 MB, free: 5.797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.331e-05/0.2764, allocations: 104.7 kB / 444.9 MB, free: 5.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-05/0.2765, allocations: 55.98 kB / 445 MB, free: 5.629 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.2779, allocations: 0.8923 MB / 445.9 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2779, allocations: 0 / 445.9 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.385e-05/0.278, allocations: 27.98 kB / 445.9 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.665e-05/0.2781, allocations: 49.28 kB / 446 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.2794, allocations: 0.8483 MB / 446.8 MB, free: 3.785 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.005269/0.2846, allocations: 3.469 MB / 450.3 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009685/0.2856, allocations: 0.6572 MB / 450.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.2861, allocations: 374.3 kB / 451.3 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002584/0.2887, allocations: 2.027 MB / 453.3 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.2888, allocations: 47.06 kB / 453.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.023e-06/0.2888, allocations: 0 / 453.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.006543/0.2953, allocations: 2.828 MB / 456.2 MB, free: 9.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.2954, allocations: 85.67 kB / 456.3 MB, free: 9.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007504/0.2962, allocations: 0.6798 MB / 457 MB, free: 9.117 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.2962, allocations: 37.7 kB / 457 MB, free: 9.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.2965, allocations: 340.3 kB / 457.3 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.2966, allocations: 232.7 kB / 457.6 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.2969, allocations: 150.6 kB / 457.7 MB, free: 8.355 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.297, allocations: 386.8 kB / 458.1 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.2976, allocations: 368.6 kB / 458.4 MB, free: 7.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006642/0.2983, allocations: 0.5191 MB / 459 MB, free: 7.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.2995, allocations: 0.8638 MB / 459.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2995, allocations: 4 kB / 459.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001866/0.3014, allocations: 1.157 MB / 461 MB, free: 4.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.3014, allocations: 10.97 kB / 461 MB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3014, allocations: 4 kB / 461 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.3026, allocations: 456.5 kB / 461.4 MB, free: 4.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006328/0.3033, allocations: 155.7 kB / 461.6 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.3044, allocations: 1.028 MB / 462.6 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/0.305, allocations: 39.83 kB / 462.7 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-05/0.3051, allocations: 39.98 kB / 462.7 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007863/0.3059, allocations: 0.5346 MB / 463.2 MB, free: 2.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006445/0.3065, allocations: 0.5043 MB / 463.7 MB, free: 2.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001148/0.3077, allocations: 0.8567 MB / 464.6 MB, free: 1.172 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.988e-06/0.3077, allocations: 3.938 kB / 464.6 MB, free: 1.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001752/0.3094, allocations: 1.098 MB / 465.7 MB, free: 60 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.3095, allocations: 8 kB / 465.7 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3095, allocations: 4 kB / 465.7 MB, free: 48 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006767/0.3102, allocations: 312.9 kB / 466 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000608/0.3108, allocations: 171.7 kB / 466.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009741/0.3118, allocations: 0.9073 MB / 467.1 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.3123, allocations: 40.02 kB / 467.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.3124, allocations: 35.98 kB / 467.2 MB, free: 14.56 MB / 346.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.00023/0.3126, allocations: 228 kB / 467.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3128, allocations: 83.06 kB / 467.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.3147, allocations: 1.095 MB / 468.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3147, allocations: 8 kB / 468.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3147, allocations: 0 / 468.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3147, allocations: 3.984 kB / 468.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.3177, allocations: 2.002 MB / 470.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3177, allocations: 0 / 470.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005441/0.3182, allocations: 119.8 kB / 470.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.3194, allocations: 453.9 kB / 471.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.498e-05/0.3195, allocations: 23.94 kB / 471.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.3206, allocations: 1.031 MB / 472.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3206, allocations: 3.938 kB / 472.2 MB, free: 9.422 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.1568/0.4774, allocations: 20.46 MB / 492.7 MB, free: 4.695 MB / 362.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.