Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 186.8 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.932/1.932, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 94.05 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5096/0.5096, allocations: 43.55 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004782/0.0004782, allocations: 8 kB / 431.4 MB, free: 5.941 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 58.84 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.651/1.783, allocations: 475.2 MB / 0.9428 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/1.784, allocations: 89.5 kB / 0.9429 GB, free: 133.6 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/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 - DAE generated: time 1.013/2.797, allocations: 197.7 MB / 1.136 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.605e-06/2.797, allocations: 0 / 1.136 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.831e-05/2.797, allocations: 10.88 kB / 1.136 GB, free: 108.2 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003277/2.8, allocations: 1.125 MB / 1.137 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/2.8, allocations: 7.781 kB / 1.137 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002009/2.802, allocations: 182.6 kB / 1.137 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/2.804, allocations: 0.5513 MB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/2.804, allocations: 33.75 kB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/2.804, allocations: 40.47 kB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/2.805, allocations: 0.6122 MB / 1.138 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/2.805, allocations: 3.875 kB / 1.138 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-05/2.806, allocations: 20.91 kB / 1.138 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/2.806, allocations: 15.09 kB / 1.138 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/2.807, allocations: 490.2 kB / 1.139 GB, free: 107.1 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004656/2.811, allocations: 2.676 MB / 1.142 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008095/2.812, allocations: 286.8 kB / 1.142 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004144/2.813, allocations: 235.3 kB / 1.142 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006582/2.813, allocations: 343.1 kB / 1.142 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 3.647e-06/2.813, allocations: 6.656 kB / 1.142 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001863/2.815, allocations: 0.7087 MB / 1.143 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/2.815, allocations: 297.4 kB / 1.143 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009458/2.816, allocations: 0.551 MB / 1.144 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.188e-05/2.816, allocations: 36.05 kB / 1.144 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000247/2.817, allocations: 360.5 kB / 1.144 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/2.817, allocations: 119.4 kB / 1.144 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-05/2.817, allocations: 9.125 kB / 1.144 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.716e-05/2.817, allocations: 328.1 kB / 1.145 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/2.818, allocations: 167.7 kB / 1.145 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/2.818, allocations: 385.4 kB / 1.145 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005575/2.819, allocations: 254.6 kB / 1.145 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/2.819, allocations: 0 / 1.145 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001539/2.82, allocations: 0.6208 MB / 1.146 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004493/2.821, allocations: 2.032 MB / 1.148 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/2.821, allocations: 7.781 kB / 1.148 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.248e-05/2.821, allocations: 7.688 kB / 1.148 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01206/2.833, allocations: 0.6086 MB / 1.149 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006584/2.834, allocations: 0.6603 MB / 1.149 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/2.835, allocations: 71.86 kB / 1.149 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/2.835, allocations: 54.92 kB / 1.149 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/2.835, allocations: 0 / 1.149 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001344/2.836, allocations: 0.5508 MB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.836, allocations: 7.812 kB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/2.836, allocations: 7.625 kB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007241/2.837, allocations: 125.4 kB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/2.837, allocations: 13.88 kB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000608/2.838, allocations: 65.81 kB / 1.15 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/2.838, allocations: 46.81 kB / 1.15 GB, free: 100.2 MB / 0.5105 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 () * Number of clocked 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.0005275/2.838, allocations: 308.9 kB / 1.151 GB, free: 99.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/2.838, allocations: 63.88 kB / 1.151 GB, free: 99.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00261/2.841, allocations: 0.8329 MB / 1.151 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/2.841, allocations: 3.531 kB / 1.151 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/2.841, allocations: 0 / 1.151 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/2.841, allocations: 3.797 kB / 1.151 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002941/2.844, allocations: 1.646 MB / 1.153 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/2.844, allocations: 0 / 1.153 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003517/2.848, allocations: 212.2 kB / 1.153 GB, free: 98.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/2.848, allocations: 3.719 kB / 1.153 GB, free: 98.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.721e-05/2.848, allocations: 18.06 kB / 1.153 GB, free: 98.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004635/2.848, allocations: 0.6521 MB / 1.154 GB, free: 97.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/2.848, allocations: 3.875 kB / 1.154 GB, free: 97.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/2.85, allocations: 0.7661 MB / 1.155 GB, free: 97.28 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/2.85, allocations: 148.3 kB / 1.155 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/2.85, allocations: 14.53 kB / 1.155 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007067/2.851, allocations: 31.33 kB / 1.155 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/2.851, allocations: 43.66 kB / 1.155 GB, free: 97.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.545e-05/2.851, allocations: 35.73 kB / 1.155 GB, free: 97.12 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007173/2.852, allocations: 451.3 kB / 1.155 GB, free: 96.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.01e-07/2.852, allocations: 0 / 1.155 GB, free: 96.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002597/2.854, allocations: 0.6222 MB / 1.156 GB, free: 96.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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.002948/2.857, allocations: 1.206 MB / 1.157 GB, free: 96.46 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02166/2.879, allocations: 1.646 MB / 1.159 GB, free: 96.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/2.879, allocations: 6.562 kB / 1.159 GB, free: 96.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005621/2.885, allocations: 487.6 kB / 1.159 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/2.887, allocations: 295.7 kB / 1.159 GB, free: 95.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/2.89, allocations: 1.303 MB / 1.161 GB, free: 95.08 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/2.89, allocations: 0.902 MB / 1.162 GB, free: 94.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006875/2.891, allocations: 111.7 kB / 1.162 GB, free: 94.35 MB / 0.5105 GB Notification: Performance of SimCode: time 1.292e-06/2.891, allocations: 0 / 1.162 GB, free: 94.35 MB / 0.5105 GB Notification: Performance of Templates: time 0.03836/2.929, allocations: 20.02 MB / 1.181 GB, free: 91.13 MB / 0.5105 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/jenkins1/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