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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 192.2 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.051/1.051, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0007952/0.0007954, allocations: 95.36 kB / 261.4 MB, free: 13.55 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.1525/0.1525, allocations: 43.49 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.31e-06/5.33e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2163, allocations: 58.84 MB / 476.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.674/3.89, allocations: 2.764 GB / 3.23 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/3.89, allocations: 81.03 kB / 3.23 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.48/5.371, allocations: 0.5497 GB / 3.78 GB, free: 55.98 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.351e-05/5.371, allocations: 22.84 kB / 3.78 GB, free: 55.98 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.006462/5.377, allocations: 2.06 MB / 3.782 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/5.377, allocations: 8.875 kB / 3.782 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002557/5.38, allocations: 337.4 kB / 3.782 GB, free: 55.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/5.381, allocations: 0.6834 MB / 3.783 GB, free: 54.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/5.381, allocations: 274.2 kB / 3.783 GB, free: 54.51 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/5.382, allocations: 49.94 kB / 3.783 GB, free: 54.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001567/5.383, allocations: 1.008 MB / 3.784 GB, free: 54.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/5.385, allocations: 1.191 MB / 3.785 GB, free: 54.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/5.385, allocations: 2.062 kB / 3.785 GB, free: 54.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/5.385, allocations: 7.688 kB / 3.785 GB, free: 54.22 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/5.385, allocations: 42.75 kB / 3.785 GB, free: 54.22 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06119/5.446, allocations: 36.1 MB / 3.82 GB, free: 32.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/5.447, allocations: 409.4 kB / 3.821 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004782/5.447, allocations: 343.5 kB / 3.821 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002476/5.448, allocations: 396.3 kB / 3.822 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/5.448, allocations: 48.33 kB / 3.822 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=54): time 2.695e-06/5.448, allocations: 0 / 3.822 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.004248/5.452, allocations: 1.881 MB / 3.823 GB, free: 31.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/5.452, allocations: 136.1 kB / 3.824 GB, free: 31.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006071/5.453, allocations: 0.5066 MB / 3.824 GB, free: 30.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.499e-05/5.453, allocations: 43.05 kB / 3.824 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/5.453, allocations: 401.3 kB / 3.824 GB, free: 30.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/5.453, allocations: 192.2 kB / 3.825 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/5.453, allocations: 4 kB / 3.825 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.518e-05/5.453, allocations: 380.8 kB / 3.825 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004968/5.454, allocations: 379.8 kB / 3.825 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/5.454, allocations: 0.6037 MB / 3.826 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000729/5.455, allocations: 413.2 kB / 3.826 GB, free: 29.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/5.455, allocations: 7.062 kB / 3.826 GB, free: 29.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002489/5.458, allocations: 1.288 MB / 3.828 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/5.458, allocations: 3.844 kB / 3.828 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/5.458, allocations: 7.656 kB / 3.828 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/5.458, allocations: 88.86 kB / 3.828 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003798/5.462, allocations: 420 kB / 3.828 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00487/5.467, allocations: 6.245 MB / 3.834 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/5.468, allocations: 143.9 kB / 3.834 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.747e-05/5.468, allocations: 43.03 kB / 3.834 GB, free: 24.23 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real 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 () * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002642/5.468, allocations: 148 kB / 3.835 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007174/5.469, allocations: 257.8 kB / 3.835 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/5.471, allocations: 1.65 MB / 3.836 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/5.471, allocations: 18.17 kB / 3.836 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/5.471, allocations: 7.906 kB / 3.836 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/5.471, allocations: 0 / 3.836 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/5.475, allocations: 2.93 MB / 3.839 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/5.475, allocations: 3.094 kB / 3.839 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003502/5.478, allocations: 333.1 kB / 3.84 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/5.479, allocations: 101.6 kB / 3.84 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.065e-05/5.479, allocations: 12.03 kB / 3.84 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004587/5.483, allocations: 6.214 MB / 3.846 GB, free: 33.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/5.483, allocations: 5.688 kB / 3.846 GB, free: 33.93 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002658/5.486, allocations: 2.277 MB / 3.848 GB, free: 33.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/5.486, allocations: 187.2 kB / 3.848 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/5.486, allocations: 20.45 kB / 3.848 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008766/5.487, allocations: 108.7 kB / 3.848 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/5.487, allocations: 129.8 kB / 3.848 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/5.488, allocations: 27.89 kB / 3.848 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004607/5.488, allocations: 454.1 kB / 3.849 GB, free: 33.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004638/5.493, allocations: 1.253 MB / 3.85 GB, free: 33 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.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[2].medium.phase,massFlowRate[1].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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.007678/5.5, allocations: 2.102 MB / 3.852 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00593/5.506, allocations: 1.443 MB / 3.854 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/5.506, allocations: 4.969 kB / 3.854 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005523/5.512, allocations: 1.204 MB / 3.855 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/5.514, allocations: 320.5 kB / 3.855 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/5.517, allocations: 1.785 MB / 3.857 GB, free: 32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008924/5.518, allocations: 1.238 MB / 3.858 GB, free: 31.28 MB / 0.5261 GB Notification: Performance of SimCode: time 5.51e-07/5.518, allocations: 0 / 3.858 GB, free: 31.28 MB / 0.5261 GB Notification: Performance of Templates: time 0.05707/5.575, allocations: 44.62 MB / 3.902 GB, free: 16.71 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