Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 182.2 kB / 15.76 MB, free: 6.367 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.632/1.632, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001301/0.001301, allocations: 94.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2202/0.2202, allocations: 43.56 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 8 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1298, allocations: 58.86 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.152/7.282, allocations: 2.765 GB / 3.244 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/7.283, allocations: 93.7 kB / 3.244 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.402/9.685, allocations: 0.5549 GB / 3.799 GB, free: 44.96 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.857e-06/9.685, allocations: 0 / 3.799 GB, free: 44.96 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001039/9.685, allocations: 29.44 kB / 3.799 GB, free: 44.96 MB / 0.5105 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.01269/9.698, allocations: 2.126 MB / 3.801 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.132e-05/9.698, allocations: 9.406 kB / 3.801 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003211/9.701, allocations: 314.3 kB / 3.802 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00251/9.704, allocations: 0.6835 MB / 3.802 GB, free: 43.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003415/9.704, allocations: 299.6 kB / 3.802 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/9.704, allocations: 83.53 kB / 3.803 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004312/9.709, allocations: 1.523 MB / 3.804 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/9.709, allocations: 10.84 kB / 3.804 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/9.709, allocations: 40.19 kB / 3.804 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.723e-05/9.709, allocations: 39.78 kB / 3.804 GB, free: 43.37 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003528/9.713, allocations: 1.378 MB / 3.805 GB, free: 43.36 MB / 0.5105 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.009643/9.722, allocations: 6.413 MB / 3.812 GB, free: 39.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/9.725, allocations: 0.9975 MB / 3.813 GB, free: 39.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03164/9.757, allocations: 15.56 MB / 3.828 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.03e-05/9.757, allocations: 38.31 kB / 3.828 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 3.456e-06/9.757, allocations: 0 / 3.828 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.009507/9.767, allocations: 3.024 MB / 3.831 GB, free: 29.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/9.767, allocations: 170.1 kB / 3.831 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/9.768, allocations: 0.7164 MB / 3.832 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/9.768, allocations: 50.56 kB / 3.832 GB, free: 28.92 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005151/9.769, allocations: 439.3 kB / 3.832 GB, free: 28.72 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/9.769, allocations: 217.1 kB / 3.832 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/9.769, allocations: 17.88 kB / 3.832 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002366/9.769, allocations: 401 kB / 3.833 GB, free: 28.28 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009908/9.77, allocations: 444.7 kB / 3.833 GB, free: 28.28 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/9.772, allocations: 0.6649 MB / 3.834 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/9.773, allocations: 466.4 kB / 3.834 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/9.773, allocations: 3.281 kB / 3.834 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002992/9.776, allocations: 1.236 MB / 3.836 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.096e-05/9.776, allocations: 8.25 kB / 3.836 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/9.776, allocations: 6.281 kB / 3.836 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005434/9.776, allocations: 92.55 kB / 3.836 GB, free: 27.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00396/9.78, allocations: 408.2 kB / 3.836 GB, free: 27.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007057/9.787, allocations: 6.476 MB / 3.842 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/9.789, allocations: 141.3 kB / 3.842 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/9.79, allocations: 41.02 kB / 3.843 GB, free: 22.11 MB / 0.5105 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.001214/9.791, allocations: 341 kB / 3.843 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004809/9.791, allocations: 86.38 kB / 3.843 GB, free: 21.94 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00406/9.796, allocations: 2.252 MB / 3.845 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/9.796, allocations: 17.92 kB / 3.845 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/9.796, allocations: 0 / 3.845 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/9.796, allocations: 3.094 kB / 3.845 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006295/9.802, allocations: 3.518 MB / 3.849 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/9.802, allocations: 2.094 kB / 3.849 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/9.806, allocations: 367.4 kB / 3.849 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003861/9.806, allocations: 101.8 kB / 3.849 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.772e-05/9.806, allocations: 17.95 kB / 3.849 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00748/9.814, allocations: 6.443 MB / 3.855 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/9.814, allocations: 3.75 kB / 3.855 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003885/9.818, allocations: 2.259 MB / 3.858 GB, free: 30.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008327/9.819, allocations: 343.9 kB / 3.858 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/9.819, allocations: 24.97 kB / 3.858 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/9.82, allocations: 125.2 kB / 3.858 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/9.821, allocations: 130.4 kB / 3.858 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.423e-05/9.821, allocations: 24.73 kB / 3.858 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0016/9.822, allocations: 0.8821 MB / 3.859 GB, free: 30.67 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.633e-06/9.822, allocations: 0 / 3.859 GB, free: 30.67 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007613/9.83, allocations: 1.297 MB / 3.86 GB, free: 30.51 MB / 0.5261 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.01112/9.841, allocations: 1.886 MB / 3.862 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005642/9.847, allocations: 1.312 MB / 3.863 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/9.847, allocations: 3.875 kB / 3.863 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00399/9.851, allocations: 0.9167 MB / 3.864 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003369/9.854, allocations: 0.5255 MB / 3.865 GB, free: 30.15 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006422/9.861, allocations: 3.029 MB / 3.868 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001454/9.862, allocations: 1.248 MB / 3.869 GB, free: 28.19 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001794/9.864, allocations: 490.5 kB / 3.869 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/9.864, allocations: 81.03 kB / 3.87 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of SimCode: time 3.557e-06/9.864, allocations: 1.594 kB / 3.87 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of Templates: time 0.07719/9.942, allocations: 51.6 MB / 3.92 GB, free: 25.03 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches