Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001207/0.001207, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001514/0.001515, allocations: 177.3 kB / 15.94 MB, free: 228 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.626/1.626, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0005214/0.0005218, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2812, allocations: 47.58 MB / 326.4 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01656/0.2978, allocations: 15.03 MB / 341.5 MB, free: 4.445 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009898/0.3078, allocations: 5.869 MB / 347.3 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.3089, allocations: 31.75 kB / 347.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.3099, allocations: 334.5 kB / 347.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002537/0.3124, allocations: 0.8257 MB / 348.5 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004312/0.3168, allocations: 1.442 MB / 350 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.319, allocations: 1.101 MB / 351.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007722/0.3198, allocations: 430.6 kB / 351.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.321, allocations: 0.6075 MB / 352.1 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007664/0.3218, allocations: 498.3 kB / 352.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.278e-05/0.3219, allocations: 36 kB / 352.6 MB, free: 9.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.3243, allocations: 0.9869 MB / 353.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002436/0.3245, allocations: 219.3 kB / 353.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.3248, allocations: 185.3 kB / 354 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.3263, allocations: 1.212 MB / 355.2 MB, free: 6.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3263, allocations: 3.938 kB / 355.2 MB, free: 6.664 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3263, allocations: 0 / 355.2 MB, free: 6.664 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3264, allocations: 0 / 355.2 MB, free: 6.664 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.002401/0.3288, allocations: 1.111 MB / 356.3 MB, free: 5.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3288, allocations: 8.031 kB / 356.3 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.3292, allocations: 94.97 kB / 356.4 MB, free: 5.391 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009191/0.3301, allocations: 0.5425 MB / 357 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.617e-05/0.3302, allocations: 100.3 kB / 357.1 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.013e-05/0.3303, allocations: 48 kB / 357.1 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.3315, allocations: 0.7969 MB / 357.9 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3315, allocations: 0 / 357.9 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.3316, allocations: 23.98 kB / 357.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.828e-05/0.3317, allocations: 36.98 kB / 358 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.3327, allocations: 0.683 MB / 358.7 MB, free: 3.062 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.004603/0.3373, allocations: 3.475 MB / 362.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006328/0.3379, allocations: 422.9 kB / 362.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00166/0.3396, allocations: 1.354 MB / 363.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004849/0.3401, allocations: 345.1 kB / 364.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.294e-06/0.3401, allocations: 0 / 364.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003525/0.3437, allocations: 1.869 MB / 366.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.3438, allocations: 265 kB / 366.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008955/0.3447, allocations: 0.7701 MB / 367.1 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.688e-05/0.3448, allocations: 45.64 kB / 367.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.3451, allocations: 399.1 kB / 367.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3452, allocations: 138.1 kB / 367.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.3452, allocations: 16 kB / 367.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3454, allocations: 386.8 kB / 368.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.3458, allocations: 249.5 kB / 368.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005498/0.3463, allocations: 0.5036 MB / 368.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.3469, allocations: 336.4 kB / 369.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3469, allocations: 3.953 kB / 369.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001564/0.3484, allocations: 0.9451 MB / 370.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.3495, allocations: 2.563 MB / 372.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3495, allocations: 8 kB / 372.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005866/0.3501, allocations: 136.7 kB / 372.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.3506, allocations: 143.8 kB / 373 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006056/0.3512, allocations: 0.685 MB / 373.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.3518, allocations: 39.97 kB / 373.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.338e-05/0.3519, allocations: 40.06 kB / 373.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.326e-06/0.3519, allocations: 3.938 kB / 373.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001415/0.3534, allocations: 0.8581 MB / 374.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3534, allocations: 11.98 kB / 374.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.3538, allocations: 125.2 kB / 374.7 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004595/0.3543, allocations: 139.8 kB / 374.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005036/0.3548, allocations: 0.6615 MB / 375.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.3553, allocations: 48.03 kB / 375.6 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.3554, allocations: 32 kB / 375.6 MB, free: 1.098 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.0005238/0.3559, allocations: 380.2 kB / 376 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.356, allocations: 83.06 kB / 376.1 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.3572, allocations: 0.694 MB / 376.7 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.3573, allocations: 4 kB / 376.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3573, allocations: 4 kB / 376.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.3573, allocations: 0 / 376.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.3592, allocations: 1.399 MB / 378.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.3593, allocations: 0 / 378.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003099/0.3596, allocations: 59.91 kB / 378.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004657/0.3601, allocations: 128.8 kB / 378.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.3601, allocations: 19.98 kB / 378.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005313/0.3606, allocations: 0.6616 MB / 379 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3607, allocations: 4.062 kB / 379 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.362, allocations: 1.035 MB / 380.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.3622, allocations: 160.2 kB / 380.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.3623, allocations: 16 kB / 380.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.3628, allocations: 35.97 kB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3629, allocations: 39.89 kB / 380.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.3629, allocations: 19.98 kB / 380.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006448/0.3636, allocations: 0.5302 MB / 380.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3636, allocations: 4 kB / 380.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001503/0.3651, allocations: 0.531 MB / 381.4 MB, free: 11.12 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.0009467/0.366, allocations: 441.4 kB / 381.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.3683, allocations: 1.194 MB / 383 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3683, allocations: 0 / 383 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.3689, allocations: 344.1 kB / 383.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.3703, allocations: 299.5 kB / 383.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.3727, allocations: 1.69 MB / 385.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.3732, allocations: 0.9893 MB / 386.3 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008408/0.374, allocations: 265.9 kB / 386.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.3742, allocations: 59.42 kB / 386.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3742, allocations: 0 / 386.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of Templates: time 0.02829/0.4025, allocations: 17.33 MB / 404 MB, free: 4.406 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) Environment - environmentSimulation: