Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 88.08 kB / 16.65 MB, free: 6.535 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.0009131/0.0009132, allocations: 173.1 kB / 17.56 MB, free: 6.184 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.584/1.584, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0005101/0.0005103, allocations: 16 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1053, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02542/0.1308, allocations: 20.62 MB / 348.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1428, allocations: 7.211 MB / 356.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001245/0.1441, allocations: 27.75 kB / 356.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.1454, allocations: 318.3 kB / 356.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003373/0.1488, allocations: 1.027 MB / 357.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004527/0.1534, allocations: 1.555 MB / 359.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003592/0.157, allocations: 3.127 MB / 362.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1581, allocations: 0.503 MB / 362.7 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.1599, allocations: 0.7121 MB / 363.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001692/0.1616, allocations: 0.7628 MB / 364.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002944/0.1619, allocations: 40 kB / 364.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.1647, allocations: 1.217 MB / 365.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004235/0.1651, allocations: 251.1 kB / 365.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007648/0.1659, allocations: 455.6 kB / 366.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003341/0.1692, allocations: 1.823 MB / 367.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1693, allocations: 3.938 kB / 368 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.869e-06/0.1693, allocations: 4 kB / 368 MB, free: 11.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.087e-05/0.1693, allocations: 0 / 368 MB, free: 11.96 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002351/0.1717, allocations: 1.114 MB / 369.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.1717, allocations: 12.03 kB / 369.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003596/0.1721, allocations: 99.89 kB / 369.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009081/0.173, allocations: 0.6008 MB / 369.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/0.1731, allocations: 41.31 kB / 369.8 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.1732, allocations: 59.97 kB / 369.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1747, allocations: 0.8829 MB / 370.8 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.1747, allocations: 3.938 kB / 370.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.1748, allocations: 24 kB / 370.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.102e-05/0.1749, allocations: 49.3 kB / 370.8 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.1762, allocations: 0.8091 MB / 371.6 MB, free: 8.129 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.004895/0.1811, allocations: 3.838 MB / 375.5 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.182, allocations: 0.5392 MB / 376 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004163/0.1824, allocations: 278 kB / 376.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003893/0.1828, allocations: 0.5034 MB / 376.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.1829, allocations: 42.98 kB / 376.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.004e-06/0.1829, allocations: 4 kB / 376.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004431/0.1873, allocations: 2.128 MB / 379 MB, free: 328 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.1874, allocations: 133 kB / 379.1 MB, free: 164 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1749/0.3623, allocations: 0.7264 MB / 379.8 MB, free: 54.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.3625, allocations: 42.72 kB / 379.9 MB, free: 54.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.3628, allocations: 374.5 kB / 380.2 MB, free: 54.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.3629, allocations: 188.1 kB / 380.4 MB, free: 54.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.363, allocations: 65.22 kB / 380.5 MB, free: 54.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3632, allocations: 385.8 kB / 380.9 MB, free: 54.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005225/0.3637, allocations: 308.7 kB / 381.2 MB, free: 54.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007034/0.3644, allocations: 0.5076 MB / 381.7 MB, free: 54.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.3657, allocations: 0.777 MB / 382.4 MB, free: 54.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3657, allocations: 1.312 kB / 382.4 MB, free: 54.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001659/0.3674, allocations: 1.003 MB / 383.5 MB, free: 53.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.3675, allocations: 257.8 kB / 383.7 MB, free: 53.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3675, allocations: 5.344 kB / 383.7 MB, free: 53.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.3693, allocations: 306.9 kB / 384 MB, free: 53.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.3699, allocations: 153.2 kB / 384.2 MB, free: 53.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009064/0.3708, allocations: 1.302 MB / 385.5 MB, free: 52.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.3715, allocations: 57.08 kB / 385.5 MB, free: 52.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/0.3716, allocations: 37.16 kB / 385.6 MB, free: 52.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.3716, allocations: 6.25 kB / 385.6 MB, free: 52.07 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001454/0.373, allocations: 0.8458 MB / 386.4 MB, free: 51.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3731, allocations: 5.531 kB / 386.4 MB, free: 51.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.3743, allocations: 186.4 kB / 386.6 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006865/0.375, allocations: 169.1 kB / 386.8 MB, free: 51.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005831/0.3756, allocations: 1.188 MB / 387.9 MB, free: 50.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.3761, allocations: 49.61 kB / 388 MB, free: 50.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.3762, allocations: 36.81 kB / 388 MB, free: 50.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],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 (85): * 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: 2 * 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): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004347/0.3766, allocations: 329.8 kB / 388.4 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.3768, allocations: 80.36 kB / 388.4 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.3786, allocations: 0.9736 MB / 389.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.3786, allocations: 6.906 kB / 389.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.3786, allocations: 4.75 kB / 389.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3786, allocations: 4.922 kB / 389.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.3814, allocations: 1.769 MB / 391.2 MB, free: 49.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3815, allocations: 1.281 kB / 391.2 MB, free: 49.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/0.3819, allocations: 102.6 kB / 391.3 MB, free: 49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.383, allocations: 251.3 kB / 391.5 MB, free: 48.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.3831, allocations: 19.42 kB / 391.6 MB, free: 48.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007142/0.3838, allocations: 1.269 MB / 392.8 MB, free: 47.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3838, allocations: 5.219 kB / 392.8 MB, free: 47.8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.3858, allocations: 1.308 MB / 394.1 MB, free: 47.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002336/0.386, allocations: 170.4 kB / 394.3 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.3861, allocations: 24.91 kB / 394.3 MB, free: 47.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.3866, allocations: 40.7 kB / 394.4 MB, free: 47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3868, allocations: 56.83 kB / 394.4 MB, free: 46.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.777e-05/0.3869, allocations: 34.34 kB / 394.5 MB, free: 46.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006325/0.3875, allocations: 0.5125 MB / 395 MB, free: 46.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3875, allocations: 0 / 395 MB, free: 46.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001684/0.3892, allocations: 0.5885 MB / 395.6 MB, free: 46.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001194/0.3904, allocations: 0.513 MB / 396.1 MB, free: 46.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.3927, allocations: 1.206 MB / 397.3 MB, free: 46.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.3927, allocations: 1.094 kB / 397.3 MB, free: 46.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00056/0.3933, allocations: 391.2 kB / 397.7 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.3953, allocations: 397.5 kB / 398 MB, free: 45.92 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.3976, allocations: 1.973 MB / 400 MB, free: 44.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.3979, allocations: 0.9949 MB / 401 MB, free: 43.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001036/0.399, allocations: 323.5 kB / 401.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.3992, allocations: 79.47 kB / 401.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3992, allocations: 0 / 401.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of Templates: time 0.02891/0.4281, allocations: 21.75 MB / 423.2 MB, free: 22.07 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)