Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001267, 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.325/1.325, allocations: 226.8 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 102.4 kB / 296.7 MB, free: 6.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009122/0.0009124, allocations: 55.91 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1986, allocations: 50.45 MB / 407.1 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02721/0.2259, allocations: 32.33 MB / 439.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0287/0.2546, allocations: 14.95 MB / 454.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002513/0.2572, allocations: 63.5 kB / 454.4 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.2598, allocations: 0.5011 MB / 454.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007432/0.2672, allocations: 2.054 MB / 457 MB, free: 9.734 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01197/0.2792, allocations: 3.115 MB / 460.1 MB, free: 6.633 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009188/0.2884, allocations: 5.961 MB / 466 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002471/0.291, allocations: 0.8652 MB / 466.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003957/0.2949, allocations: 1.292 MB / 468.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003698/0.2987, allocations: 1.526 MB / 469.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007053/0.2994, allocations: 76 kB / 469.8 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006907/0.3064, allocations: 2.293 MB / 472.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001343/0.3077, allocations: 0.4945 MB / 472.6 MB, free: 10.08 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002309/0.3101, allocations: 0.7464 MB / 473.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008624/0.3187, allocations: 3.526 MB / 476.8 MB, free: 5.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.203e-05/0.3188, allocations: 3.984 kB / 476.9 MB, free: 5.789 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.3188, allocations: 7.938 kB / 476.9 MB, free: 5.781 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.056e-05/0.3189, allocations: 0 / 476.9 MB, free: 5.781 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007409/0.3263, allocations: 2.095 MB / 479 MB, free: 3.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3264, allocations: 15.97 kB / 479 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.3274, allocations: 166.2 kB / 479.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.33, allocations: 0.9521 MB / 480.1 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.3301, allocations: 89.89 kB / 480.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.3304, allocations: 95.98 kB / 480.3 MB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004133/0.3346, allocations: 1.625 MB / 481.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/0.3346, allocations: 3.938 kB / 481.9 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002164/0.3349, allocations: 47.97 kB / 481.9 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001937/0.3351, allocations: 105.9 kB / 482 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004113/0.3392, allocations: 1.647 MB / 483.7 MB, free: 14.77 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.0123/0.3515, allocations: 6.644 MB / 490.3 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.3531, allocations: 0.9298 MB / 491.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/0.3539, allocations: 0.562 MB / 491.8 MB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003959/0.3579, allocations: 2.809 MB / 494.6 MB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.358, allocations: 43.22 kB / 494.7 MB, free: 3.121 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 2.515e-06/0.358, allocations: 4 kB / 494.7 MB, free: 3.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008895/0.3669, allocations: 3.704 MB / 498.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.745e-05/0.367, allocations: 192.9 kB / 498.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.3689, allocations: 1.31 MB / 499.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.369, allocations: 53.69 kB / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004774/0.3695, allocations: 0.6394 MB / 0.4888 GB, free: 13.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/0.3697, allocations: 327.4 kB / 0.4892 GB, free: 12.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004487/0.3702, allocations: 283.3 kB / 0.4894 GB, free: 12.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.424e-05/0.3703, allocations: 309 kB / 0.4897 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009516/0.3712, allocations: 0.5864 MB / 0.4903 GB, free: 11.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.3725, allocations: 1.001 MB / 0.4913 GB, free: 10.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.3745, allocations: 1.485 MB / 0.4927 GB, free: 8.699 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.3745, allocations: 4 kB / 0.4927 GB, free: 8.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003274/0.3778, allocations: 1.9 MB / 0.4946 GB, free: 6.781 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.3779, allocations: 14.97 kB / 0.4946 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.3779, allocations: 16 kB / 0.4946 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004678/0.3826, allocations: 0.7671 MB / 0.4954 GB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3837, allocations: 283.5 kB / 0.4956 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.3857, allocations: 2.16 MB / 0.4977 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.3871, allocations: 87.97 kB / 0.4978 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.3873, allocations: 63.98 kB / 0.4979 GB, free: 3.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001502/0.3888, allocations: 0.8488 MB / 0.4987 GB, free: 2.461 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001251/0.3901, allocations: 0.9953 MB / 0.4997 GB, free: 1.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1822/0.5723, allocations: 1.457 MB / 0.5011 GB, free: 95.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.838e-05/0.5724, allocations: 7.344 kB / 0.5011 GB, free: 95.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.005177/0.5775, allocations: 1.83 MB / 0.5029 GB, free: 94.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.5776, allocations: 9.781 kB / 0.5029 GB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.5776, allocations: 12.62 kB / 0.5029 GB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00417/0.5818, allocations: 0.5953 MB / 0.5035 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.583, allocations: 291.2 kB / 0.5038 GB, free: 94.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.5845, allocations: 2.021 MB / 0.5058 GB, free: 93.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.5859, allocations: 92.84 kB / 0.5058 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.5861, allocations: 68.09 kB / 0.5059 GB, free: 93.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003962/0.5865, allocations: 281.5 kB / 0.5062 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.5868, allocations: 148.1 kB / 0.5063 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003105/0.59, allocations: 1.522 MB / 0.5078 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.59, allocations: 9.156 kB / 0.5078 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.59, allocations: 1.125 kB / 0.5078 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.59, allocations: 7.578 kB / 0.5078 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004949/0.595, allocations: 2.808 MB / 0.5106 GB, free: 91.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.595, allocations: 3.938 kB / 0.5106 GB, free: 91.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006603/0.5957, allocations: 152.1 kB / 0.5107 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002708/0.5984, allocations: 0.5961 MB / 0.5113 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.5985, allocations: 38.05 kB / 0.5113 GB, free: 90.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.5999, allocations: 2.113 MB / 0.5134 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6, allocations: 0 / 0.5134 GB, free: 89.14 MB / 378.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3489/0.9488, allocations: 26.43 MB / 0.5392 GB, free: 64.99 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.