Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 106.6 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 43.94 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08275/0.08388, allocations: 46.62 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0169/0.1008, allocations: 18.34 MB / 344.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008854/0.1097, allocations: 6.328 MB / 350.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.1112, allocations: 31.75 kB / 350.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.1123, allocations: 286.4 kB / 350.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002745/0.1151, allocations: 0.9762 MB / 351.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004004/0.1191, allocations: 1.372 MB / 353.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.1228, allocations: 3.057 MB / 356.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007305/0.1235, allocations: 421.6 kB / 356.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.1248, allocations: 0.6225 MB / 357.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1259, allocations: 0.7395 MB / 358.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.126, allocations: 36 kB / 358.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002214/0.1282, allocations: 1.096 MB / 359.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002808/0.1285, allocations: 231.3 kB / 359.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004437/0.129, allocations: 374.1 kB / 359.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.1313, allocations: 1.64 MB / 361.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1313, allocations: 0 / 361.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1313, allocations: 4 kB / 361.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1313, allocations: 3.938 kB / 361.5 MB, free: 1.203 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002456/0.1338, allocations: 1.161 MB / 362.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1338, allocations: 12.03 kB / 362.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.1341, allocations: 91.94 kB / 362.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.1349, allocations: 0.5477 MB / 363.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.953e-05/0.135, allocations: 44.97 kB / 363.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.08e-05/0.135, allocations: 47.98 kB / 363.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.1362, allocations: 0.7333 MB / 364.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.1362, allocations: 4 kB / 364.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.1363, allocations: 19.98 kB / 364.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.596e-05/0.1363, allocations: 44.97 kB / 364.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.1375, allocations: 0.7025 MB / 364.9 MB, free: 13.68 MB / 318.1 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.004362/0.1418, allocations: 3.038 MB / 367.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008576/0.1427, allocations: 488.5 kB / 368.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003825/0.1431, allocations: 266 kB / 368.7 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002764/0.1434, allocations: 345.3 kB / 369 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1434, allocations: 39 kB / 369 MB, free: 9.215 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.064e-06/0.1434, allocations: 0 / 369 MB, free: 9.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005557/0.149, allocations: 2.299 MB / 371.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.1491, allocations: 89.67 kB / 371.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000781/0.1499, allocations: 0.6211 MB / 372.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.1499, allocations: 37.7 kB / 372.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.1502, allocations: 324.5 kB / 372.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.1504, allocations: 213 kB / 372.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.1506, allocations: 142.6 kB / 372.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.1508, allocations: 378.8 kB / 373.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005171/0.1514, allocations: 316.6 kB / 373.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006049/0.152, allocations: 481.3 kB / 373.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.153, allocations: 0.7444 MB / 374.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.153, allocations: 3.938 kB / 374.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001536/0.1546, allocations: 0.9732 MB / 375.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1546, allocations: 8.625 kB / 375.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1546, allocations: 4 kB / 375.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.1571, allocations: 408.3 kB / 376 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.1577, allocations: 159.7 kB / 376.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009089/0.1586, allocations: 0.8216 MB / 377 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005444/0.1592, allocations: 47.91 kB / 377.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.1592, allocations: 32 kB / 377.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007005/0.1599, allocations: 482 kB / 377.6 MB, free: 396 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.1452/0.3051, allocations: 472.3 kB / 378 MB, free: 55.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001254/0.3064, allocations: 0.7249 MB / 378.7 MB, free: 54.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.272e-06/0.3065, allocations: 2.25 kB / 378.7 MB, free: 54.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001617/0.3081, allocations: 0.9061 MB / 379.7 MB, free: 54.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.3081, allocations: 11.41 kB / 379.7 MB, free: 54.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3081, allocations: 4.938 kB / 379.7 MB, free: 54.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/0.3101, allocations: 263.4 kB / 379.9 MB, free: 54.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/0.3108, allocations: 162.7 kB / 380.1 MB, free: 54.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004917/0.3113, allocations: 0.7113 MB / 380.8 MB, free: 54.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005276/0.3119, allocations: 45.52 kB / 380.8 MB, free: 54.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.239e-05/0.3119, allocations: 38.77 kB / 380.9 MB, free: 54.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002081/0.3122, allocations: 219.3 kB / 381.1 MB, free: 54.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.3123, allocations: 72.94 kB / 381.2 MB, free: 54.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.3138, allocations: 0.8616 MB / 382 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.3138, allocations: 9.875 kB / 382 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3138, allocations: 1.344 kB / 382 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3138, allocations: 3.562 kB / 382 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002668/0.3165, allocations: 1.715 MB / 383.8 MB, free: 52.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3165, allocations: 1.125 kB / 383.8 MB, free: 52.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004913/0.317, allocations: 113.1 kB / 383.9 MB, free: 52.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.3186, allocations: 337.6 kB / 384.2 MB, free: 52.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.3186, allocations: 15.98 kB / 384.2 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006716/0.3193, allocations: 0.8139 MB / 385 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3193, allocations: 8.562 kB / 385 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.3211, allocations: 1.286 MB / 386.3 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.3213, allocations: 150.5 kB / 386.5 MB, free: 51.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.3214, allocations: 15 kB / 386.5 MB, free: 51.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.3219, allocations: 33.2 kB / 386.5 MB, free: 51.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.322, allocations: 58.27 kB / 386.6 MB, free: 51.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/0.3221, allocations: 25.17 kB / 386.6 MB, free: 51.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005379/0.3226, allocations: 444.9 kB / 387 MB, free: 51.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3226, allocations: 1.312 kB / 387 MB, free: 51.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001335/0.324, allocations: 0.5285 MB / 387.6 MB, free: 51.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008852/0.3249, allocations: 436.9 kB / 388 MB, free: 51.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.3271, allocations: 1.186 MB / 389.2 MB, free: 50.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3271, allocations: 0 / 389.2 MB, free: 50.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.3278, allocations: 395 kB / 389.6 MB, free: 50.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.3293, allocations: 357 kB / 389.9 MB, free: 50.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.3316, allocations: 1.831 MB / 391.7 MB, free: 49.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.332, allocations: 0.9695 MB / 392.7 MB, free: 48.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008879/0.3329, allocations: 293.1 kB / 393 MB, free: 48.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.333, allocations: 69.06 kB / 393.1 MB, free: 48.68 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3331, allocations: 0 / 393.1 MB, free: 48.68 MB / 318.1 MB Notification: Performance of Templates: time 0.02353/0.3566, allocations: 19.41 MB / 412.5 MB, free: 31.93 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)