Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001247/0.001247, allocations: 199.8 kB / 16.14 MB, free: 6.797 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.405/1.405, allocations: 205.1 MB / 222 MB, free: 4.742 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.001133/0.001133, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2474, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03847/0.2859, allocations: 32.26 MB / 356.9 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01915/0.3051, allocations: 14.96 MB / 371.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002132/0.3073, allocations: 55.56 kB / 372 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00156/0.3089, allocations: 0.5011 MB / 372.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004667/0.3136, allocations: 2.046 MB / 374.5 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00718/0.3207, allocations: 3.118 MB / 377.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005898/0.3267, allocations: 5.938 MB / 383.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.3283, allocations: 0.8691 MB / 384.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.3309, allocations: 1.269 MB / 385.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001999/0.3329, allocations: 1.53 MB / 387.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002371/0.3332, allocations: 76 kB / 387.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00423/0.3374, allocations: 2.266 MB / 389.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006176/0.338, allocations: 498.5 kB / 390.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009789/0.339, allocations: 0.7541 MB / 390.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004681/0.3437, allocations: 3.518 MB / 394.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3437, allocations: 4 kB / 394.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3437, allocations: 0 / 394.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.3438, allocations: 0 / 394.3 MB, free: 14.28 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00416/0.3479, allocations: 2.107 MB / 396.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.348, allocations: 8.031 kB / 396.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005527/0.3485, allocations: 166.2 kB / 396.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.3499, allocations: 0.9522 MB / 397.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.35, allocations: 85.91 kB / 397.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.3502, allocations: 95.89 kB / 397.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.3527, allocations: 1.632 MB / 399.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.3527, allocations: 3.938 kB / 399.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.3529, allocations: 43.97 kB / 399.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.353, allocations: 105.9 kB / 399.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002626/0.3557, allocations: 1.647 MB / 401.2 MB, free: 7.258 MB / 334.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.009637/0.3653, allocations: 6.644 MB / 407.8 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.3669, allocations: 0.9266 MB / 408.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008218/0.3678, allocations: 0.5542 MB / 409.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003843/0.3716, allocations: 2.809 MB / 412.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3717, allocations: 51.16 kB / 412.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.495e-06/0.3717, allocations: 0 / 412.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008448/0.3802, allocations: 3.7 MB / 415.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.3803, allocations: 200.9 kB / 416 MB, free: 7.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.382, allocations: 1.302 MB / 417.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.3821, allocations: 45.7 kB / 417.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004747/0.3826, allocations: 0.651 MB / 418 MB, free: 5.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/0.3828, allocations: 327.4 kB / 418.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004252/0.3832, allocations: 287.3 kB / 418.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3834, allocations: 305.1 kB / 418.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009633/0.3843, allocations: 0.5903 MB / 419.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.3856, allocations: 0.9966 MB / 420.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.3876, allocations: 1.485 MB / 422 MB, free: 1.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3876, allocations: 4 kB / 422 MB, free: 1.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003083/0.3907, allocations: 1.901 MB / 423.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3907, allocations: 8 kB / 423.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.3907, allocations: 16.12 kB / 423.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004862/0.3956, allocations: 0.7632 MB / 424.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.3967, allocations: 287.6 kB / 425 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.3989, allocations: 2.176 MB / 427.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.4001, allocations: 80.02 kB / 427.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.4002, allocations: 71.97 kB / 427.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001365/0.4016, allocations: 0.8434 MB / 428.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001166/0.4028, allocations: 0.9952 MB / 429.2 MB, free: 9.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001893/0.4047, allocations: 1.452 MB / 430.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.043e-06/0.4047, allocations: 4 kB / 430.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003152/0.4079, allocations: 1.834 MB / 432.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4079, allocations: 16.16 kB / 432.5 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4079, allocations: 12 kB / 432.5 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004031/0.412, allocations: 0.5916 MB / 433.1 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.413, allocations: 291.4 kB / 433.3 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.4147, allocations: 2.024 MB / 435.4 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.4158, allocations: 91.94 kB / 435.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.416, allocations: 67.98 kB / 435.5 MB, free: 3.113 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003902/0.4164, allocations: 275.7 kB / 435.8 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000262/0.4166, allocations: 142.2 kB / 435.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003033/0.4197, allocations: 1.529 MB / 437.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.4197, allocations: 11.94 kB / 437.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.4197, allocations: 0 / 437.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.4197, allocations: 3.984 kB / 437.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.4241, allocations: 2.803 MB / 440.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.4241, allocations: 0 / 440.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006873/0.4248, allocations: 151.8 kB / 440.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003069/0.4279, allocations: 0.6113 MB / 441 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.991e-05/0.428, allocations: 23.98 kB / 441.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/0.4298, allocations: 2.11 MB / 443.2 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4298, allocations: 3.938 kB / 443.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.4331, allocations: 2.094 MB / 445.3 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003887/0.4335, allocations: 219.6 kB / 445.5 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.4338, allocations: 35.92 kB / 445.5 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009109/0.4347, allocations: 63.8 kB / 445.6 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.4349, allocations: 100.8 kB / 445.7 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.435, allocations: 43.97 kB / 445.7 MB, free: 8.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.4363, allocations: 0.9044 MB / 446.6 MB, free: 7.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4363, allocations: 3.938 kB / 446.6 MB, free: 7.734 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002796/0.4391, allocations: 1.113 MB / 447.7 MB, free: 6.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002161/0.4413, allocations: 0.8214 MB / 448.6 MB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004576/0.4459, allocations: 2.264 MB / 450.8 MB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.4459, allocations: 3.859 kB / 450.8 MB, free: 3.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.4472, allocations: 0.6849 MB / 451.5 MB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.4502, allocations: 0.6066 MB / 452.1 MB, free: 2.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1381/0.5883, allocations: 3.183 MB / 455.3 MB, free: 115.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/0.5895, allocations: 1.265 MB / 456.6 MB, free: 114.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002283/0.5918, allocations: 0.571 MB / 457.1 MB, free: 114.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.5921, allocations: 113.4 kB / 457.3 MB, free: 114.4 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5921, allocations: 0 / 457.3 MB, free: 114.4 MB / 382.1 MB Notification: Performance of Templates: time 0.04672/0.6389, allocations: 38.15 MB / 495.4 MB, free: 84.41 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)