Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 182.7 kB / 18.09 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 242.1 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008294/0.0008296, allocations: 104.9 kB / 293.3 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3239/0.3239, allocations: 44.14 MB / 388.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003674, allocations: 12 kB / 461.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3768, allocations: 61.88 MB / 0.5107 GB, free: 37.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.264/6.641, allocations: 2.771 GB / 3.282 GB, free: 87.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/6.642, allocations: 91.94 kB / 3.282 GB, free: 87.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.314/8.956, allocations: 0.5338 GB / 3.816 GB, free: 42.98 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.307e-06/8.956, allocations: 0 / 3.816 GB, free: 42.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.976e-05/8.956, allocations: 29.08 kB / 3.816 GB, free: 42.98 MB / 0.5261 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.008585/8.965, allocations: 2.123 MB / 3.818 GB, free: 42.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/8.965, allocations: 7.812 kB / 3.818 GB, free: 42.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002273/8.967, allocations: 323.1 kB / 3.818 GB, free: 42.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/8.969, allocations: 0.6909 MB / 3.819 GB, free: 41.75 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/8.969, allocations: 306.3 kB / 3.819 GB, free: 41.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/8.969, allocations: 79.75 kB / 3.819 GB, free: 41.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/8.972, allocations: 1.531 MB / 3.82 GB, free: 41.22 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/8.972, allocations: 10.72 kB / 3.82 GB, free: 41.22 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/8.972, allocations: 40.56 kB / 3.821 GB, free: 41.22 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.277e-05/8.972, allocations: 44.23 kB / 3.821 GB, free: 41.21 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003133/8.975, allocations: 1.37 MB / 3.822 GB, free: 41.21 MB / 0.5261 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.00781/8.983, allocations: 6.404 MB / 3.828 GB, free: 37.14 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002763/8.986, allocations: 0.9925 MB / 3.829 GB, free: 37.09 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008813/8.987, allocations: 460 kB / 3.83 GB, free: 37.07 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02709/9.014, allocations: 15.56 MB / 3.845 GB, free: 43.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.996e-05/9.014, allocations: 40.59 kB / 3.845 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 2.725e-06/9.014, allocations: 0 / 3.845 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.007789/9.022, allocations: 3.028 MB / 3.848 GB, free: 43.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.769e-05/9.022, allocations: 161.5 kB / 3.848 GB, free: 42.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009324/9.023, allocations: 0.8081 MB / 3.849 GB, free: 42.76 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.131e-05/9.023, allocations: 47.86 kB / 3.849 GB, free: 42.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/9.023, allocations: 438.9 kB / 3.849 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/9.023, allocations: 214.4 kB / 3.849 GB, free: 42.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.891e-05/9.023, allocations: 17.78 kB / 3.849 GB, free: 42.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001647/9.024, allocations: 401.3 kB / 3.85 GB, free: 42.09 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007979/9.024, allocations: 449.6 kB / 3.85 GB, free: 42.09 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008794/9.025, allocations: 0.6679 MB / 3.851 GB, free: 41.84 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/9.027, allocations: 0.9702 MB / 3.852 GB, free: 41.61 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/9.027, allocations: 3.969 kB / 3.852 GB, free: 41.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002193/9.029, allocations: 1.23 MB / 3.853 GB, free: 41.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/9.029, allocations: 8.969 kB / 3.853 GB, free: 41.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/9.029, allocations: 9.562 kB / 3.853 GB, free: 41.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003564/9.029, allocations: 96.52 kB / 3.853 GB, free: 41.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/9.033, allocations: 409.6 kB / 3.854 GB, free: 41.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005682/9.038, allocations: 6.422 MB / 3.86 GB, free: 35.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/9.04, allocations: 140.1 kB / 3.86 GB, free: 35.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.757e-05/9.04, allocations: 43.58 kB / 3.86 GB, free: 35.68 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.0006831/9.04, allocations: 336.6 kB / 3.86 GB, free: 35.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/9.041, allocations: 95.05 kB / 3.86 GB, free: 35.52 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/9.044, allocations: 2.248 MB / 3.863 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/9.044, allocations: 17.98 kB / 3.863 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/9.044, allocations: 3.688 kB / 3.863 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/9.044, allocations: 3.375 kB / 3.863 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004951/9.049, allocations: 3.505 MB / 3.866 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/9.049, allocations: 4.719 kB / 3.866 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/9.052, allocations: 370.5 kB / 3.866 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/9.052, allocations: 99.69 kB / 3.866 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/9.052, allocations: 26.47 kB / 3.866 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006064/9.058, allocations: 6.407 MB / 3.873 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/9.058, allocations: 5.531 kB / 3.873 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/9.062, allocations: 2.189 MB / 3.875 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005825/9.062, allocations: 339.3 kB / 3.875 GB, free: 28.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/9.063, allocations: 32.11 kB / 3.875 GB, free: 28.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007952/9.063, allocations: 113.8 kB / 3.875 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/9.064, allocations: 130.2 kB / 3.875 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-05/9.064, allocations: 29.38 kB / 3.875 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00108/9.065, allocations: 0.8806 MB / 3.876 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/9.065, allocations: 3.188 kB / 3.876 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006013/9.071, allocations: 1.303 MB / 3.878 GB, free: 28.16 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.007107/9.078, allocations: 1.885 MB / 3.879 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004691/9.083, allocations: 1.343 MB / 3.881 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/9.083, allocations: 5.625 kB / 3.881 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0035/9.086, allocations: 0.9568 MB / 3.882 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/9.089, allocations: 0.5265 MB / 3.882 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/9.093, allocations: 3.037 MB / 3.885 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/9.094, allocations: 1.22 MB / 3.886 GB, free: 25.76 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001052/9.095, allocations: 491.8 kB / 3.887 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/9.095, allocations: 80.27 kB / 3.887 GB, free: 25.72 MB / 0.5417 GB Notification: Performance of SimCode: time 1.152e-06/9.095, allocations: 4 kB / 3.887 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.07072/9.166, allocations: 54.12 MB / 3.94 GB, free: 22.6 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches