Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") [: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.001588/0.001588, allocations: 172.4 kB / 8.149 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.732/1.732, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001271/0.001271, allocations: 98.89 kB / 261.8 MB, free: 13.61 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.2711/0.2711, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.464e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2819, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9912/1.273, allocations: 474.4 MB / 0.9286 GB, free: 83.93 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/1.273, allocations: 96.73 kB / 0.9287 GB, free: 83.88 MB / 0.4948 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 0.8613/2.135, allocations: 191.8 MB / 1.116 GB, free: 99.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.318e-05/2.135, allocations: 19.44 kB / 1.116 GB, free: 99.34 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002656/2.138, allocations: 1.037 MB / 1.117 GB, free: 98.26 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/2.138, allocations: 16.02 kB / 1.117 GB, free: 98.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002055/2.14, allocations: 182.9 kB / 1.117 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/2.141, allocations: 0.5513 MB / 1.118 GB, free: 97.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/2.141, allocations: 19.94 kB / 1.118 GB, free: 97.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/2.141, allocations: 24 kB / 1.118 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00111/2.142, allocations: 450.9 kB / 1.118 GB, free: 97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/2.144, allocations: 0.5478 MB / 1.119 GB, free: 96.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/2.144, allocations: 3.938 kB / 1.119 GB, free: 96.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.761e-05/2.144, allocations: 4 kB / 1.119 GB, free: 96.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/2.144, allocations: 8 kB / 1.119 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004811/2.149, allocations: 2.777 MB / 1.121 GB, free: 93.48 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006745/2.149, allocations: 268 kB / 1.122 GB, free: 93.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/2.15, allocations: 117 kB / 1.122 GB, free: 93.09 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/2.15, allocations: 200 kB / 1.122 GB, free: 92.86 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/2.15, allocations: 243.1 kB / 1.122 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.567e-06/2.15, allocations: 4 kB / 1.122 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.01823/2.169, allocations: 1.618 MB / 1.124 GB, free: 90.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/2.169, allocations: 286.7 kB / 1.124 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008628/2.17, allocations: 0.4982 MB / 1.125 GB, free: 90.11 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/2.17, allocations: 25.7 kB / 1.125 GB, free: 90.08 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/2.17, allocations: 337.2 kB / 1.125 GB, free: 89.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.38e-05/2.17, allocations: 78.94 kB / 1.125 GB, free: 89.67 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/2.17, allocations: 0 / 1.125 GB, free: 89.67 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.762e-05/2.17, allocations: 330.7 kB / 1.125 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/2.17, allocations: 157 kB / 1.126 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/2.171, allocations: 371.4 kB / 1.126 GB, free: 88.72 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.018/2.189, allocations: 1.548 MB / 1.127 GB, free: 87.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/2.189, allocations: 3.938 kB / 1.127 GB, free: 87.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01886/2.208, allocations: 1.861 MB / 1.129 GB, free: 85.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000401/2.208, allocations: 2.005 MB / 1.131 GB, free: 83.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/2.208, allocations: 8 kB / 1.131 GB, free: 83.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-05/2.208, allocations: 8 kB / 1.131 GB, free: 83.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01309/2.222, allocations: 0.6179 MB / 1.132 GB, free: 82.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006303/2.228, allocations: 1.03 MB / 1.133 GB, free: 81.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007733/2.229, allocations: 43.77 kB / 1.133 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/2.229, allocations: 51.98 kB / 1.133 GB, free: 81.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/2.229, allocations: 4 kB / 1.133 GB, free: 81.37 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004481/2.233, allocations: 0.913 MB / 1.134 GB, free: 80.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/2.233, allocations: 7.938 kB / 1.134 GB, free: 80.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/2.233, allocations: 12 kB / 1.134 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007665/2.234, allocations: 120.6 kB / 1.134 GB, free: 80.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/2.234, allocations: 11.94 kB / 1.134 GB, free: 80.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/2.235, allocations: 51.66 kB / 1.134 GB, free: 80.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/2.235, allocations: 47.94 kB / 1.134 GB, free: 80.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002053/2.235, allocations: 87.66 kB / 1.134 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/2.235, allocations: 59.34 kB / 1.134 GB, free: 80.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006535/2.242, allocations: 0.8183 MB / 1.135 GB, free: 79.23 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/2.242, allocations: 7.906 kB / 1.135 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/2.242, allocations: 0 / 1.135 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/2.242, allocations: 0 / 1.135 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007712/2.243, allocations: 467.3 kB / 1.135 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/2.243, allocations: 0 / 1.135 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003531/2.246, allocations: 191.7 kB / 1.136 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/2.246, allocations: 4 kB / 1.136 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/2.246, allocations: 4 kB / 1.136 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/2.248, allocations: 0.7342 MB / 1.136 GB, free: 77.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/2.248, allocations: 96 / 1.136 GB, free: 77.78 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005898/2.254, allocations: 0.7145 MB / 1.137 GB, free: 77.04 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/2.254, allocations: 152.3 kB / 1.137 GB, free: 76.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/2.255, allocations: 7.938 kB / 1.137 GB, free: 76.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006232/2.255, allocations: 32.52 kB / 1.137 GB, free: 76.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.074e-05/2.255, allocations: 15.98 kB / 1.137 GB, free: 76.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/2.255, allocations: 11.98 kB / 1.137 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0006339/2.256, allocations: 406.9 kB / 1.138 GB, free: 76.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002302/2.258, allocations: 0.5934 MB / 1.138 GB, free: 75.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002887/2.261, allocations: 1.37 MB / 1.14 GB, free: 74.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02333/2.285, allocations: 1.459 MB / 1.141 GB, free: 73.11 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/2.285, allocations: 4.938 kB / 1.141 GB, free: 73.11 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0058/2.29, allocations: 385.4 kB / 1.141 GB, free: 72.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/2.292, allocations: 207.1 kB / 1.142 GB, free: 72.52 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/2.294, allocations: 0.6703 MB / 1.142 GB, free: 71.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/2.295, allocations: 1.01 MB / 1.143 GB, free: 70.79 MB / 0.4948 GB Notification: Performance of SimCode: time 1.213e-06/2.295, allocations: 4 kB / 1.143 GB, free: 70.78 MB / 0.4948 GB Notification: Performance of Templates: time 0.03374/2.329, allocations: 19.19 MB / 1.162 GB, free: 51.57 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSharpEdgedOrifice/TestSharpEdgedOrifice.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches