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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 176.5 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.589/1.589, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 94.42 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.51e-05/2.514e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1406, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.064/1.205, allocations: 326.1 MB / 0.6969 GB, free: 2.898 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/1.205, allocations: 94.69 kB / 0.697 GB, free: 2.848 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6646/1.869, allocations: 145.1 MB / 0.8387 GB, free: 57.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.693e-06/1.87, allocations: 0 / 0.8387 GB, free: 57.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001343/1.87, allocations: 19.94 kB / 0.8387 GB, free: 57.45 MB / 442.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.003732/1.873, allocations: 1.077 MB / 0.8398 GB, free: 56.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/1.873, allocations: 11.98 kB / 0.8398 GB, free: 56.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008447/1.874, allocations: 102.9 kB / 0.8399 GB, free: 56.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001953/1.876, allocations: 0.6051 MB / 0.8405 GB, free: 55.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/1.876, allocations: 76.7 kB / 0.8405 GB, free: 55.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000219/1.877, allocations: 31.95 kB / 0.8406 GB, free: 55.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001419/1.878, allocations: 0.5961 MB / 0.8412 GB, free: 54.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/1.88, allocations: 0.7498 MB / 0.8419 GB, free: 54.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/1.88, allocations: 0 / 0.8419 GB, free: 54.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/1.88, allocations: 4 kB / 0.8419 GB, free: 54.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-05/1.88, allocations: 37.3 kB / 0.8419 GB, free: 54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006271/1.886, allocations: 3.298 MB / 0.8452 GB, free: 50.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006108/1.887, allocations: 403.3 kB / 0.8455 GB, free: 50.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/1.887, allocations: 253.1 kB / 0.8458 GB, free: 49.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001744/1.889, allocations: 1.382 MB / 0.8471 GB, free: 48.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004357/1.889, allocations: 357 kB / 0.8475 GB, free: 47.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 1.904e-06/1.889, allocations: 0 / 0.8475 GB, free: 47.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.002996/1.892, allocations: 1.43 MB / 0.8489 GB, free: 46.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.242e-05/1.893, allocations: 273 kB / 0.8491 GB, free: 46.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006056/1.893, allocations: 0.5385 MB / 0.8497 GB, free: 45.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/1.893, allocations: 29.7 kB / 0.8497 GB, free: 45.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/1.893, allocations: 415.2 kB / 0.8501 GB, free: 45.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/1.894, allocations: 126.2 kB / 0.8502 GB, free: 45.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/1.894, allocations: 3.938 kB / 0.8502 GB, free: 45.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/1.894, allocations: 386.8 kB / 0.8506 GB, free: 44.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/1.894, allocations: 249.5 kB / 0.8508 GB, free: 44.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/1.894, allocations: 496.4 kB / 0.8513 GB, free: 43.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00091/1.895, allocations: 443.2 kB / 0.8517 GB, free: 43.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/1.895, allocations: 4 kB / 0.8517 GB, free: 43.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001825/1.897, allocations: 1.013 MB / 0.8527 GB, free: 42.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008099/1.898, allocations: 2.48 MB / 0.8551 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/1.898, allocations: 11.95 kB / 0.8551 GB, free: 39.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/1.899, allocations: 112.8 kB / 0.8552 GB, free: 39.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/1.899, allocations: 135.8 kB / 0.8554 GB, free: 39.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006726/1.9, allocations: 0.7084 MB / 0.8561 GB, free: 38.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/1.9, allocations: 36.03 kB / 0.8561 GB, free: 38.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.612e-05/1.9, allocations: 39.98 kB / 0.8561 GB, free: 38.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/1.9, allocations: 4 kB / 0.8561 GB, free: 38.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001835/1.902, allocations: 0.9151 MB / 0.857 GB, free: 37.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.902, allocations: 4 kB / 0.857 GB, free: 37.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002961/1.903, allocations: 109.1 kB / 0.8571 GB, free: 37.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004148/1.903, allocations: 139.8 kB / 0.8573 GB, free: 37.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004215/1.903, allocations: 0.6655 MB / 0.8579 GB, free: 36.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/1.904, allocations: 35.88 kB / 0.858 GB, free: 36.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.15e-05/1.904, allocations: 40.06 kB / 0.858 GB, free: 36.65 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" 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" 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 () * 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.0003518/1.904, allocations: 176.8 kB / 0.8582 GB, free: 36.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/1.905, allocations: 71.28 kB / 0.8582 GB, free: 36.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001413/1.906, allocations: 0.6777 MB / 0.8589 GB, free: 35.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/1.906, allocations: 4 kB / 0.8589 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.906, allocations: 0 / 0.8589 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/1.906, allocations: 11.92 kB / 0.8589 GB, free: 35.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/1.908, allocations: 1.356 MB / 0.8602 GB, free: 34.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/1.908, allocations: 0 / 0.8602 GB, free: 34.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/1.908, allocations: 59.91 kB / 0.8603 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003084/1.909, allocations: 100.8 kB / 0.8604 GB, free: 34.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/1.909, allocations: 15.98 kB / 0.8604 GB, free: 34.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00055/1.909, allocations: 0.685 MB / 0.8611 GB, free: 33.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.909, allocations: 4.016 kB / 0.8611 GB, free: 33.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/1.911, allocations: 1.028 MB / 0.8621 GB, free: 32.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/1.911, allocations: 148.2 kB / 0.8622 GB, free: 32.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/1.911, allocations: 11.98 kB / 0.8622 GB, free: 32.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/1.912, allocations: 35.94 kB / 0.8623 GB, free: 32.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/1.912, allocations: 35.94 kB / 0.8623 GB, free: 32.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/1.912, allocations: 23.98 kB / 0.8623 GB, free: 32.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004699/1.912, allocations: 419.1 kB / 0.8627 GB, free: 31.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.912, allocations: 0 / 0.8627 GB, free: 31.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00218/1.914, allocations: 0.5503 MB / 0.8633 GB, free: 31.11 MB / 442.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) * 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.001583/1.916, allocations: 0.5988 MB / 0.8638 GB, free: 30.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001766/1.918, allocations: 1.07 MB / 0.8649 GB, free: 29.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/1.918, allocations: 4.625 kB / 0.8649 GB, free: 29.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004009/1.918, allocations: 319.2 kB / 0.8652 GB, free: 29.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/1.919, allocations: 237.6 kB / 0.8654 GB, free: 28.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/1.921, allocations: 1.016 MB / 0.8664 GB, free: 27.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/1.922, allocations: 0.9858 MB / 0.8674 GB, free: 26.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008791/1.923, allocations: 268.7 kB / 0.8676 GB, free: 26.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/1.923, allocations: 51.42 kB / 0.8677 GB, free: 26.49 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/1.923, allocations: 0 / 0.8677 GB, free: 26.49 MB / 442.7 MB Notification: Performance of Templates: time 0.02572/1.949, allocations: 16.59 MB / 0.8839 GB, free: 10 MB / 442.7 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