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.001093/0.001093, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008716/0.0008715, allocations: 99.8 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3296/0.3296, allocations: 45.23 MB / 394.7 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002857, allocations: 4 kB / 468.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3481, allocations: 63.24 MB / 0.5192 GB, free: 43.81 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.773/6.121, allocations: 2.772 GB / 3.291 GB, free: 148.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/6.122, allocations: 92.39 kB / 3.291 GB, free: 148.4 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.909/8.03, allocations: 0.5609 GB / 3.852 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.525e-06/8.03, allocations: 0 / 3.852 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001082/8.031, allocations: 26.31 kB / 3.852 GB, free: 51.5 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.009614/8.04, allocations: 2.124 MB / 3.854 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/8.04, allocations: 15.25 kB / 3.854 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002738/8.043, allocations: 319.9 kB / 3.854 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/8.045, allocations: 0.6845 MB / 3.855 GB, free: 49.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/8.045, allocations: 299.2 kB / 3.855 GB, free: 49.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003097/8.045, allocations: 81.53 kB / 3.855 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/8.049, allocations: 1.527 MB / 3.857 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/8.049, allocations: 7.75 kB / 3.857 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/8.049, allocations: 38.03 kB / 3.857 GB, free: 48.9 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.992e-05/8.049, allocations: 41.44 kB / 3.857 GB, free: 48.9 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003147/8.052, allocations: 1.374 MB / 3.858 GB, free: 48.54 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.008347/8.061, allocations: 6.405 MB / 3.864 GB, free: 43.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/8.063, allocations: 0.9933 MB / 3.865 GB, free: 43.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02924/8.093, allocations: 16.98 MB / 3.882 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/8.093, allocations: 50.5 kB / 3.882 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 3.937e-06/8.093, allocations: 0 / 3.882 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.009173/8.102, allocations: 3.022 MB / 3.885 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/8.102, allocations: 162.7 kB / 3.885 GB, free: 30.25 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/8.103, allocations: 0.7244 MB / 3.886 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000127/8.103, allocations: 49.41 kB / 3.886 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003464/8.104, allocations: 436.5 kB / 3.886 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/8.104, allocations: 221.3 kB / 3.887 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/8.104, allocations: 16 kB / 3.887 GB, free: 29.19 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001493/8.104, allocations: 396.7 kB / 3.887 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008852/8.105, allocations: 450.1 kB / 3.887 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/8.106, allocations: 0.6674 MB / 3.888 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008732/8.107, allocations: 467.3 kB / 3.888 GB, free: 27.39 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/8.107, allocations: 5.969 kB / 3.888 GB, free: 27.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002416/8.109, allocations: 1.234 MB / 3.89 GB, free: 26.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/8.109, allocations: 10.5 kB / 3.89 GB, free: 26.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/8.109, allocations: 8 kB / 3.89 GB, free: 26.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/8.11, allocations: 94.77 kB / 3.89 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/8.114, allocations: 410.5 kB / 3.89 GB, free: 25.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005418/8.119, allocations: 6.475 MB / 3.897 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/8.12, allocations: 141.2 kB / 3.897 GB, free: 19.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/8.121, allocations: 39.42 kB / 3.897 GB, free: 19.05 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.0007326/8.121, allocations: 333 kB / 3.897 GB, free: 18.76 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/8.122, allocations: 90.77 kB / 3.897 GB, free: 18.67 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/8.125, allocations: 2.248 MB / 3.899 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/8.125, allocations: 26.8 kB / 3.899 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/8.125, allocations: 0 / 3.899 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/8.125, allocations: 6.703 kB / 3.899 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005158/8.13, allocations: 3.499 MB / 3.903 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/8.13, allocations: 4 kB / 3.903 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003625/8.134, allocations: 369.9 kB / 3.903 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/8.134, allocations: 106.5 kB / 3.903 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.879e-05/8.134, allocations: 26.34 kB / 3.903 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005428/8.14, allocations: 6.423 MB / 3.909 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/8.14, allocations: 7.969 kB / 3.909 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003254/8.143, allocations: 2.258 MB / 3.912 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006739/8.144, allocations: 346.5 kB / 3.912 GB, free: 4.371 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/8.144, allocations: 31.56 kB / 3.912 GB, free: 4.344 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/8.145, allocations: 124.9 kB / 3.912 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/8.145, allocations: 126.8 kB / 3.912 GB, free: 4.184 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-05/8.145, allocations: 31.31 kB / 3.912 GB, free: 4.16 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001215/8.147, allocations: 0.8761 MB / 3.913 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.2e-07/8.147, allocations: 0 / 3.913 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007152/8.154, allocations: 1.314 MB / 3.914 GB, free: 2.137 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.01122/8.165, allocations: 1.889 MB / 3.916 GB, free: 0.7188 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006983/8.172, allocations: 1.443 MB / 3.918 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.477e-06/8.172, allocations: 4 kB / 3.918 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004061/8.176, allocations: 0.9234 MB / 3.919 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003468/8.18, allocations: 0.5309 MB / 3.919 GB, free: 14.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00662/8.186, allocations: 3.03 MB / 3.922 GB, free: 11.88 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/8.188, allocations: 1.25 MB / 3.923 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001664/8.189, allocations: 492.9 kB / 3.924 GB, free: 10.12 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/8.19, allocations: 83.42 kB / 3.924 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of SimCode: time 9.92e-07/8.19, allocations: 0 / 3.924 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of Templates: time 0.4317/8.622, allocations: 51.68 MB / 3.974 GB, free: 66.64 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/jenkins/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