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.001125/0.001125, allocations: 96.22 kB / 16.3 MB, free: 6.457 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.001493/0.001493, allocations: 173 kB / 17.19 MB, free: 6.348 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.518/1.518, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0004845/0.0004846, allocations: 11.44 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09835, allocations: 47.57 MB / 327.7 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01561/0.114, allocations: 15.28 MB / 343 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00885/0.1229, allocations: 5.46 MB / 348.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008409/0.1238, allocations: 31.75 kB / 348.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008891/0.1247, allocations: 290.5 kB / 348.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002281/0.127, allocations: 0.8568 MB / 349.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003362/0.1304, allocations: 1.24 MB / 350.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.1323, allocations: 1.086 MB / 351.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006286/0.133, allocations: 405.7 kB / 352.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009646/0.134, allocations: 0.5452 MB / 352.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006473/0.1346, allocations: 466.3 kB / 353.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.946e-05/0.1347, allocations: 36 kB / 353.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.1369, allocations: 1.014 MB / 354.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.1372, allocations: 207.4 kB / 354.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.1374, allocations: 161.3 kB / 354.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.1391, allocations: 1.212 MB / 355.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1391, allocations: 0 / 355.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1391, allocations: 4 kB / 356 MB, free: 7.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1391, allocations: 0 / 356 MB, free: 7.742 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.002086/0.1412, allocations: 1.036 MB / 357 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1413, allocations: 8.031 kB / 357 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.1416, allocations: 87.08 kB / 357.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008389/0.1424, allocations: 0.5248 MB / 357.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.1425, allocations: 44.98 kB / 357.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/0.1426, allocations: 40 kB / 357.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.1437, allocations: 0.7333 MB / 358.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.1437, allocations: 3.953 kB / 358.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-05/0.1438, allocations: 20 kB / 358.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.239e-05/0.1439, allocations: 44.97 kB / 358.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.145, allocations: 0.6986 MB / 359.2 MB, free: 4.387 MB / 302.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.004237/0.1492, allocations: 3.054 MB / 362.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000751/0.15, allocations: 484.5 kB / 362.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/0.1503, allocations: 341.3 kB / 363 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.1503, allocations: 50.98 kB / 363.1 MB, free: 168 kB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.776e-06/0.1503, allocations: 0 / 363.1 MB, free: 168 kB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005191/0.1555, allocations: 2.316 MB / 365.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.1556, allocations: 85.67 kB / 365.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007725/0.1564, allocations: 0.6133 MB / 366.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.1565, allocations: 41.7 kB / 366.2 MB, free: 13.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.1567, allocations: 328.4 kB / 366.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.1569, allocations: 209.1 kB / 366.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.1569, allocations: 16 kB / 366.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1571, allocations: 374.8 kB / 367.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.1576, allocations: 301.8 kB / 367.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005628/0.1581, allocations: 469.9 kB / 367.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005845/0.1587, allocations: 347.1 kB / 368.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1587, allocations: 4 kB / 368.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001472/0.1602, allocations: 0.9579 MB / 369.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007164/0.161, allocations: 1.828 MB / 370.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.161, allocations: 8 kB / 370.9 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002664/0.1636, allocations: 420.3 kB / 371.4 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007701/0.1644, allocations: 163.7 kB / 371.5 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.1656, allocations: 0.8138 MB / 372.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007926/0.1664, allocations: 48.03 kB / 372.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.909e-05/0.1665, allocations: 32 kB / 372.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1665, allocations: 4 kB / 372.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/0.1679, allocations: 0.8161 MB / 373.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1679, allocations: 4 kB / 373.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.1698, allocations: 289.1 kB / 373.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005603/0.1704, allocations: 167.7 kB / 373.7 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006046/0.171, allocations: 0.7045 MB / 374.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.1716, allocations: 55.88 kB / 374.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.1716, allocations: 35.98 kB / 374.5 MB, free: 4.387 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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.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 (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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004955/0.1721, allocations: 309 kB / 374.8 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.1723, allocations: 79.09 kB / 374.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.1738, allocations: 0.862 MB / 375.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.1738, allocations: 11.98 kB / 375.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1738, allocations: 0 / 375.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1739, allocations: 0 / 375.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.1766, allocations: 1.727 MB / 377.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1766, allocations: 0 / 377.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.1771, allocations: 115.9 kB / 377.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.1787, allocations: 352.6 kB / 377.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.628e-05/0.1787, allocations: 16 kB / 377.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1742/0.3529, allocations: 0.8155 MB / 378.7 MB, free: 48.26 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.353, allocations: 0.8125 kB / 378.7 MB, free: 48.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.3551, allocations: 1.303 MB / 380 MB, free: 48.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.3553, allocations: 154.6 kB / 380.2 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.3555, allocations: 20.23 kB / 380.2 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/0.356, allocations: 42.75 kB / 380.3 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3561, allocations: 51.03 kB / 380.3 MB, free: 47.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.648e-05/0.3562, allocations: 26.06 kB / 380.3 MB, free: 47.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006911/0.3569, allocations: 439.5 kB / 380.8 MB, free: 47.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3569, allocations: 3.094 kB / 380.8 MB, free: 47.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001546/0.3584, allocations: 0.5289 MB / 381.3 MB, free: 47.89 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 (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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008719/0.3593, allocations: 432.5 kB / 381.7 MB, free: 47.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.3615, allocations: 1.158 MB / 382.9 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3615, allocations: 4.875 kB / 382.9 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006608/0.3622, allocations: 392.2 kB / 383.3 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.3639, allocations: 334.3 kB / 383.6 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.3665, allocations: 1.869 MB / 385.5 MB, free: 47.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.3669, allocations: 0.9846 MB / 386.4 MB, free: 46.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.368, allocations: 285.7 kB / 386.7 MB, free: 46.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.3682, allocations: 64.8 kB / 386.8 MB, free: 46.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3682, allocations: 0 / 386.8 MB, free: 46.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02631/0.3945, allocations: 18.74 MB / 405.5 MB, free: 35.07 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: