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.00138/0.00138, allocations: 115 kB / 16.63 MB, free: 6.812 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.001371/0.001371, allocations: 186 kB / 17.55 MB, free: 5.934 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.502/1.502, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001211/0.001211, allocations: 44.41 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09713, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01779/0.115, allocations: 18.31 MB / 344.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008982/0.124, allocations: 6.129 MB / 350.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.1251, allocations: 31.75 kB / 350.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009744/0.1262, allocations: 294.4 kB / 350.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002417/0.1286, allocations: 0.9568 MB / 351.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003818/0.1324, allocations: 1.505 MB / 353.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002518/0.135, allocations: 1.949 MB / 355.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007326/0.1357, allocations: 485.6 kB / 355.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.1371, allocations: 0.724 MB / 356.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.1382, allocations: 0.7669 MB / 357.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1383, allocations: 64 kB / 357.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00207/0.1404, allocations: 1.112 MB / 358.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.1407, allocations: 263.2 kB / 358.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004233/0.1411, allocations: 402.1 kB / 359.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002415/0.1435, allocations: 1.671 MB / 360.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1435, allocations: 0 / 360.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1435, allocations: 4 kB / 360.8 MB, free: 2.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1436, allocations: 0 / 360.8 MB, free: 2.016 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.002382/0.146, allocations: 1.176 MB / 361.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.146, allocations: 12.02 kB / 362 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.1463, allocations: 84.09 kB / 362 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007823/0.1471, allocations: 0.5477 MB / 362.6 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.1472, allocations: 40.98 kB / 362.6 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-05/0.1473, allocations: 48 kB / 362.7 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.1485, allocations: 0.7333 MB / 363.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.1486, allocations: 0 / 363.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.268e-05/0.1487, allocations: 23.98 kB / 363.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.893e-05/0.1488, allocations: 48.92 kB / 363.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.1499, allocations: 0.6986 MB / 364.2 MB, free: 14.49 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.004816/0.1548, allocations: 3.046 MB / 367.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/0.1556, allocations: 488.5 kB / 367.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/0.156, allocations: 266 kB / 368 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003282/0.1563, allocations: 345.2 kB / 368.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.1564, allocations: 46.98 kB / 368.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 3.937e-06/0.1564, allocations: 0 / 368.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005777/0.1622, allocations: 2.288 MB / 370.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/0.1623, allocations: 85.61 kB / 370.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00086/0.1631, allocations: 0.6289 MB / 371.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/0.1632, allocations: 37.7 kB / 371.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.1635, allocations: 328.5 kB / 371.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1637, allocations: 205 kB / 371.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.1639, allocations: 142.6 kB / 372 MB, free: 6.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1641, allocations: 374.8 kB / 372.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005048/0.1646, allocations: 316.7 kB / 372.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/0.1653, allocations: 473.3 kB / 373.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.1666, allocations: 0.7522 MB / 373.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1666, allocations: 3.938 kB / 373.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00165/0.1682, allocations: 0.9732 MB / 374.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.1683, allocations: 8 kB / 374.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.1683, allocations: 4 kB / 374.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002585/0.1709, allocations: 408.9 kB / 375.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.1715, allocations: 151.8 kB / 375.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.1726, allocations: 0.8333 MB / 376.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.1733, allocations: 39.91 kB / 376.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.278e-05/0.1734, allocations: 40.14 kB / 376.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008071/0.1742, allocations: 477.9 kB / 376.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006269/0.1749, allocations: 474 kB / 377.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1633/0.3382, allocations: 0.7179 MB / 378 MB, free: 55.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.009e-05/0.3382, allocations: 2 kB / 378 MB, free: 55.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.00165/0.3399, allocations: 0.9119 MB / 378.9 MB, free: 55.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3399, allocations: 11.05 kB / 379 MB, free: 55.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3399, allocations: 6.156 kB / 379 MB, free: 55.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/0.3418, allocations: 265 kB / 379.2 MB, free: 55.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006555/0.3425, allocations: 163.8 kB / 379.4 MB, free: 55.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000575/0.3431, allocations: 0.7122 MB / 380.1 MB, free: 54.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005611/0.3437, allocations: 43.2 kB / 380.1 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.733e-05/0.3437, allocations: 36.34 kB / 380.2 MB, free: 54.75 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.0002045/0.344, allocations: 220.5 kB / 380.4 MB, free: 54.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.3441, allocations: 75.22 kB / 380.5 MB, free: 54.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.3456, allocations: 0.8611 MB / 381.3 MB, free: 54.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3456, allocations: 8.984 kB / 381.3 MB, free: 54.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3456, allocations: 0 / 381.3 MB, free: 54.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3456, allocations: 5.453 kB / 381.3 MB, free: 54.2 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.3482, allocations: 1.719 MB / 383 MB, free: 53.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3482, allocations: 3.188 kB / 383.1 MB, free: 53.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.3487, allocations: 113.3 kB / 383.2 MB, free: 53.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.3501, allocations: 327.6 kB / 383.5 MB, free: 53.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.3502, allocations: 14.36 kB / 383.5 MB, free: 53.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006928/0.3509, allocations: 0.8125 MB / 384.3 MB, free: 52.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3509, allocations: 1.156 kB / 384.3 MB, free: 52.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.3528, allocations: 1.293 MB / 385.6 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.353, allocations: 146.7 kB / 385.7 MB, free: 52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.3531, allocations: 16.81 kB / 385.8 MB, free: 51.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004568/0.3536, allocations: 35.52 kB / 385.8 MB, free: 51.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.3537, allocations: 50.75 kB / 385.8 MB, free: 51.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.31e-05/0.3538, allocations: 31.95 kB / 385.9 MB, free: 51.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005988/0.3544, allocations: 444.6 kB / 386.3 MB, free: 51.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3544, allocations: 7.766 kB / 386.3 MB, free: 51.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001423/0.3558, allocations: 0.5275 MB / 386.8 MB, free: 51.72 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.0009183/0.3568, allocations: 445.6 kB / 387.3 MB, free: 51.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.3596, allocations: 1.305 MB / 388.6 MB, free: 51.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.3596, allocations: 0.8438 kB / 388.6 MB, free: 51.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007023/0.3604, allocations: 402.2 kB / 389 MB, free: 51.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.3619, allocations: 368.9 kB / 389.3 MB, free: 51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.3646, allocations: 1.821 MB / 391.2 MB, free: 49.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.3651, allocations: 0.9752 MB / 392.1 MB, free: 49.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009616/0.3661, allocations: 292 kB / 392.4 MB, free: 49.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.3663, allocations: 64.64 kB / 392.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3663, allocations: 0 / 392.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of Templates: time 0.02621/0.3925, allocations: 20.17 MB / 412.7 MB, free: 31.84 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)