Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002818/0.002817, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00084/0.0008399, allocations: 103.2 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.329/0.329, allocations: 44.84 MB / 394.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003096, allocations: 4 kB / 467.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3447, allocations: 62.96 MB / 0.5184 GB, free: 37.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.809/7.154, allocations: 2.772 GB / 3.29 GB, free: 158.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/7.155, allocations: 94.64 kB / 3.29 GB, free: 158.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.28/9.435, allocations: 0.5338 GB / 3.824 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.238e-06/9.435, allocations: 7.906 kB / 3.824 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001545/9.435, allocations: 28.94 kB / 3.824 GB, free: 59.04 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.01208/9.447, allocations: 2.114 MB / 3.826 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/9.447, allocations: 14.2 kB / 3.826 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003012/9.45, allocations: 318.3 kB / 3.827 GB, free: 57.91 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/9.453, allocations: 0.699 MB / 3.827 GB, free: 57.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003362/9.453, allocations: 302.7 kB / 3.828 GB, free: 57.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000463/9.454, allocations: 84.62 kB / 3.828 GB, free: 57.17 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004295/9.458, allocations: 1.533 MB / 3.829 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.068e-05/9.458, allocations: 7.844 kB / 3.829 GB, free: 56.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/9.458, allocations: 35.84 kB / 3.829 GB, free: 56.49 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.543e-05/9.458, allocations: 40.48 kB / 3.829 GB, free: 56.49 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003383/9.462, allocations: 1.376 MB / 3.831 GB, free: 56.13 MB / 0.5417 GB 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.009435/9.471, allocations: 6.408 MB / 3.837 GB, free: 51.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/9.474, allocations: 0.9873 MB / 3.838 GB, free: 51.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009558/9.475, allocations: 456 kB / 3.838 GB, free: 50.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03207/9.507, allocations: 17 MB / 3.855 GB, free: 39.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.697e-05/9.507, allocations: 43.03 kB / 3.855 GB, free: 39.45 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 4.108e-06/9.507, allocations: 0 / 3.855 GB, free: 39.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.01124/9.518, allocations: 3.03 MB / 3.858 GB, free: 38.24 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/9.518, allocations: 161.8 kB / 3.858 GB, free: 38.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/9.52, allocations: 0.8058 MB / 3.859 GB, free: 37.72 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/9.52, allocations: 51.62 kB / 3.859 GB, free: 37.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000458/9.52, allocations: 436.1 kB / 3.859 GB, free: 37.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/9.521, allocations: 219.1 kB / 3.859 GB, free: 37.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.698e-05/9.521, allocations: 15.81 kB / 3.859 GB, free: 37.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002155/9.521, allocations: 398.8 kB / 3.86 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009571/9.522, allocations: 449.6 kB / 3.86 GB, free: 36.68 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/9.523, allocations: 0.6675 MB / 3.861 GB, free: 36.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/9.525, allocations: 0.9735 MB / 3.862 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/9.525, allocations: 3.406 kB / 3.862 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002759/9.528, allocations: 1.23 MB / 3.863 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/9.528, allocations: 11.84 kB / 3.863 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/9.528, allocations: 6.906 kB / 3.863 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004402/9.528, allocations: 88.23 kB / 3.863 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/9.532, allocations: 410.4 kB / 3.864 GB, free: 35.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007152/9.539, allocations: 6.423 MB / 3.87 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/9.541, allocations: 137.8 kB / 3.87 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/9.541, allocations: 39.08 kB / 3.87 GB, free: 28.99 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001199/9.542, allocations: 338.3 kB / 3.87 GB, free: 28.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/9.543, allocations: 98.78 kB / 3.87 GB, free: 28.73 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/9.546, allocations: 2.246 MB / 3.873 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.702e-05/9.547, allocations: 23.14 kB / 3.873 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/9.547, allocations: 3.938 kB / 3.873 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/9.547, allocations: 3.703 kB / 3.873 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005659/9.552, allocations: 3.502 MB / 3.876 GB, free: 26.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/9.552, allocations: 6.312 kB / 3.876 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003013/9.555, allocations: 367.1 kB / 3.876 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003447/9.556, allocations: 101.8 kB / 3.877 GB, free: 26.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.219e-05/9.556, allocations: 22.83 kB / 3.877 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005236/9.561, allocations: 6.405 MB / 3.883 GB, free: 19.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/9.561, allocations: 3.75 kB / 3.883 GB, free: 19.97 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003344/9.564, allocations: 2.186 MB / 3.885 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006233/9.565, allocations: 344.2 kB / 3.885 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003311/9.565, allocations: 30.3 kB / 3.885 GB, free: 18.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/9.566, allocations: 115.2 kB / 3.885 GB, free: 18.68 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/9.567, allocations: 134.3 kB / 3.886 GB, free: 18.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.847e-05/9.567, allocations: 33.3 kB / 3.886 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001359/9.568, allocations: 0.8797 MB / 3.886 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/9.568, allocations: 0 / 3.886 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006812/9.575, allocations: 1.314 MB / 3.888 GB, free: 18.04 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0115/9.586, allocations: 1.892 MB / 3.89 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005579/9.592, allocations: 1.342 MB / 3.891 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/9.592, allocations: 3.5 kB / 3.891 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003798/9.596, allocations: 0.9537 MB / 3.892 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/9.6, allocations: 0.5258 MB / 3.892 GB, free: 16.81 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006049/9.606, allocations: 3.04 MB / 3.895 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/9.607, allocations: 1.22 MB / 3.896 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001641/9.609, allocations: 496.4 kB / 3.897 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/9.609, allocations: 79.94 kB / 3.897 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of SimCode: time 4.328e-06/9.609, allocations: 0 / 3.897 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of Templates: time 0.5788/10.19, allocations: 54.16 MB / 3.95 GB, free: 69.46 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches