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.0009873/0.0009874, allocations: 95.84 kB / 17.35 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 207.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.00021, allocations: 8 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08738, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.1743/0.2617, allocations: 17.56 MB / 376.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008941/0.2707, allocations: 6.886 MB / 383.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006371/0.2713, allocations: 27.75 kB / 383.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000849/0.2722, allocations: 339.1 kB / 384.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00237/0.2746, allocations: 0.9592 MB / 385 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004161/0.2787, allocations: 1.589 MB / 386.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003472/0.2822, allocations: 2.885 MB / 389.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006245/0.2829, allocations: 445.1 kB / 389.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.2839, allocations: 0.6712 MB / 390.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009404/0.2848, allocations: 0.7567 MB / 391.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.285, allocations: 33.41 kB / 391.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002144/0.2871, allocations: 1.114 MB / 392.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.2874, allocations: 244.1 kB / 392.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003984/0.2878, allocations: 420.6 kB / 393.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001855/0.2896, allocations: 1.673 MB / 394.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2897, allocations: 7.938 kB / 394.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2897, allocations: 0 / 394.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.2897, allocations: 1.469 kB / 394.8 MB, free: 4.23 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.001868/0.2916, allocations: 1.095 MB / 395.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2916, allocations: 9.812 kB / 395.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.2919, allocations: 100 kB / 396 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.2927, allocations: 0.5754 MB / 396.6 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.371e-05/0.2928, allocations: 92.12 kB / 396.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.781e-05/0.2929, allocations: 46.52 kB / 396.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.294, allocations: 0.8006 MB / 397.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.294, allocations: 5.375 kB / 397.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.2941, allocations: 20.25 kB / 397.6 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-05/0.2941, allocations: 44.41 kB / 397.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.2951, allocations: 0.6776 MB / 398.3 MB, free: 1.828 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.004136/0.2993, allocations: 3.454 MB / 401.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.3, allocations: 415.8 kB / 402.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003707/0.3003, allocations: 256.1 kB / 402.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001562/0.3019, allocations: 1.339 MB / 403.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.3024, allocations: 361.9 kB / 404.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.784e-06/0.3024, allocations: 0 / 404.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003532/0.306, allocations: 1.788 MB / 405.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.3061, allocations: 272.2 kB / 406.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009197/0.307, allocations: 0.7744 MB / 406.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.32e-05/0.3071, allocations: 42.41 kB / 407 MB, free: 11.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.3074, allocations: 397.5 kB / 407.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.3076, allocations: 142.2 kB / 407.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.627e-05/0.3077, allocations: 64.31 kB / 407.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3078, allocations: 386.1 kB / 407.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.3083, allocations: 257.5 kB / 408.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005974/0.3089, allocations: 0.5069 MB / 408.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007416/0.3163, allocations: 1.884 MB / 410.6 MB, free: 7.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3163, allocations: 0 / 410.6 MB, free: 7.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001638/0.318, allocations: 0.9607 MB / 411.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.3182, allocations: 312.8 kB / 411.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3182, allocations: 4 kB / 411.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005/0.3187, allocations: 148.7 kB / 412 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005071/0.3192, allocations: 135.8 kB / 412.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005795/0.3198, allocations: 0.681 MB / 412.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.3205, allocations: 51.94 kB / 412.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/0.3205, allocations: 32 kB / 412.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-06/0.3205, allocations: 4 kB / 412.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/0.3222, allocations: 0.8813 MB / 413.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3222, allocations: 8.656 kB / 413.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.3226, allocations: 116.8 kB / 413.9 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.3231, allocations: 143.6 kB / 414 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005082/0.3236, allocations: 0.6694 MB / 414.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.3242, allocations: 43.88 kB / 414.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.3242, allocations: 36 kB / 414.8 MB, free: 3.09 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004773/0.3247, allocations: 387.5 kB / 415.2 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3248, allocations: 87 kB / 415.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.3261, allocations: 0.6935 MB / 415.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3261, allocations: 7.984 kB / 416 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3261, allocations: 3.938 kB / 416 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3262, allocations: 0 / 416 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.3281, allocations: 1.399 MB / 417.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3282, allocations: 0 / 417.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003046/0.3285, allocations: 55.97 kB / 417.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004539/0.3289, allocations: 136.8 kB / 417.5 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.329, allocations: 8 kB / 417.5 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005466/0.3295, allocations: 0.6655 MB / 418.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3295, allocations: 0 / 418.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.331, allocations: 1.025 MB / 419.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.3311, allocations: 160.2 kB / 419.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.3313, allocations: 15.94 kB / 419.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.3317, allocations: 39.88 kB / 419.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.3318, allocations: 31.95 kB / 419.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.3319, allocations: 24.92 kB / 419.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006507/0.3326, allocations: 0.5341 MB / 420 MB, free: 13.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3326, allocations: 3.938 kB / 420 MB, free: 13.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001483/0.3341, allocations: 0.5388 MB / 420.6 MB, free: 13.11 MB / 334.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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.3351, allocations: 449.7 kB / 421 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3372, allocations: 1.186 MB / 422.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.3372, allocations: 0 / 422.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.3379, allocations: 355.6 kB / 422.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.3396, allocations: 334 kB / 422.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.3419, allocations: 1.782 MB / 424.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.3424, allocations: 0.9671 MB / 425.6 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008215/0.3432, allocations: 249.5 kB / 425.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3434, allocations: 59.42 kB / 425.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3434, allocations: 0 / 425.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of Templates: time 0.02972/0.3731, allocations: 17.92 MB / 443.9 MB, free: 5.867 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches