Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001085, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.00128/0.00128, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.0002372, allocations: 6.75 kB / 300.7 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08271/0.08296, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.0143/0.09728, allocations: 15.05 MB / 366.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007651/0.105, allocations: 5.915 MB / 372.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005073/0.1055, allocations: 27.75 kB / 372.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000738/0.1062, allocations: 330.5 kB / 372.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.108, allocations: 0.8296 MB / 373.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003447/0.1114, allocations: 1.457 MB / 374.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001591/0.113, allocations: 1.101 MB / 375.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000609/0.1136, allocations: 425.2 kB / 376.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009393/0.1146, allocations: 0.6154 MB / 376.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006227/0.1152, allocations: 494.3 kB / 377.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.904e-05/0.1153, allocations: 32 kB / 377.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.1172, allocations: 0.9986 MB / 378.4 MB, free: 412 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.1175, allocations: 223.3 kB / 378.6 MB, free: 188 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1176, allocations: 169.3 kB / 378.8 MB, free: 12 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.1191, allocations: 1.224 MB / 380 MB, free: 14.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1191, allocations: 0 / 380 MB, free: 14.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.1192, allocations: 3.938 kB / 380 MB, free: 14.78 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1192, allocations: 0 / 380 MB, free: 14.78 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002/0.1212, allocations: 1.096 MB / 381.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1212, allocations: 8.031 kB / 381.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/0.1215, allocations: 106.9 kB / 381.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.1224, allocations: 0.5464 MB / 381.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.065e-05/0.1225, allocations: 92.39 kB / 381.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.127e-05/0.1226, allocations: 51.98 kB / 381.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.1237, allocations: 0.7891 MB / 382.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.1237, allocations: 4 kB / 382.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.1238, allocations: 23.98 kB / 382.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.494e-05/0.1239, allocations: 40.94 kB / 382.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1249, allocations: 0.6791 MB / 383.4 MB, free: 11.18 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.004285/0.1292, allocations: 3.479 MB / 386.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006082/0.1298, allocations: 425.5 kB / 387.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001546/0.1313, allocations: 1.347 MB / 388.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004481/0.1318, allocations: 353.1 kB / 389 MB, free: 5.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.825e-06/0.1318, allocations: 0 / 389 MB, free: 5.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003349/0.1352, allocations: 1.865 MB / 390.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/0.1353, allocations: 268.9 kB / 391.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008165/0.1361, allocations: 0.7701 MB / 391.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.1362, allocations: 41.69 kB / 392 MB, free: 2.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.1364, allocations: 407 kB / 392.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.1366, allocations: 134.2 kB / 392.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.1366, allocations: 8 kB / 392.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1368, allocations: 390.8 kB / 392.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.1372, allocations: 245.5 kB / 393.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.1377, allocations: 0.4958 MB / 393.6 MB, free: 300 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.1382, allocations: 344.5 kB / 393.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1382, allocations: 7.938 kB / 393.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001497/0.1397, allocations: 0.9487 MB / 394.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007434/0.1405, allocations: 2.563 MB / 397.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1405, allocations: 4 kB / 397.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.141, allocations: 144.7 kB / 397.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.1415, allocations: 131.8 kB / 397.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005408/0.1421, allocations: 0.6811 MB / 398.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005837/0.1427, allocations: 48.05 kB / 398.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.87e-05/0.1428, allocations: 31.98 kB / 398.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.1428, allocations: 4 kB / 398.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001497/0.1443, allocations: 0.8618 MB / 399.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1443, allocations: 7.953 kB / 399.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004103/0.1447, allocations: 125.5 kB / 399.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/0.1452, allocations: 143.7 kB / 399.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005163/0.1457, allocations: 0.6616 MB / 400.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005277/0.1463, allocations: 43.97 kB / 400.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-05/0.1464, allocations: 28 kB / 400.4 MB, free: 9.25 MB / 334.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.0005382/0.1469, allocations: 397 kB / 400.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.147, allocations: 79.06 kB / 400.8 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001199/0.1482, allocations: 0.702 MB / 401.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.1482, allocations: 0 / 401.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1483, allocations: 4 kB / 401.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1483, allocations: 0 / 401.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.1503, allocations: 1.399 MB / 402.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1503, allocations: 8.031 kB / 402.9 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.1506, allocations: 55.97 kB / 403 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.1511, allocations: 136.7 kB / 403.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.1512, allocations: 11.98 kB / 403.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005522/0.1517, allocations: 0.6616 MB / 403.8 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1517, allocations: 4.094 kB / 403.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.1532, allocations: 1.035 MB / 404.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.1534, allocations: 160.2 kB / 405 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.1536, allocations: 12 kB / 405 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.154, allocations: 35.91 kB / 405 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.1541, allocations: 39.94 kB / 405.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.1542, allocations: 16.06 kB / 405.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006106/0.1548, allocations: 0.538 MB / 405.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1548, allocations: 0 / 405.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001346/0.1561, allocations: 0.531 MB / 406.2 MB, free: 3.258 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 (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.0009245/0.1571, allocations: 440.9 kB / 406.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.1592, allocations: 1.181 MB / 407.8 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1592, allocations: 0 / 407.8 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006046/0.1598, allocations: 351.5 kB / 408.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.1613, allocations: 318.3 kB / 408.4 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.1635, allocations: 1.698 MB / 410.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.1641, allocations: 0.9816 MB / 411.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009131/0.165, allocations: 256.5 kB / 411.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.1652, allocations: 59.42 kB / 411.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1652, allocations: 0 / 411.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of Templates: time 0.1679/0.333, allocations: 17.33 MB / 428.7 MB, free: 66.14 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches