Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00879/0.00879, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.498/1.498, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0004626/0.0004626, allocations: 11.98 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.224, allocations: 47.58 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02142/0.2454, allocations: 21.92 MB / 349 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.2601, allocations: 10.26 MB / 359.2 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.2614, allocations: 39.69 kB / 359.3 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.2625, allocations: 346.1 kB / 359.6 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003589/0.2661, allocations: 1.326 MB / 360.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006598/0.2727, allocations: 2.229 MB / 363.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005063/0.2778, allocations: 3.793 MB / 366.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009993/0.2788, allocations: 0.5731 MB / 367.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001492/0.2803, allocations: 0.8327 MB / 368.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001421/0.2817, allocations: 0.9732 MB / 369.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.2819, allocations: 48 kB / 369.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.2855, allocations: 1.673 MB / 371 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003668/0.2859, allocations: 319 kB / 371.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005917/0.2865, allocations: 0.5071 MB / 371.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003847/0.2903, allocations: 2.384 MB / 374.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2904, allocations: 0 / 374.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.2904, allocations: 3.938 kB / 374.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.2904, allocations: 0 / 374.2 MB, free: 4.027 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002814/0.2932, allocations: 1.309 MB / 375.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.2933, allocations: 12.03 kB / 375.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000409/0.2937, allocations: 110.8 kB / 375.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.2947, allocations: 0.6863 MB / 376.4 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.288e-05/0.2948, allocations: 53.3 kB / 376.4 MB, free: 1.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.2949, allocations: 59.98 kB / 376.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.2966, allocations: 1.06 MB / 377.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.2966, allocations: 4 kB / 377.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.553e-05/0.2967, allocations: 27.98 kB / 377.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.903e-05/0.2968, allocations: 65.27 kB / 377.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.2985, allocations: 1.04 MB / 378.7 MB, free: 15.45 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.006691/0.3052, allocations: 4.453 MB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000927/0.3061, allocations: 0.567 MB / 383.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004873/0.3066, allocations: 318 kB / 384 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002638/0.3093, allocations: 1.981 MB / 386 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3093, allocations: 34.89 kB / 386 MB, free: 7.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.605e-06/0.3093, allocations: 4 kB / 386 MB, free: 7.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004568/0.3139, allocations: 1.965 MB / 388 MB, free: 5.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.711e-05/0.314, allocations: 158.2 kB / 388.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.3153, allocations: 0.9351 MB / 389.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.716e-05/0.3153, allocations: 37.7 kB / 389.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004469/0.3158, allocations: 486.8 kB / 389.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.316, allocations: 165.7 kB / 389.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.3161, allocations: 77.67 kB / 389.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.3163, allocations: 349.9 kB / 390.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005861/0.3169, allocations: 329.8 kB / 390.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008502/0.3177, allocations: 0.6251 MB / 391.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.319, allocations: 0.8812 MB / 392 MB, free: 1.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.319, allocations: 4 kB / 392 MB, free: 1.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00181/0.3208, allocations: 1.124 MB / 393.1 MB, free: 48 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002946/0.3211, allocations: 348.9 kB / 393.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.3211, allocations: 12 kB / 393.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0026/0.3237, allocations: 401.2 kB / 393.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.3244, allocations: 175.7 kB / 394 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3256, allocations: 1.351 MB / 395.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008813/0.3265, allocations: 60.09 kB / 395.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8e-05/0.3266, allocations: 39.98 kB / 395.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.3266, allocations: 4 kB / 395.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001657/0.3282, allocations: 0.9834 MB / 396.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3283, allocations: 8 kB / 396.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.3306, allocations: 349.4 kB / 396.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/0.3312, allocations: 187.7 kB / 397 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.3322, allocations: 1.308 MB / 398.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007021/0.3329, allocations: 60.03 kB / 398.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.333, allocations: 40 kB / 398.4 MB, free: 10.51 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006443/0.3337, allocations: 372.7 kB / 398.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.3338, allocations: 90.88 kB / 398.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.3355, allocations: 0.8012 MB / 399.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.3356, allocations: 4 kB / 399.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3356, allocations: 0 / 399.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3356, allocations: 3.984 kB / 399.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002503/0.3381, allocations: 1.595 MB / 401.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.3381, allocations: 4 kB / 401.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003496/0.3385, allocations: 75.91 kB / 401.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.3399, allocations: 301.5 kB / 401.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.34, allocations: 19.98 kB / 401.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3411, allocations: 1.3 MB / 403 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.3411, allocations: 8.031 kB / 403 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.3428, allocations: 1.08 MB / 404 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.3432, allocations: 191.8 kB / 404.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3433, allocations: 15.94 kB / 404.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006078/0.3439, allocations: 35.97 kB / 404.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.344, allocations: 48.44 kB / 404.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.3441, allocations: 23.98 kB / 404.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009876/0.3451, allocations: 0.652 MB / 405 MB, free: 3.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3451, allocations: 0 / 405 MB, free: 3.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003103/0.3482, allocations: 0.7534 MB / 405.8 MB, free: 2.938 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001616/0.3499, allocations: 0.6031 MB / 406.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002908/0.3528, allocations: 1.281 MB / 407.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3528, allocations: 4 kB / 407.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005659/0.3534, allocations: 312 kB / 408 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.3555, allocations: 391 kB / 408.3 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.3585, allocations: 2.098 MB / 410.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.3591, allocations: 1.029 MB / 411.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001331/0.3604, allocations: 372 kB / 411.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3606, allocations: 79.42 kB / 411.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3606, allocations: 0 / 411.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Templates: time 0.0399/0.4005, allocations: 23.81 MB / 435.7 MB, free: 4.867 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)