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.001002/0.001002, allocations: 176 kB / 16.76 MB, free: 5.031 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.52/1.52, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008233/0.000823, allocations: 104.9 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3485/0.3485, allocations: 43.57 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004174/0.0004174, allocations: 16 kB / 432.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1209, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.418/6.539, allocations: 2.766 GB / 3.246 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/6.539, allocations: 87.08 kB / 3.246 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.125/8.664, allocations: 0.5279 GB / 3.774 GB, free: 45.03 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.046e-06/8.664, allocations: 0 / 3.774 GB, free: 45.03 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.811e-05/8.664, allocations: 26.59 kB / 3.774 GB, free: 45.03 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.008061/8.672, allocations: 2.115 MB / 3.776 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/8.672, allocations: 9.219 kB / 3.776 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002188/8.674, allocations: 318.9 kB / 3.776 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/8.676, allocations: 0.7012 MB / 3.777 GB, free: 43.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/8.676, allocations: 310.1 kB / 3.777 GB, free: 43.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/8.676, allocations: 79.5 kB / 3.777 GB, free: 43.61 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/8.679, allocations: 1.525 MB / 3.778 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.854e-05/8.679, allocations: 10.61 kB / 3.779 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/8.679, allocations: 40.19 kB / 3.779 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.609e-05/8.679, allocations: 43.02 kB / 3.779 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003441/8.683, allocations: 1.37 MB / 3.78 GB, free: 43.32 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.008223/8.691, allocations: 6.407 MB / 3.786 GB, free: 39.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/8.694, allocations: 0.9986 MB / 3.787 GB, free: 39.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009509/8.695, allocations: 449.5 kB / 3.788 GB, free: 39.18 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/8.723, allocations: 15.57 MB / 3.803 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.357e-05/8.723, allocations: 38.69 kB / 3.803 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.685e-06/8.723, allocations: 1.594 kB / 3.803 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.008877/8.732, allocations: 3.021 MB / 3.806 GB, free: 29.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/8.732, allocations: 170.2 kB / 3.806 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/8.733, allocations: 0.8104 MB / 3.807 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.196e-05/8.733, allocations: 47.3 kB / 3.807 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003816/8.734, allocations: 433.8 kB / 3.807 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000214/8.734, allocations: 222.3 kB / 3.807 GB, free: 28.51 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/8.734, allocations: 19.66 kB / 3.807 GB, free: 28.51 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001893/8.734, allocations: 398.8 kB / 3.808 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009979/8.735, allocations: 447.9 kB / 3.808 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/8.736, allocations: 0.6669 MB / 3.809 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/8.738, allocations: 0.984 MB / 3.81 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/8.738, allocations: 3.844 kB / 3.81 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00257/8.741, allocations: 1.232 MB / 3.811 GB, free: 27.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/8.741, allocations: 10.06 kB / 3.811 GB, free: 27.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/8.741, allocations: 6.875 kB / 3.811 GB, free: 27.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004053/8.741, allocations: 90.52 kB / 3.811 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003444/8.745, allocations: 406.7 kB / 3.812 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/8.75, allocations: 6.427 MB / 3.818 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/8.751, allocations: 133.8 kB / 3.818 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/8.751, allocations: 42.25 kB / 3.818 GB, free: 21.79 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.0006648/8.752, allocations: 334.3 kB / 3.818 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/8.752, allocations: 92.78 kB / 3.818 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/8.755, allocations: 2.248 MB / 3.821 GB, free: 21.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.38e-05/8.755, allocations: 21.27 kB / 3.821 GB, free: 21.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/8.755, allocations: 1.031 kB / 3.821 GB, free: 21.35 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/8.755, allocations: 3.047 kB / 3.821 GB, free: 21.35 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/8.76, allocations: 3.513 MB / 3.824 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/8.76, allocations: 7.062 kB / 3.824 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003149/8.763, allocations: 367 kB / 3.824 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003616/8.764, allocations: 104.7 kB / 3.824 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.618e-05/8.764, allocations: 14.12 kB / 3.825 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006821/8.771, allocations: 6.41 MB / 3.831 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/8.771, allocations: 3.438 kB / 3.831 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004033/8.775, allocations: 2.194 MB / 3.833 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000834/8.776, allocations: 335.6 kB / 3.833 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/8.776, allocations: 35.95 kB / 3.833 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009122/8.777, allocations: 112.2 kB / 3.833 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003511/8.777, allocations: 135 kB / 3.834 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/8.777, allocations: 25.33 kB / 3.834 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001469/8.779, allocations: 0.8782 MB / 3.834 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.61e-07/8.779, allocations: 0 / 3.834 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007163/8.786, allocations: 1.302 MB / 3.836 GB, free: 30.26 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.01043/8.796, allocations: 1.892 MB / 3.838 GB, free: 29.94 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00554/8.802, allocations: 1.344 MB / 3.839 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/8.802, allocations: 0 / 3.839 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003875/8.806, allocations: 0.9539 MB / 3.84 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/8.81, allocations: 0.5295 MB / 3.84 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00512/8.815, allocations: 3.031 MB / 3.843 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/8.816, allocations: 1.225 MB / 3.844 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001503/8.817, allocations: 485.4 kB / 3.845 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/8.818, allocations: 86.36 kB / 3.845 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of SimCode: time 1.223e-06/8.818, allocations: 5.594 kB / 3.845 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of Templates: time 0.07528/8.893, allocations: 54.09 MB / 3.898 GB, free: 24.4 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/jenkins1/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