Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.007448/0.007448, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001435/0.001435, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.555/1.555, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001201/0.001201, allocations: 54.14 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02014/0.1235, allocations: 20.59 MB / 393.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009355/0.1329, allocations: 6.992 MB / 400.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000955/0.1339, allocations: 23.88 kB / 400.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.135, allocations: 381.5 kB / 401.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002583/0.1376, allocations: 1.084 MB / 402.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004613/0.1422, allocations: 1.851 MB / 404.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.1449, allocations: 2.136 MB / 406.2 MB, free: 144 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.146, allocations: 0.5776 MB / 406.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.1479, allocations: 0.802 MB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.1494, allocations: 0.759 MB / 408.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002849/0.1497, allocations: 76 kB / 408.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002943/0.1527, allocations: 1.256 MB / 409.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.1531, allocations: 287.1 kB / 410 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008667/0.154, allocations: 457.9 kB / 410.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004253/0.1583, allocations: 1.9 MB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1583, allocations: 0 / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1583, allocations: 0 / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.482e-05/0.1584, allocations: 4 kB / 412.3 MB, free: 10.02 MB / 350.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.003333/0.1617, allocations: 1.303 MB / 413.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/0.1618, allocations: 11.97 kB / 413.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004727/0.1623, allocations: 104.4 kB / 413.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.1635, allocations: 0.6366 MB / 414.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.541e-05/0.1636, allocations: 45.3 kB / 414.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.1637, allocations: 55.94 kB / 414.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.1652, allocations: 0.879 MB / 415.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.1652, allocations: 0 / 415.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.602e-05/0.1653, allocations: 27.98 kB / 415.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.865e-05/0.1654, allocations: 45.28 kB / 415.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.1667, allocations: 0.8169 MB / 416.2 MB, free: 5.945 MB / 350.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.0053/0.172, allocations: 3.827 MB / 420.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009856/0.173, allocations: 0.5435 MB / 420.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.1735, allocations: 278 kB / 420.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004714/0.174, allocations: 0.4991 MB / 421.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.174, allocations: 43 kB / 421.4 MB, free: 392 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.945e-06/0.174, allocations: 3.938 kB / 421.4 MB, free: 388 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004834/0.1789, allocations: 2.133 MB / 423.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.512e-05/0.179, allocations: 140.9 kB / 423.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009662/0.18, allocations: 0.7232 MB / 424.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.939e-05/0.18, allocations: 49.62 kB / 424.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000332/0.1804, allocations: 384.7 kB / 424.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.1806, allocations: 194.4 kB / 425 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1808, allocations: 154.6 kB / 425.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.181, allocations: 386.8 kB / 425.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/0.1816, allocations: 308.7 kB / 425.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006807/0.1823, allocations: 0.5187 MB / 426.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.1834, allocations: 0.7701 MB / 427.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1834, allocations: 4 kB / 427.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001654/0.185, allocations: 1.003 MB / 428.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1851, allocations: 8 kB / 428.2 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1851, allocations: 4.781 kB / 428.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.1867, allocations: 297.4 kB / 428.5 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005527/0.1872, allocations: 151.7 kB / 428.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.1884, allocations: 1.304 MB / 429.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.1889, allocations: 35.98 kB / 430 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.35e-05/0.189, allocations: 31.98 kB / 430 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007068/0.1897, allocations: 489.8 kB / 430.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006213/0.1904, allocations: 0.5041 MB / 431 MB, free: 6.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001036/0.1914, allocations: 0.7513 MB / 431.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.587e-06/0.1914, allocations: 0 / 431.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001583/0.193, allocations: 0.9525 MB / 432.7 MB, free: 4.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.193, allocations: 8.766 kB / 432.7 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.193, allocations: 11.94 kB / 432.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.1941, allocations: 185.6 kB / 432.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.1947, allocations: 167.8 kB / 433 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008964/0.1957, allocations: 1.187 MB / 434.2 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005669/0.1962, allocations: 39.91 kB / 434.3 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-05/0.1963, allocations: 35.98 kB / 434.3 MB, free: 2.848 MB / 366.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.0002612/0.1966, allocations: 236 kB / 434.5 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.1968, allocations: 83.48 kB / 434.6 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.1988, allocations: 0.9693 MB / 435.6 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.1988, allocations: 8 kB / 435.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1988, allocations: 0 / 435.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.1989, allocations: 3.984 kB / 435.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.2019, allocations: 1.759 MB / 437.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2019, allocations: 0 / 437.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.2023, allocations: 99.83 kB / 437.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.2035, allocations: 233.6 kB / 437.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.2035, allocations: 20 kB / 437.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.2046, allocations: 1.276 MB / 439 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2046, allocations: 0 / 439 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.2067, allocations: 1.318 MB / 440.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.207, allocations: 164.5 kB / 440.5 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.2071, allocations: 19.94 kB / 440.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.2076, allocations: 23.98 kB / 440.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.2078, allocations: 52.62 kB / 440.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-05/0.2078, allocations: 40.02 kB / 440.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006728/0.2085, allocations: 0.5107 MB / 441.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2085, allocations: 0 / 441.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001733/0.2103, allocations: 0.5966 MB / 441.7 MB, free: 11.25 MB / 382.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.001426/0.2117, allocations: 0.5286 MB / 442.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.2142, allocations: 1.216 MB / 443.4 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2142, allocations: 0 / 443.4 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000732/0.2149, allocations: 391.4 kB / 443.8 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.2167, allocations: 418.2 kB / 444.2 MB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.2196, allocations: 1.629 MB / 445.9 MB, free: 7.043 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000605/0.2203, allocations: 0.9913 MB / 446.8 MB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.2213, allocations: 323 kB / 447.2 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.2215, allocations: 79.42 kB / 447.2 MB, free: 5.625 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2215, allocations: 4 kB / 447.2 MB, free: 5.621 MB / 382.1 MB Notification: Performance of Templates: time 0.2155/0.437, allocations: 23.03 MB / 470.3 MB, free: 67.17 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)