Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, 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.294/1.294, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 111.2 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008919/0.0008919, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2187, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01424/0.233, allocations: 18.07 MB / 425.1 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008695/0.2418, allocations: 6.978 MB / 432.1 MB, free: 2.703 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.243, allocations: 31.75 kB / 432.1 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.2442, allocations: 342.4 kB / 432.5 MB, free: 2.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002222/0.2464, allocations: 0.9608 MB / 433.4 MB, free: 1.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003889/0.2503, allocations: 1.586 MB / 435 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.2536, allocations: 2.889 MB / 437.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000772/0.2544, allocations: 457.5 kB / 438.4 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2557, allocations: 0.6733 MB / 439 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.2568, allocations: 0.7513 MB / 439.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.257, allocations: 39.98 kB / 439.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002233/0.2592, allocations: 1.108 MB / 440.9 MB, free: 9.863 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.2595, allocations: 247.2 kB / 441.2 MB, free: 9.621 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005178/0.2601, allocations: 397.9 kB / 441.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002532/0.2626, allocations: 1.688 MB / 443.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2626, allocations: 0 / 443.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.2626, allocations: 0 / 443.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.2627, allocations: 0 / 443.2 MB, free: 7.539 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00242/0.2651, allocations: 1.252 MB / 444.5 MB, free: 6.227 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2651, allocations: 8.031 kB / 444.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003495/0.2655, allocations: 95.91 kB / 444.6 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008745/0.2664, allocations: 0.5812 MB / 445.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.2665, allocations: 96.41 kB / 445.3 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.2666, allocations: 43.98 kB / 445.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.2678, allocations: 0.8048 MB / 446.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.2678, allocations: 7.938 kB / 446.1 MB, free: 4.496 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/0.2679, allocations: 16 kB / 446.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.97e-05/0.2679, allocations: 44.97 kB / 446.2 MB, free: 4.434 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.269, allocations: 0.6791 MB / 446.9 MB, free: 3.754 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.004928/0.2739, allocations: 3.444 MB / 450.3 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.2747, allocations: 417.5 kB / 450.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003759/0.275, allocations: 253 kB / 451 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001826/0.2769, allocations: 1.335 MB / 452.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005501/0.2774, allocations: 361.9 kB / 452.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.2775, allocations: 3.938 kB / 452.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.004129/0.2816, allocations: 1.779 MB / 454.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.2818, allocations: 265 kB / 454.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.2829, allocations: 0.7778 MB / 455.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.514e-05/0.283, allocations: 45.64 kB / 455.5 MB, free: 10.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/0.2834, allocations: 399.1 kB / 455.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.2836, allocations: 138.1 kB / 456 MB, free: 9.996 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.2839, allocations: 150.2 kB / 456.2 MB, free: 9.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.2841, allocations: 390.8 kB / 456.6 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/0.2846, allocations: 259.7 kB / 456.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007568/0.2854, allocations: 0.5113 MB / 457.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007395/0.2928, allocations: 1.891 MB / 459.2 MB, free: 6.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.029e-05/0.2928, allocations: 4 kB / 459.2 MB, free: 6.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001723/0.2946, allocations: 0.9599 MB / 460.2 MB, free: 5.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.814e-05/0.2946, allocations: 45.39 kB / 460.2 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2946, allocations: 4 kB / 460.2 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.2952, allocations: 144.7 kB / 460.4 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/0.2957, allocations: 139.7 kB / 460.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000625/0.2963, allocations: 0.6772 MB / 461.2 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.297, allocations: 43.97 kB / 461.2 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.2971, allocations: 28 kB / 461.3 MB, free: 4.484 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007441/0.2978, allocations: 471.1 kB / 461.7 MB, free: 4.023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005743/0.2984, allocations: 0.5083 MB / 462.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002482/0.3009, allocations: 1.26 MB / 463.5 MB, free: 2.031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.517e-06/0.3009, allocations: 0 / 463.5 MB, free: 2.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.00157/0.3025, allocations: 0.9386 MB / 464.4 MB, free: 1.074 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.3025, allocations: 45.69 kB / 464.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3026, allocations: 4 kB / 464.5 MB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.303, allocations: 125.4 kB / 464.6 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.3035, allocations: 135.8 kB / 464.7 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005258/0.304, allocations: 0.6732 MB / 465.4 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006693/0.3047, allocations: 43.91 kB / 465.4 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.961e-05/0.3048, allocations: 32.08 kB / 465.5 MB, free: 15.98 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003911/0.3052, allocations: 283.8 kB / 465.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.3053, allocations: 86.91 kB / 465.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.3067, allocations: 0.698 MB / 466.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3067, allocations: 4.047 kB / 466.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3067, allocations: 3.984 kB / 466.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.3068, allocations: 0 / 466.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.3088, allocations: 1.399 MB / 467.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3088, allocations: 0 / 467.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.3091, allocations: 60 kB / 468 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.3096, allocations: 124.7 kB / 468.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.3096, allocations: 12 kB / 468.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005164/0.3102, allocations: 0.6695 MB / 468.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3102, allocations: 0 / 468.8 MB, free: 12.53 MB / 346.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.1171/0.4273, allocations: 11.56 MB / 480.4 MB, free: 0.582 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.