Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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.TestVolume,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Volume.ports.1..m_flow|Volume.ports.1..p|Volume.ports.1..h_outflow|Volume.ports.2..m_flow|Volume.ports.2..p|Volume.ports.2..h_outflow|Volume.portsData.1..diameter|Volume.portsData.1..height|Volume.portsData.1..zeta_out|Volume.portsData.1..zeta_in|Volume.portsData.2..diameter|Volume.portsData.2..height|Volume.portsData.2..zeta_out|Volume.portsData.2..zeta_in|Volume.ports_H_flow.1.|Volume.ports_H_flow.2.|Volume.ports_E_flow.1.|Volume.ports_E_flow.2.|Volume.ports_penetration.1.|Volume.ports_penetration.2.|Volume.portsData_diameter_internal.1.|Volume.portsData_diameter_internal.2.|Volume.portsData_height_internal.1.|Volume.portsData_height_internal.2.|Volume.portsData_zeta_in_internal.1.|Volume.portsData_zeta_in_internal.2.|Volume.portsData_zeta_out_internal.1.|Volume.portsData_zeta_out_internal.2.|Volume.portsData_diameter.1.|Volume.portsData_diameter.2.|Volume.portsData_height.1.|Volume.portsData_height.2.|Volume.portsData_zeta_in.1.|Volume.portsData_zeta_in.2.|Volume.portsData_zeta_out.1.|Volume.portsData_zeta_out.2.|FlowSource.ports.1..m_flow|FlowSource.ports.1..p|FlowSource.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Step1.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Volume.ports.1..m_flow|Volume.ports.1..p|Volume.ports.1..h_outflow|Volume.ports.2..m_flow|Volume.ports.2..p|Volume.ports.2..h_outflow|Volume.portsData.1..diameter|Volume.portsData.1..height|Volume.portsData.1..zeta_out|Volume.portsData.1..zeta_in|Volume.portsData.2..diameter|Volume.portsData.2..height|Volume.portsData.2..zeta_out|Volume.portsData.2..zeta_in|Volume.ports_H_flow.1.|Volume.ports_H_flow.2.|Volume.ports_E_flow.1.|Volume.ports_E_flow.2.|Volume.ports_penetration.1.|Volume.ports_penetration.2.|Volume.portsData_diameter_internal.1.|Volume.portsData_diameter_internal.2.|Volume.portsData_height_internal.1.|Volume.portsData_height_internal.2.|Volume.portsData_zeta_in_internal.1.|Volume.portsData_zeta_in_internal.2.|Volume.portsData_zeta_out_internal.1.|Volume.portsData_zeta_out_internal.2.|Volume.portsData_diameter.1.|Volume.portsData_diameter.2.|Volume.portsData_height.1.|Volume.portsData_height.2.|Volume.portsData_zeta_in.1.|Volume.portsData_zeta_in.2.|Volume.portsData_zeta_out.1.|Volume.portsData_zeta_out.2.|FlowSource.ports.1..m_flow|FlowSource.ports.1..p|FlowSource.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Step1.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume") [: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.001776/0.001776, allocations: 170.2 kB / 8.147 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.768/1.768, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001283/0.001283, allocations: 88.77 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2699/0.2699, allocations: 43.5 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.486e-06/8.576e-06, allocations: 224 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3094, allocations: 58.84 MB / 476.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.043/6.352, allocations: 2.764 GB / 3.229 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/6.353, allocations: 83.27 kB / 3.229 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.645/7.998, allocations: 353.5 MB / 3.575 GB, free: 61.92 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.446e-05/7.998, allocations: 12.81 kB / 3.575 GB, free: 61.92 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.008175/8.006, allocations: 1.666 MB / 3.576 GB, free: 60.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/8.006, allocations: 10.31 kB / 3.576 GB, free: 60.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006036/8.012, allocations: 475 kB / 3.577 GB, free: 60.85 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/8.014, allocations: 0.5686 MB / 3.577 GB, free: 60.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/8.014, allocations: 93.61 kB / 3.577 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/8.014, allocations: 32.16 kB / 3.577 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00233/8.017, allocations: 0.7454 MB / 3.578 GB, free: 60.16 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/8.019, allocations: 0.8485 MB / 3.579 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/8.019, allocations: 0 / 3.579 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/8.019, allocations: 2.812 kB / 3.579 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.878e-05/8.019, allocations: 40.61 kB / 3.579 GB, free: 59.74 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1484/8.168, allocations: 44.66 MB / 3.623 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/8.169, allocations: 0.5711 MB / 3.623 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006856/8.17, allocations: 313.4 kB / 3.623 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0578/8.228, allocations: 16.58 MB / 3.64 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/8.228, allocations: 38.5 kB / 3.64 GB, free: 9.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=43): time 3.196e-06/8.228, allocations: 4 kB / 3.64 GB, free: 9.566 MB / 0.5105 GB Notification: Performance of matching and sorting (n=43): time 0.008089/8.236, allocations: 1.345 MB / 3.641 GB, free: 8.215 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/8.236, allocations: 110.8 kB / 3.641 GB, free: 8.082 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008978/8.237, allocations: 392.9 kB / 3.641 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001505/8.237, allocations: 29.7 kB / 3.641 GB, free: 7.656 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/8.237, allocations: 334 kB / 3.642 GB, free: 7.324 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/8.238, allocations: 138 kB / 3.642 GB, free: 7.188 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/8.238, allocations: 0 / 3.642 GB, free: 7.188 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001644/8.238, allocations: 338.7 kB / 3.642 GB, free: 6.848 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000915/8.239, allocations: 313.2 kB / 3.642 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/8.24, allocations: 480.9 kB / 3.643 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003789/8.244, allocations: 0.6057 MB / 3.644 GB, free: 5.398 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/8.244, allocations: 0 / 3.644 GB, free: 5.398 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.007321/8.251, allocations: 1.515 MB / 3.645 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/8.251, allocations: 8 kB / 3.645 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/8.251, allocations: 11.92 kB / 3.645 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/8.253, allocations: 420.2 kB / 3.645 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000997/8.254, allocations: 127.8 kB / 3.646 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004802/8.259, allocations: 1.935 MB / 3.647 GB, free: 1.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/8.26, allocations: 87.67 kB / 3.648 GB, free: 1.254 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/8.26, allocations: 31.98 kB / 3.648 GB, free: 1.223 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002467/8.26, allocations: 53.42 kB / 3.648 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/8.262, allocations: 271.1 kB / 3.648 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1987/8.46, allocations: 2.848 MB / 3.651 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.633e-05/8.46, allocations: 31.69 kB / 3.651 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/8.46, allocations: 0 / 3.651 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/8.46, allocations: 3.375 kB / 3.651 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007614/8.468, allocations: 3.661 MB / 3.654 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/8.468, allocations: 7.5 kB / 3.654 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/8.469, allocations: 74.72 kB / 3.654 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/8.471, allocations: 0.7238 MB / 3.655 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-05/8.471, allocations: 7.75 kB / 3.655 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00463/8.475, allocations: 2.348 MB / 3.657 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/8.475, allocations: 0 / 3.657 GB, free: 132 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006247/8.482, allocations: 2.379 MB / 3.66 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007138/8.482, allocations: 286.9 kB / 3.66 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/8.483, allocations: 7.469 kB / 3.66 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/8.484, allocations: 54.58 kB / 3.66 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/8.484, allocations: 64.91 kB / 3.66 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.084e-05/8.484, allocations: 24.73 kB / 3.66 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006223/8.485, allocations: 370 kB / 3.66 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006102/8.491, allocations: 1.192 MB / 3.662 GB, free: 131.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01115/8.502, allocations: 1.749 MB / 3.663 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003164/8.505, allocations: 1.217 MB / 3.665 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/8.505, allocations: 3.719 kB / 3.665 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002133/8.507, allocations: 0.9906 MB / 3.665 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/8.51, allocations: 256.2 kB / 3.666 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/8.514, allocations: 1.696 MB / 3.667 GB, free: 131 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009214/8.515, allocations: 1.13 MB / 3.668 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.884e-06/8.515, allocations: 3.188 kB / 3.668 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.07369/8.589, allocations: 39.03 MB / 3.707 GB, free: 128.8 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches