Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009037/0.0009039, allocations: 95.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009504/0.0009504, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.2 MB / 245.9 MB, free: 12.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001982/0.0001982, allocations: 8 kB / 306.6 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08366, allocations: 51.48 MB / 358.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.1709/0.2546, allocations: 15.09 MB / 373.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008256/0.2629, allocations: 5.933 MB / 379.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006204/0.2635, allocations: 26.75 kB / 379.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007712/0.2643, allocations: 333.2 kB / 379.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002329/0.2666, allocations: 0.8402 MB / 380.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004173/0.2708, allocations: 1.446 MB / 381.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.2727, allocations: 1.094 MB / 382.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006764/0.2734, allocations: 438.5 kB / 383.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.2744, allocations: 0.6068 MB / 383.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006709/0.2751, allocations: 0.4899 MB / 384.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.565e-05/0.2752, allocations: 35.03 kB / 384.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00213/0.2773, allocations: 1.009 MB / 385.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.2776, allocations: 221.2 kB / 385.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.2778, allocations: 174.9 kB / 385.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.2794, allocations: 1.233 MB / 387 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.2794, allocations: 1 kB / 387 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2794, allocations: 0 / 387 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.2794, allocations: 4 kB / 387 MB, free: 8.273 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00195/0.2813, allocations: 1.103 MB / 388.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2814, allocations: 8.938 kB / 388.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003506/0.2817, allocations: 100.5 kB / 388.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008462/0.2826, allocations: 0.5474 MB / 388.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.776e-05/0.2827, allocations: 90.95 kB / 388.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.923e-05/0.2828, allocations: 46.45 kB / 388.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.2839, allocations: 0.797 MB / 389.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.2839, allocations: 2.344 kB / 389.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.141e-05/0.284, allocations: 23.94 kB / 389.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.285e-05/0.2841, allocations: 44.98 kB / 389.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009601/0.285, allocations: 0.6804 MB / 390.4 MB, free: 6.27 MB / 302.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.004075/0.2891, allocations: 3.481 MB / 393.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.2898, allocations: 426.4 kB / 394.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001641/0.2915, allocations: 1.351 MB / 395.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004682/0.292, allocations: 355.9 kB / 396 MB, free: 1.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 1.753e-06/0.292, allocations: 0 / 396 MB, free: 1.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0035/0.2955, allocations: 1.859 MB / 397.9 MB, free: 300 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/0.2956, allocations: 266.4 kB / 398.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009454/0.2965, allocations: 0.7726 MB / 398.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.025e-05/0.2966, allocations: 39.2 kB / 399 MB, free: 15.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.2969, allocations: 404.2 kB / 399.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.297, allocations: 129.1 kB / 399.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.2971, allocations: 14.75 kB / 399.5 MB, free: 15.03 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2972, allocations: 395.3 kB / 399.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.2977, allocations: 248.8 kB / 400.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.2983, allocations: 0.498 MB / 400.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.2988, allocations: 341.8 kB / 401 MB, free: 13.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2988, allocations: 1.812 kB / 401 MB, free: 13.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001587/0.3004, allocations: 0.9438 MB / 401.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008553/0.3013, allocations: 2.568 MB / 404.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.747e-05/0.3013, allocations: 7.312 kB / 404.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005364/0.3018, allocations: 136 kB / 404.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.3024, allocations: 140.3 kB / 404.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005991/0.303, allocations: 0.6851 MB / 405.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007061/0.3037, allocations: 41.8 kB / 405.5 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.088e-05/0.3038, allocations: 36.86 kB / 405.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.3038, allocations: 3.25 kB / 405.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001412/0.3052, allocations: 0.8649 MB / 406.4 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3052, allocations: 6.125 kB / 406.4 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003844/0.3056, allocations: 121.5 kB / 406.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.3061, allocations: 141.8 kB / 406.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004828/0.3066, allocations: 0.6675 MB / 407.3 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000573/0.3072, allocations: 39.17 kB / 407.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/0.3072, allocations: 37.64 kB / 407.4 MB, free: 8.77 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005228/0.3077, allocations: 390.5 kB / 407.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.3079, allocations: 79.09 kB / 407.8 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.3091, allocations: 0.6945 MB / 408.5 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3091, allocations: 7.703 kB / 408.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3091, allocations: 0 / 408.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3091, allocations: 3.984 kB / 408.6 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002002/0.3111, allocations: 1.408 MB / 410 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.3112, allocations: 3.953 kB / 410 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.3115, allocations: 59.97 kB / 410 MB, free: 6.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004646/0.3119, allocations: 132.8 kB / 410.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.312, allocations: 8 kB / 410.2 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005033/0.3125, allocations: 0.6616 MB / 410.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3125, allocations: 4.031 kB / 410.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.3138, allocations: 1.029 MB / 411.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.314, allocations: 164.2 kB / 412 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.3142, allocations: 12 kB / 412 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004794/0.3147, allocations: 36.03 kB / 412.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/0.3148, allocations: 31.95 kB / 412.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.3148, allocations: 23.94 kB / 412.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006354/0.3155, allocations: 0.5302 MB / 412.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3155, allocations: 4 kB / 412.7 MB, free: 4.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001646/0.3171, allocations: 0.5349 MB / 413.2 MB, free: 3.582 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009925/0.3181, allocations: 449.1 kB / 413.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.3202, allocations: 1.174 MB / 414.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3202, allocations: 0 / 414.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000607/0.3208, allocations: 355.8 kB / 415.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.3223, allocations: 318.7 kB / 415.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.3245, allocations: 1.708 MB / 417.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.325, allocations: 0.9865 MB / 418.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008248/0.3258, allocations: 246 kB / 418.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.326, allocations: 59.42 kB / 418.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.326, allocations: 4 kB / 418.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Templates: time 0.02593/0.3519, allocations: 17.41 MB / 435.9 MB, free: 12.97 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches