Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008787/0.0008787, allocations: 103.1 kB / 15.06 MB, free: 1.098 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.0008581/0.0008582, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.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.0004421/0.0004421, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2418, allocations: 47.58 MB / 326.5 MB, free: 1.539 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02141/0.2633, allocations: 15.04 MB / 341.5 MB, free: 4.551 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.2736, allocations: 5.865 MB / 347.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.2751, allocations: 31.75 kB / 347.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.2764, allocations: 330.5 kB / 347.7 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.2795, allocations: 0.8218 MB / 348.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004707/0.2842, allocations: 1.454 MB / 350 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002177/0.2864, allocations: 1.09 MB / 351.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000983/0.2874, allocations: 438.6 kB / 351.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001463/0.2889, allocations: 0.6075 MB / 352.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2899, allocations: 0.4944 MB / 352.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002205/0.2902, allocations: 32 kB / 352.6 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002271/0.2924, allocations: 0.9869 MB / 353.6 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.2929, allocations: 223.4 kB / 353.8 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003435/0.2932, allocations: 173.3 kB / 354 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002094/0.2953, allocations: 1.216 MB / 355.2 MB, free: 6.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2953, allocations: 0 / 355.2 MB, free: 6.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2954, allocations: 0 / 355.2 MB, free: 6.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.2954, allocations: 0 / 355.2 MB, free: 6.777 MB / 286.1 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.002673/0.2981, allocations: 1.108 MB / 356.3 MB, free: 5.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2981, allocations: 8.031 kB / 356.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004986/0.2986, allocations: 102.9 kB / 356.4 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.2999, allocations: 0.5425 MB / 357 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.3, allocations: 100.3 kB / 357.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.3002, allocations: 48 kB / 357.1 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.3016, allocations: 0.793 MB / 357.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.3016, allocations: 4 kB / 357.9 MB, free: 3.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.071e-05/0.3017, allocations: 20 kB / 357.9 MB, free: 3.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.466e-05/0.3018, allocations: 40.97 kB / 358 MB, free: 3.852 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.3029, allocations: 0.6791 MB / 358.7 MB, free: 3.176 MB / 286.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.004967/0.3079, allocations: 3.479 MB / 362.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.3086, allocations: 418.9 kB / 362.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001851/0.3104, allocations: 1.354 MB / 363.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005387/0.311, allocations: 349.1 kB / 364.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.485e-06/0.311, allocations: 0 / 364.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00366/0.3147, allocations: 1.865 MB / 366.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.3148, allocations: 269 kB / 366.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000884/0.3157, allocations: 0.7662 MB / 367.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/0.3158, allocations: 45.64 kB / 367.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/0.3161, allocations: 403.1 kB / 367.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.3162, allocations: 138.1 kB / 367.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.3163, allocations: 8 kB / 367.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.3165, allocations: 394.8 kB / 368.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.3169, allocations: 245.5 kB / 368.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.3175, allocations: 0.4958 MB / 368.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005124/0.318, allocations: 340.4 kB / 369.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.318, allocations: 7.953 kB / 369.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001505/0.3196, allocations: 0.9451 MB / 370.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009581/0.3205, allocations: 2.555 MB / 372.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3206, allocations: 4 kB / 372.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005793/0.3211, allocations: 136.7 kB / 372.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.3216, allocations: 147.8 kB / 373 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000605/0.3223, allocations: 0.681 MB / 373.6 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006153/0.3229, allocations: 43.97 kB / 373.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.323, allocations: 36.06 kB / 373.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.323, allocations: 4 kB / 373.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00142/0.3244, allocations: 0.862 MB / 374.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3244, allocations: 4 kB / 374.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003983/0.3248, allocations: 125.2 kB / 374.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.3253, allocations: 135.8 kB / 374.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005082/0.3258, allocations: 0.6654 MB / 375.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005415/0.3264, allocations: 52.02 kB / 375.6 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/0.3264, allocations: 31.98 kB / 375.6 MB, free: 1.223 MB / 302.1 MB Warning: Assuming fixed start value for the following 2 variables: 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 tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" 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 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005249/0.327, allocations: 384.3 kB / 376 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.3271, allocations: 79.06 kB / 376 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.3283, allocations: 0.7018 MB / 376.8 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3283, allocations: 0 / 376.8 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3283, allocations: 8 kB / 376.8 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3283, allocations: 7.922 kB / 376.8 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.3303, allocations: 1.395 MB / 378.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3303, allocations: 4 kB / 378.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/0.3306, allocations: 55.91 kB / 378.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004579/0.3311, allocations: 128.8 kB / 378.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.3311, allocations: 15.98 kB / 378.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005171/0.3316, allocations: 0.6694 MB / 379 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3317, allocations: 4.031 kB / 379 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.333, allocations: 1.015 MB / 380.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.3332, allocations: 164.2 kB / 380.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.3333, allocations: 19.98 kB / 380.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004602/0.3338, allocations: 31.98 kB / 380.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.3339, allocations: 43.83 kB / 380.3 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.3339, allocations: 19.98 kB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006185/0.3345, allocations: 0.5302 MB / 380.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3345, allocations: 4 kB / 380.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001448/0.336, allocations: 0.531 MB / 381.4 MB, free: 11.24 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000971/0.337, allocations: 441.3 kB / 381.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.3391, allocations: 1.186 MB / 383 MB, free: 9.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3391, allocations: 3.938 kB / 383 MB, free: 9.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005668/0.3397, allocations: 348.1 kB / 383.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.3412, allocations: 315.5 kB / 383.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.3434, allocations: 1.69 MB / 385.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.3439, allocations: 0.9932 MB / 386.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007901/0.3447, allocations: 246 kB / 386.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3448, allocations: 59.42 kB / 386.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3448, allocations: 0 / 386.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of Templates: time 0.02643/0.3713, allocations: 17.33 MB / 404 MB, free: 4.527 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) Environment - environmentSimulation: