Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002199/0.002199, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009753/0.0009753, allocations: 90.55 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 8 kB / 328.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3623, allocations: 47.56 MB / 375.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.006/1.368, allocations: 326.3 MB / 0.6857 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/1.369, allocations: 93.55 kB / 0.6857 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5975/1.966, allocations: 143.6 MB / 0.8259 GB, free: 100.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.966, allocations: 0 / 0.8259 GB, free: 100.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001049/1.966, allocations: 22.44 kB / 0.826 GB, free: 100.9 MB / 426.7 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.003612/1.97, allocations: 1.175 MB / 0.8271 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/1.97, allocations: 11.75 kB / 0.8271 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000705/1.971, allocations: 95 kB / 0.8272 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/1.973, allocations: 0.6155 MB / 0.8278 GB, free: 99.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/1.973, allocations: 90.14 kB / 0.8279 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/1.973, allocations: 52.36 kB / 0.8279 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/1.975, allocations: 0.8192 MB / 0.8287 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/1.975, allocations: 3.094 kB / 0.8287 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-05/1.975, allocations: 24.75 kB / 0.8288 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.259e-05/1.975, allocations: 39.7 kB / 0.8288 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/1.976, allocations: 0.6815 MB / 0.8295 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/1.981, allocations: 3.417 MB / 0.8328 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006321/1.981, allocations: 417.3 kB / 0.8332 GB, free: 97.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001812/1.983, allocations: 1.375 MB / 0.8345 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/1.984, allocations: 373.2 kB / 0.8349 GB, free: 96.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.194e-06/1.984, allocations: 0 / 0.8349 GB, free: 96.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003915/1.988, allocations: 1.967 MB / 0.8368 GB, free: 96.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.118e-05/1.988, allocations: 270.5 kB / 0.8371 GB, free: 95.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000945/1.989, allocations: 0.6797 MB / 0.8377 GB, free: 95.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.517e-05/1.989, allocations: 43.67 kB / 0.8378 GB, free: 95.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/1.989, allocations: 395.6 kB / 0.8382 GB, free: 95.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/1.989, allocations: 142.1 kB / 0.8383 GB, free: 95.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/1.989, allocations: 14.47 kB / 0.8383 GB, free: 95.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/1.989, allocations: 384.8 kB / 0.8387 GB, free: 95.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/1.99, allocations: 263.4 kB / 0.8389 GB, free: 95.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/1.99, allocations: 0.4993 MB / 0.8394 GB, free: 94.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005229/1.991, allocations: 356.6 kB / 0.8398 GB, free: 94.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/1.991, allocations: 3.844 kB / 0.8398 GB, free: 94.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001673/1.993, allocations: 0.9855 MB / 0.8407 GB, free: 94.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006298/1.993, allocations: 2.472 MB / 0.8431 GB, free: 92.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/1.993, allocations: 11.25 kB / 0.8431 GB, free: 92.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006789/1.994, allocations: 131.8 kB / 0.8433 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004906/1.994, allocations: 140.3 kB / 0.8434 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005607/1.995, allocations: 0.685 MB / 0.8441 GB, free: 91.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007944/1.996, allocations: 48.7 kB / 0.8441 GB, free: 91.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/1.996, allocations: 43.38 kB / 0.8442 GB, free: 91.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/1.996, allocations: 6.469 kB / 0.8442 GB, free: 91.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001709/1.998, allocations: 0.921 MB / 0.8451 GB, free: 91.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/1.998, allocations: 7.531 kB / 0.8451 GB, free: 91.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004213/1.998, allocations: 117 kB / 0.8452 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/1.999, allocations: 135.4 kB / 0.8453 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004735/1.999, allocations: 0.6655 MB / 0.846 GB, free: 91.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006862/2, allocations: 48.7 kB / 0.846 GB, free: 91.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/2, allocations: 38.19 kB / 0.8461 GB, free: 91.02 MB / 426.7 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: 28 * 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 (78): * Single equations (assignments): 76 * 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.0006348/2, allocations: 385 kB / 0.8464 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/2.001, allocations: 80.88 kB / 0.8465 GB, free: 90.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/2.002, allocations: 0.745 MB / 0.8472 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/2.002, allocations: 6.875 kB / 0.8472 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/2.002, allocations: 0 / 0.8472 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/2.002, allocations: 11.86 kB / 0.8472 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/2.004, allocations: 1.472 MB / 0.8487 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/2.004, allocations: 0 / 0.8487 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/2.005, allocations: 57.03 kB / 0.8487 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005131/2.005, allocations: 128.2 kB / 0.8489 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.554e-05/2.005, allocations: 18.16 kB / 0.8489 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005038/2.006, allocations: 0.6691 MB / 0.8495 GB, free: 89.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/2.006, allocations: 6.984 kB / 0.8495 GB, free: 89.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/2.007, allocations: 1.102 MB / 0.8506 GB, free: 89.51 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/2.008, allocations: 161 kB / 0.8508 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/2.008, allocations: 17.22 kB / 0.8508 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/2.008, allocations: 32.5 kB / 0.8508 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/2.008, allocations: 40.84 kB / 0.8508 GB, free: 89.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.432e-05/2.009, allocations: 25.48 kB / 0.8509 GB, free: 89.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006902/2.009, allocations: 0.5303 MB / 0.8514 GB, free: 89.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.009, allocations: 3.5 kB / 0.8514 GB, free: 89.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002224/2.011, allocations: 0.593 MB / 0.852 GB, free: 89.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * 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.002023/2.014, allocations: 0.5978 MB / 0.8526 GB, free: 89.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002627/2.016, allocations: 1.168 MB / 0.8537 GB, free: 88.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/2.016, allocations: 0 / 0.8537 GB, free: 88.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006572/2.017, allocations: 351.7 kB / 0.854 GB, free: 88.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/2.019, allocations: 317.1 kB / 0.8543 GB, free: 88.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/2.021, allocations: 1.697 MB / 0.856 GB, free: 88.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/2.022, allocations: 0.9764 MB / 0.8569 GB, free: 87.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008956/2.023, allocations: 242.9 kB / 0.8572 GB, free: 87.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/2.023, allocations: 67.97 kB / 0.8572 GB, free: 87.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.173e-06/2.023, allocations: 0 / 0.8572 GB, free: 87.41 MB / 426.7 MB Notification: Performance of Templates: time 0.0285/2.051, allocations: 18.27 MB / 0.8751 GB, free: 86.42 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches