Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.00145, 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.274/1.274, allocations: 222.9 MB / 240.9 MB, free: 10.96 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.0009793/0.0009793, allocations: 107 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009741/0.0009742, allocations: 39.95 kB / 350 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2336, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01358/0.2473, allocations: 18.01 MB / 417.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007896/0.2552, allocations: 6.969 MB / 424.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.2564, allocations: 31.75 kB / 424.5 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009657/0.2575, allocations: 342.3 kB / 424.8 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.2597, allocations: 0.9491 MB / 425.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003944/0.2636, allocations: 1.601 MB / 427.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002383/0.266, allocations: 2.873 MB / 430.2 MB, free: 2.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005606/0.2666, allocations: 457.5 kB / 430.7 MB, free: 2.043 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009022/0.2675, allocations: 0.681 MB / 431.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007558/0.2683, allocations: 0.7513 MB / 432.1 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.2684, allocations: 36 kB / 432.2 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.2703, allocations: 1.096 MB / 433.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002835/0.2706, allocations: 243.2 kB / 433.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.2711, allocations: 398 kB / 433.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.2734, allocations: 1.68 MB / 435.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2735, allocations: 0 / 435.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2735, allocations: 3.938 kB / 435.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.2735, allocations: 0 / 435.6 MB, free: 13.16 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.002473/0.276, allocations: 1.26 MB / 436.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.276, allocations: 8.031 kB / 436.8 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003514/0.2764, allocations: 95.91 kB / 436.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009776/0.2774, allocations: 0.5619 MB / 437.5 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.2775, allocations: 96.38 kB / 437.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.2776, allocations: 47.91 kB / 437.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.2788, allocations: 0.8094 MB / 438.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.2788, allocations: 0 / 438.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.2789, allocations: 31.92 kB / 438.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.069e-05/0.279, allocations: 40.97 kB / 438.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.2801, allocations: 0.683 MB / 439.2 MB, free: 9.363 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.004783/0.2848, allocations: 3.416 MB / 442.6 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006765/0.2855, allocations: 427 kB / 443 MB, free: 5.297 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003962/0.286, allocations: 257 kB / 443.3 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001756/0.2877, allocations: 1.35 MB / 444.6 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000539/0.2883, allocations: 349.2 kB / 445 MB, free: 3.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 2.324e-06/0.2883, allocations: 0 / 445 MB, free: 3.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.003585/0.2919, allocations: 1.776 MB / 446.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.292, allocations: 268.9 kB / 447 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009612/0.293, allocations: 0.7778 MB / 447.8 MB, free: 208 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.2931, allocations: 41.7 kB / 447.8 MB, free: 160 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.2934, allocations: 399.1 kB / 448.2 MB, free: 15.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.2935, allocations: 130.2 kB / 448.3 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.2938, allocations: 154.1 kB / 448.5 MB, free: 15.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.294, allocations: 394.8 kB / 448.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.2944, allocations: 259.7 kB / 449.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005921/0.295, allocations: 0.5042 MB / 449.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/0.3014, allocations: 1.856 MB / 451.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3014, allocations: 7.938 kB / 451.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001581/0.303, allocations: 0.9569 MB / 452.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.3031, allocations: 45.69 kB / 452.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3031, allocations: 11.94 kB / 452.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005145/0.3036, allocations: 132.8 kB / 452.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004797/0.3041, allocations: 143.8 kB / 452.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006174/0.3047, allocations: 0.6734 MB / 453.5 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006684/0.3054, allocations: 47.88 kB / 453.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.3055, allocations: 28 kB / 453.5 MB, free: 10.16 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.0007267/0.3062, allocations: 473.3 kB / 454 MB, free: 9.691 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005653/0.3068, allocations: 0.5044 MB / 454.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002438/0.3093, allocations: 1.256 MB / 455.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.607e-06/0.3093, allocations: 0 / 455.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.001603/0.3109, allocations: 0.943 MB / 456.7 MB, free: 6.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.273e-05/0.3109, allocations: 37.7 kB / 456.7 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.311, allocations: 12.06 kB / 456.7 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003799/0.3113, allocations: 116.8 kB / 456.9 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.3118, allocations: 135.8 kB / 457 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005612/0.3124, allocations: 0.6693 MB / 457.7 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006682/0.3131, allocations: 47.92 kB / 457.7 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.852e-05/0.3131, allocations: 35.98 kB / 457.7 MB, free: 5.66 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: 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.0003385/0.3135, allocations: 288 kB / 458 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3136, allocations: 83 kB / 458.1 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.3149, allocations: 0.6979 MB / 458.8 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3149, allocations: 4 kB / 458.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3149, allocations: 0 / 458.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3149, allocations: 3.984 kB / 458.8 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.317, allocations: 1.391 MB / 460.2 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.317, allocations: 4 kB / 460.2 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.3173, allocations: 59.91 kB / 460.3 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004711/0.3178, allocations: 124.8 kB / 460.4 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.3178, allocations: 15.98 kB / 460.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005779/0.3184, allocations: 0.6655 MB / 461.1 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3184, allocations: 7.969 kB / 461.1 MB, free: 2.199 MB / 330.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.1138/0.4323, allocations: 11.44 MB / 472.5 MB, free: 6.371 MB / 346.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.