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.001461/0.001461, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001698/0.001698, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 222.1 MB, free: 5.676 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.0005043/0.0005043, allocations: 16 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2521, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02745/0.2796, allocations: 26.87 MB / 353.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.2971, allocations: 12.7 MB / 366 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001998/0.2991, allocations: 55.5 kB / 366.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.3007, allocations: 0.513 MB / 366.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004923/0.3056, allocations: 1.761 MB / 368.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00788/0.3135, allocations: 2.869 MB / 371.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003673/0.3172, allocations: 2.194 MB / 373.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.3184, allocations: 0.8204 MB / 374.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.3201, allocations: 1.176 MB / 375.4 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3213, allocations: 0.9733 MB / 376.4 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.3215, allocations: 76 kB / 376.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0041/0.3256, allocations: 2.126 MB / 378.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004878/0.3261, allocations: 450.8 kB / 379 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004016/0.3265, allocations: 305 kB / 379.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003929/0.3305, allocations: 2.588 MB / 381.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3305, allocations: 0 / 381.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3305, allocations: 4 kB / 381.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.3305, allocations: 0 / 381.9 MB, free: 11.92 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003966/0.3345, allocations: 1.83 MB / 383.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3345, allocations: 12.03 kB / 383.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/0.335, allocations: 170.2 kB / 383.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.3366, allocations: 0.9178 MB / 384.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.532e-05/0.3367, allocations: 73.98 kB / 384.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002583/0.337, allocations: 104 kB / 385 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.3395, allocations: 1.617 MB / 386.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/0.3395, allocations: 7.844 kB / 386.6 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.3396, allocations: 39.98 kB / 386.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001892/0.3398, allocations: 101.9 kB / 386.8 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.3425, allocations: 1.639 MB / 388.4 MB, free: 5.238 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.01047/0.353, allocations: 6.726 MB / 395.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.3545, allocations: 0.9265 MB / 396.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003887/0.3584, allocations: 2.851 MB / 398.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.3585, allocations: 51.14 kB / 399 MB, free: 10.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.524e-06/0.3585, allocations: 4 kB / 399 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.008087/0.3666, allocations: 3.709 MB / 402.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/0.3667, allocations: 192.9 kB / 402.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/0.3683, allocations: 1.287 MB / 404.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.467e-05/0.3684, allocations: 57.69 kB / 404.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.3688, allocations: 0.6509 MB / 404.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.3691, allocations: 323.5 kB / 405.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.3692, allocations: 24 kB / 405.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3693, allocations: 365.9 kB / 405.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008874/0.3702, allocations: 0.5583 MB / 406.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.3714, allocations: 0.9771 MB / 407.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.3724, allocations: 0.6744 MB / 407.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.3724, allocations: 4 kB / 407.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002878/0.3753, allocations: 1.865 MB / 409.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001608/0.3769, allocations: 4.65 MB / 414.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.3769, allocations: 12 kB / 414.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004863/0.3818, allocations: 0.7828 MB / 415.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.3831, allocations: 287.5 kB / 415.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.3849, allocations: 2.16 MB / 417.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.3862, allocations: 96 kB / 417.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.3863, allocations: 67.98 kB / 417.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.3863, allocations: 4 kB / 417.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002693/0.389, allocations: 1.674 MB / 419.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3891, allocations: 12 kB / 419.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003992/0.3931, allocations: 0.619 MB / 420 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3941, allocations: 291.5 kB / 420.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.3957, allocations: 2.012 MB / 422.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3967, allocations: 100.1 kB / 422.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.3969, allocations: 67.92 kB / 422.5 MB, free: 1.629 MB / 350.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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006902/0.3976, allocations: 473.3 kB / 422.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.3978, allocations: 146.3 kB / 423.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.4008, allocations: 1.521 MB / 424.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.4008, allocations: 8.062 kB / 424.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4008, allocations: 8 kB / 424.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4008, allocations: 7.969 kB / 424.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.4054, allocations: 2.823 MB / 427.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4054, allocations: 7.938 kB / 427.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006607/0.4061, allocations: 147.8 kB / 427.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002874/0.409, allocations: 0.6465 MB / 428.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.423e-05/0.4091, allocations: 28 kB / 428.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.4108, allocations: 2.11 MB / 430.4 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4108, allocations: 0 / 430.4 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00317/0.414, allocations: 2.14 MB / 432.5 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004977/0.4145, allocations: 255.1 kB / 432.8 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.4148, allocations: 24 kB / 432.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.4156, allocations: 75.88 kB / 432.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.4158, allocations: 96.81 kB / 432.9 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.416, allocations: 43.97 kB / 433 MB, free: 6.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.4171, allocations: 0.8927 MB / 433.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4172, allocations: 0 / 433.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002839/0.42, allocations: 1.117 MB / 435 MB, free: 4.785 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001892/0.4219, allocations: 0.8249 MB / 435.8 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004322/0.4262, allocations: 2.241 MB / 438.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.4263, allocations: 4 kB / 438.1 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.4276, allocations: 0.6814 MB / 438.7 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/0.4303, allocations: 0.559 MB / 439.3 MB, free: 480 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004629/0.435, allocations: 3.166 MB / 442.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008752/0.4359, allocations: 1.279 MB / 443.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001934/0.4378, allocations: 0.5745 MB / 444.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.4381, allocations: 115.4 kB / 444.4 MB, free: 11.26 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4381, allocations: 0 / 444.4 MB, free: 11.26 MB / 382.1 MB Notification: Performance of Templates: time 0.1956/0.6338, allocations: 36.57 MB / 481 MB, free: 98.84 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: