Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002703/0.002703, allocations: 184.5 kB / 8.148 MB, free: 0.8555 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.2 MB / 213.7 MB, free: 8.613 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 87.5 kB / 261.8 MB, free: 5.18 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2887/0.2887, allocations: 43.49 MB / 353.2 MB, free: 11.43 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 8.266e-06/8.286e-06, allocations: 0 / 417.7 MB, free: 68.61 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 58.85 MB / 476.5 MB, free: 9.695 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.034/6.142, allocations: 2.764 GB / 3.23 GB, free: 23.95 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/6.142, allocations: 82.27 kB / 3.23 GB, free: 23.91 MB / 0.5027 GB Notification: Performance of FrontEnd: time 2.494/8.636, allocations: 0.5497 GB / 3.78 GB, free: 45.01 MB / 0.5027 GB Notification: Performance of Transformations before backend: time 8.855e-05/8.636, allocations: 21.88 kB / 3.78 GB, free: 45 MB / 0.5027 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.009911/8.646, allocations: 2.062 MB / 3.782 GB, free: 43.91 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/8.646, allocations: 9 kB / 3.782 GB, free: 43.91 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004255/8.65, allocations: 339 kB / 3.782 GB, free: 43.84 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/8.653, allocations: 0.6826 MB / 3.783 GB, free: 43.43 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/8.653, allocations: 268.9 kB / 3.783 GB, free: 43.17 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/8.653, allocations: 54.62 kB / 3.783 GB, free: 43.17 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00282/8.656, allocations: 1.011 MB / 3.784 GB, free: 42.86 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/8.659, allocations: 1.181 MB / 3.785 GB, free: 42.29 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/8.659, allocations: 9.344 kB / 3.785 GB, free: 42.29 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/8.659, allocations: 3.938 kB / 3.785 GB, free: 42.29 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.853e-05/8.659, allocations: 38.73 kB / 3.785 GB, free: 42.29 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1208/8.78, allocations: 36.11 MB / 3.82 GB, free: 10.99 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009836/8.781, allocations: 394.6 kB / 3.821 GB, free: 10.64 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/8.782, allocations: 343.2 kB / 3.821 GB, free: 10.34 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003935/8.782, allocations: 401.3 kB / 3.822 GB, free: 9.898 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/8.783, allocations: 39 kB / 3.822 GB, free: 9.848 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=54): time 3.076e-06/8.783, allocations: 6.844 kB / 3.822 GB, free: 9.844 MB / 0.5027 GB Notification: Performance of matching and sorting (n=59): time 0.007376/8.79, allocations: 1.879 MB / 3.823 GB, free: 8.176 MB / 0.5027 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/8.79, allocations: 141 kB / 3.824 GB, free: 8.008 MB / 0.5027 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009935/8.791, allocations: 0.5154 MB / 3.824 GB, free: 7.535 MB / 0.5027 GB Notification: Performance of collectPreVariables (initialization): time 0.0001888/8.791, allocations: 39.58 kB / 3.824 GB, free: 7.492 MB / 0.5027 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/8.792, allocations: 424.5 kB / 3.824 GB, free: 7.105 MB / 0.5027 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/8.792, allocations: 195.9 kB / 3.825 GB, free: 6.934 MB / 0.5027 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/8.792, allocations: 0 / 3.825 GB, free: 6.934 MB / 0.5027 GB Notification: Performance of setup shared object (initialization): time 9.856e-05/8.792, allocations: 353.8 kB / 3.825 GB, free: 6.59 MB / 0.5027 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/8.793, allocations: 386 kB / 3.825 GB, free: 6.254 MB / 0.5027 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/8.794, allocations: 0.5987 MB / 3.826 GB, free: 5.609 MB / 0.5027 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/8.796, allocations: 416 kB / 3.826 GB, free: 5.266 MB / 0.5027 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/8.796, allocations: 0 / 3.826 GB, free: 5.266 MB / 0.5027 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004839/8.8, allocations: 1.257 MB / 3.828 GB, free: 4.211 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/8.8, allocations: 4 kB / 3.828 GB, free: 4.207 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/8.801, allocations: 13.14 kB / 3.828 GB, free: 4.195 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/8.801, allocations: 86.12 kB / 3.828 GB, free: 4.125 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008262/8.809, allocations: 415.3 kB / 3.828 GB, free: 3.844 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009612/8.819, allocations: 6.216 MB / 3.834 GB, free: 13.26 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/8.821, allocations: 127.9 kB / 3.834 GB, free: 13.14 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/8.821, allocations: 47.95 kB / 3.834 GB, free: 13.09 MB / 0.5183 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.V:DUMMY_DER(fixed = false ) "Actual tank volume" 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.0004007/8.822, allocations: 71.86 kB / 3.834 GB, free: 13.02 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/8.823, allocations: 258.9 kB / 3.835 GB, free: 12.76 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004195/8.827, allocations: 1.647 MB / 3.836 GB, free: 11.11 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.601e-05/8.827, allocations: 19.92 kB / 3.836 GB, free: 11.09 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/8.827, allocations: 0 / 3.836 GB, free: 11.09 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/8.827, allocations: 7.984 kB / 3.836 GB, free: 11.08 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008108/8.835, allocations: 2.935 MB / 3.839 GB, free: 8.086 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/8.835, allocations: 4 kB / 3.839 GB, free: 8.082 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007696/8.843, allocations: 327.8 kB / 3.839 GB, free: 7.762 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005642/8.844, allocations: 104.8 kB / 3.84 GB, free: 7.656 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/8.844, allocations: 15.97 kB / 3.84 GB, free: 7.641 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/8.854, allocations: 6.212 MB / 3.846 GB, free: 0.9688 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/8.855, allocations: 0 / 3.846 GB, free: 0.9688 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2085/9.063, allocations: 2.274 MB / 3.848 GB, free: 110.7 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004561/9.064, allocations: 179.6 kB / 3.848 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003044/9.064, allocations: 22.83 kB / 3.848 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/9.065, allocations: 109 kB / 3.848 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000437/9.066, allocations: 129.8 kB / 3.848 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/9.066, allocations: 28.78 kB / 3.848 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of sort global known variables: time 0.0008409/9.067, allocations: 455.8 kB / 3.849 GB, free: 110.6 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.00664/9.074, allocations: 1.251 MB / 3.85 GB, free: 110.6 MB / 0.5183 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.01174/9.085, allocations: 2.081 MB / 3.852 GB, free: 110.4 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.01212/9.098, allocations: 1.437 MB / 3.853 GB, free: 110.4 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/9.098, allocations: 0 / 3.853 GB, free: 110.4 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.01128/9.109, allocations: 1.184 MB / 3.855 GB, free: 110.4 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003199/9.112, allocations: 321.9 kB / 3.855 GB, free: 110.4 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/9.117, allocations: 1.821 MB / 3.857 GB, free: 110 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/9.119, allocations: 1.23 MB / 3.858 GB, free: 109.3 MB / 0.5183 GB Notification: Performance of SimCode: time 1.573e-06/9.119, allocations: 0 / 3.858 GB, free: 109.3 MB / 0.5183 GB Notification: Performance of Templates: time 0.09615/9.215, allocations: 56.58 MB / 3.913 GB, free: 107.3 MB / 0.5183 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches