Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 182.3 kB / 8.52 MB, free: 1.832 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.435/1.435, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.001152/0.001151, allocations: 90 kB / 281.2 MB, free: 5.504 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.2276/0.2276, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.939e-06/9.959e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1635, allocations: 61.9 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.735/5.898, allocations: 2.769 GB / 3.263 GB, free: 5.145 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/5.898, allocations: 79.95 kB / 3.263 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.19/7.089, allocations: 357.2 MB / 3.612 GB, free: 48.85 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.009e-05/7.089, allocations: 16 kB / 3.612 GB, free: 48.83 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.007456/7.096, allocations: 1.674 MB / 3.614 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/7.097, allocations: 11.97 kB / 3.614 GB, free: 47.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003789/7.1, allocations: 478.4 kB / 3.614 GB, free: 46.65 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/7.102, allocations: 0.56 MB / 3.615 GB, free: 46.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-05/7.102, allocations: 92.7 kB / 3.615 GB, free: 45.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/7.102, allocations: 32 kB / 3.615 GB, free: 45.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001205/7.103, allocations: 0.752 MB / 3.616 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/7.104, allocations: 0.8413 MB / 3.617 GB, free: 44.28 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/7.104, allocations: 3.938 kB / 3.617 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/7.104, allocations: 7.984 kB / 3.617 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.976e-05/7.104, allocations: 33.3 kB / 3.617 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0818/7.186, allocations: 44.65 MB / 3.66 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/7.187, allocations: 0.5966 MB / 3.661 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/7.188, allocations: 308.7 kB / 3.661 GB, free: 9.855 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2783/7.466, allocations: 16.56 MB / 3.677 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/7.466, allocations: 37.22 kB / 3.677 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=43): time 2.384e-06/7.466, allocations: 3.469 kB / 3.677 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=43): time 0.004612/7.471, allocations: 1.343 MB / 3.679 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/7.471, allocations: 106.4 kB / 3.679 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/7.471, allocations: 396.5 kB / 3.679 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.05e-05/7.471, allocations: 27.7 kB / 3.679 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/7.471, allocations: 297.5 kB / 3.679 GB, free: 129 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/7.472, allocations: 142.7 kB / 3.679 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/7.472, allocations: 0 / 3.679 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.215e-05/7.472, allocations: 363.1 kB / 3.68 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/7.472, allocations: 311.9 kB / 3.68 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/7.473, allocations: 476.2 kB / 3.681 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/7.474, allocations: 0.6103 MB / 3.681 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/7.474, allocations: 0 / 3.681 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003728/7.478, allocations: 1.545 MB / 3.683 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/7.478, allocations: 5.062 kB / 3.683 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/7.478, allocations: 7.844 kB / 3.683 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007939/7.479, allocations: 413.9 kB / 3.683 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/7.48, allocations: 136.5 kB / 3.683 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/7.482, allocations: 1.938 MB / 3.685 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007933/7.483, allocations: 102.7 kB / 3.685 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.247e-05/7.483, allocations: 32.55 kB / 3.685 GB, free: 127.3 MB / 0.5261 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.0001714/7.483, allocations: 125.4 kB / 3.685 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007531/7.484, allocations: 280.9 kB / 3.686 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/7.488, allocations: 2.836 MB / 3.688 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/7.488, allocations: 26.36 kB / 3.688 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/7.488, allocations: 3.906 kB / 3.688 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/7.488, allocations: 3.375 kB / 3.688 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004523/7.492, allocations: 3.652 MB / 3.692 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/7.492, allocations: 3.531 kB / 3.692 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/7.493, allocations: 65.86 kB / 3.692 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/7.494, allocations: 0.7309 MB / 3.693 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/7.494, allocations: 10.27 kB / 3.693 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002792/7.496, allocations: 2.348 MB / 3.695 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/7.497, allocations: 0 / 3.695 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003805/7.5, allocations: 2.372 MB / 3.697 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/7.501, allocations: 290.5 kB / 3.698 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/7.501, allocations: 6.844 kB / 3.698 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/7.501, allocations: 50.28 kB / 3.698 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/7.502, allocations: 58.42 kB / 3.698 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.714e-05/7.502, allocations: 29.19 kB / 3.698 GB, free: 125 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004064/7.502, allocations: 370.4 kB / 3.698 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006203/7.508, allocations: 1.197 MB / 3.699 GB, free: 124.9 MB / 0.5261 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.007912/7.516, allocations: 1.751 MB / 3.701 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002315/7.519, allocations: 1.221 MB / 3.702 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/7.519, allocations: 0 / 3.702 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001348/7.52, allocations: 1.008 MB / 3.703 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/7.521, allocations: 255.6 kB / 3.703 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/7.524, allocations: 1.657 MB / 3.705 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006408/7.525, allocations: 1.134 MB / 3.706 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of SimCode: time 4.31e-07/7.525, allocations: 0 / 3.706 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.05228/7.577, allocations: 41.31 MB / 3.747 GB, free: 122.8 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches