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") [: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 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 172.5 kB / 8.517 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.4 MB / 230.3 MB, free: 7.645 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009507/0.0009507, allocations: 94.47 kB / 281.2 MB, free: 5.461 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.1852/0.1852, allocations: 44.14 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.818e-06/9.838e-06, allocations: 0 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1447, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.426/5.57, allocations: 2.77 GB / 3.264 GB, free: 3.48 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/5.571, allocations: 79.95 kB / 3.264 GB, free: 3.402 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.912/7.482, allocations: 0.5556 GB / 3.82 GB, free: 53.89 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.306e-05/7.482, allocations: 27.67 kB / 3.82 GB, free: 53.87 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.008298/7.491, allocations: 2.056 MB / 3.822 GB, free: 52 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/7.491, allocations: 8.031 kB / 3.822 GB, free: 52 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002642/7.493, allocations: 340 kB / 3.822 GB, free: 51.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/7.495, allocations: 0.6813 MB / 3.823 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/7.495, allocations: 275.6 kB / 3.823 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/7.495, allocations: 48 kB / 3.823 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001518/7.496, allocations: 1.007 MB / 3.824 GB, free: 49.65 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/7.498, allocations: 1.182 MB / 3.825 GB, free: 48.38 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/7.498, allocations: 7.703 kB / 3.825 GB, free: 48.37 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.416e-05/7.498, allocations: 0 / 3.825 GB, free: 48.37 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-05/7.498, allocations: 45.89 kB / 3.825 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06405/7.562, allocations: 36.13 MB / 3.86 GB, free: 8.336 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/7.563, allocations: 398.5 kB / 3.861 GB, free: 7.941 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/7.563, allocations: 345.9 kB / 3.861 GB, free: 7.602 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/7.563, allocations: 404.7 kB / 3.861 GB, free: 7.137 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/7.563, allocations: 46.88 kB / 3.862 GB, free: 7.078 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=54): time 2.414e-06/7.563, allocations: 0 / 3.862 GB, free: 7.078 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.004205/7.568, allocations: 1.889 MB / 3.863 GB, free: 5.141 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/7.568, allocations: 141 kB / 3.864 GB, free: 4.973 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/7.568, allocations: 0.5059 MB / 3.864 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.326e-05/7.568, allocations: 41.69 kB / 3.864 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/7.569, allocations: 398.4 kB / 3.864 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/7.569, allocations: 195.6 kB / 3.865 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/7.569, allocations: 0 / 3.865 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001051/7.569, allocations: 378.8 kB / 3.865 GB, free: 3.441 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/7.569, allocations: 381.8 kB / 3.865 GB, free: 3.07 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005683/7.57, allocations: 0.6084 MB / 3.866 GB, free: 2.367 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/7.571, allocations: 406.9 kB / 3.866 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/7.571, allocations: 0 / 3.866 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002623/7.573, allocations: 1.296 MB / 3.868 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/7.573, allocations: 8 kB / 3.868 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/7.573, allocations: 4 kB / 3.868 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/7.574, allocations: 93.39 kB / 3.868 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003955/7.578, allocations: 415.3 kB / 3.868 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006444/7.584, allocations: 6.236 MB / 3.874 GB, free: 9.445 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/7.586, allocations: 141.6 kB / 3.874 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/7.586, allocations: 44.05 kB / 3.874 GB, free: 9.266 MB / 0.5417 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.0003328/7.586, allocations: 151 kB / 3.874 GB, free: 9.113 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008368/7.587, allocations: 258.9 kB / 3.875 GB, free: 8.859 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002329/7.589, allocations: 1.651 MB / 3.876 GB, free: 7.184 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/7.589, allocations: 15.98 kB / 3.876 GB, free: 7.168 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/7.589, allocations: 4 kB / 3.876 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/7.589, allocations: 7.891 kB / 3.876 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/7.594, allocations: 2.922 MB / 3.879 GB, free: 4.168 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/7.594, allocations: 4 kB / 3.879 GB, free: 4.164 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003954/7.598, allocations: 330.5 kB / 3.88 GB, free: 3.844 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003409/7.598, allocations: 108.7 kB / 3.88 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/7.598, allocations: 15.98 kB / 3.88 GB, free: 3.719 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2523/7.85, allocations: 6.205 MB / 3.886 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/7.85, allocations: 3.875 kB / 3.886 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003038/7.854, allocations: 2.278 MB / 3.888 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/7.854, allocations: 191 kB / 3.888 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/7.854, allocations: 19.78 kB / 3.888 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008217/7.855, allocations: 112 kB / 3.888 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/7.855, allocations: 123.5 kB / 3.888 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/7.855, allocations: 29.23 kB / 3.888 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004529/7.856, allocations: 457.7 kB / 3.889 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005704/7.861, allocations: 1.249 MB / 3.89 GB, free: 119.7 MB / 0.5417 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.009462/7.871, allocations: 2.094 MB / 3.892 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00657/7.877, allocations: 1.436 MB / 3.894 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/7.877, allocations: 6.812 kB / 3.894 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005751/7.883, allocations: 1.2 MB / 3.895 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/7.885, allocations: 323.9 kB / 3.895 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/7.888, allocations: 1.791 MB / 3.897 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007744/7.889, allocations: 1.23 MB / 3.898 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.793e-06/7.889, allocations: 0 / 3.898 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.08349/7.972, allocations: 44.65 MB / 3.942 GB, free: 117.5 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/jenkins/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