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.001459/0.001459, allocations: 180.5 kB / 17.41 MB, free: 4.41 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.442/1.442, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.0007982/0.0007982, allocations: 85.08 kB / 271.9 MB, free: 8.266 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.3493/0.3493, allocations: 43.55 MB / 363.8 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003447, allocations: 8 kB / 432.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 58.85 MB / 491.5 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.098/1.218, allocations: 475.3 MB / 0.9441 GB, free: 151 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/1.218, allocations: 86.27 kB / 0.9442 GB, free: 151 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 0.5929/1.811, allocations: 196.4 MB / 1.136 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.763e-06/1.811, allocations: 0 / 1.136 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.95e-05/1.811, allocations: 15.25 kB / 1.136 GB, free: 104.5 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.002232/1.814, allocations: 1.114 MB / 1.137 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/1.814, allocations: 9.25 kB / 1.137 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/1.815, allocations: 180.4 kB / 1.137 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000911/1.816, allocations: 0.5774 MB / 1.138 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/1.816, allocations: 31.25 kB / 1.138 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.02e-05/1.816, allocations: 41 kB / 1.138 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008354/1.817, allocations: 0.6188 MB / 1.139 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/1.817, allocations: 5 kB / 1.139 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/1.817, allocations: 20.72 kB / 1.139 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/1.817, allocations: 18.47 kB / 1.139 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000742/1.818, allocations: 491.5 kB / 1.139 GB, free: 103.4 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.002931/1.821, allocations: 2.68 MB / 1.142 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005266/1.821, allocations: 288 kB / 1.142 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/1.821, allocations: 180.8 kB / 1.142 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001126/1.823, allocations: 1.218 MB / 1.143 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/1.823, allocations: 350.2 kB / 1.144 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 2.314e-06/1.823, allocations: 0 / 1.144 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001205/1.824, allocations: 0.6419 MB / 1.144 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/1.824, allocations: 292.2 kB / 1.145 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007263/1.825, allocations: 0.6234 MB / 1.145 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/1.825, allocations: 32.64 kB / 1.145 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/1.825, allocations: 337.6 kB / 1.146 GB, free: 99.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.979e-05/1.825, allocations: 114.1 kB / 1.146 GB, free: 99.85 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/1.826, allocations: 9.625 kB / 1.146 GB, free: 99.85 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001018/1.826, allocations: 369.9 kB / 1.146 GB, free: 99.54 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/1.826, allocations: 168.4 kB / 1.146 GB, free: 99.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003872/1.826, allocations: 392 kB / 1.147 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/1.827, allocations: 0.5662 MB / 1.147 GB, free: 99.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/1.827, allocations: 2.281 kB / 1.147 GB, free: 99.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001058/1.828, allocations: 0.6711 MB / 1.148 GB, free: 98.94 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/1.828, allocations: 279.4 kB / 1.148 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.828, allocations: 4.344 kB / 1.148 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/1.828, allocations: 8.312 kB / 1.148 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00555/1.834, allocations: 0.6094 MB / 1.149 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004367/1.834, allocations: 0.6591 MB / 1.149 GB, free: 98.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006763/1.835, allocations: 72.48 kB / 1.149 GB, free: 98.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.311e-05/1.835, allocations: 55.45 kB / 1.149 GB, free: 98.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/1.835, allocations: 4.125 kB / 1.149 GB, free: 98.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009058/1.836, allocations: 0.5496 MB / 1.15 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.836, allocations: 9.625 kB / 1.15 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/1.836, allocations: 6.719 kB / 1.15 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/1.836, allocations: 132.4 kB / 1.15 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/1.836, allocations: 8.25 kB / 1.15 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004618/1.837, allocations: 58.86 kB / 1.15 GB, free: 97.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/1.837, allocations: 52.41 kB / 1.15 GB, free: 97.96 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.0003859/1.837, allocations: 318.3 kB / 1.15 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/1.837, allocations: 69.72 kB / 1.151 GB, free: 97.69 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/1.839, allocations: 0.8135 MB / 1.151 GB, free: 97.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/1.839, allocations: 4.031 kB / 1.151 GB, free: 97.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/1.839, allocations: 5.25 kB / 1.151 GB, free: 97.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.839, allocations: 2.656 kB / 1.151 GB, free: 97.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/1.842, allocations: 2.968 MB / 1.154 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/1.842, allocations: 6.562 kB / 1.154 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/1.844, allocations: 212.7 kB / 1.154 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/1.844, allocations: 15.48 kB / 1.154 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/1.844, allocations: 15.31 kB / 1.154 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002809/1.844, allocations: 0.6407 MB / 1.155 GB, free: 95.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/1.844, allocations: 3.25 kB / 1.155 GB, free: 95.06 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007592/1.845, allocations: 0.6898 MB / 1.156 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/1.845, allocations: 160.4 kB / 1.156 GB, free: 94.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/1.845, allocations: 14.03 kB / 1.156 GB, free: 94.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00036/1.845, allocations: 27.91 kB / 1.156 GB, free: 94.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/1.846, allocations: 48.2 kB / 1.156 GB, free: 94.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.103e-05/1.846, allocations: 30.03 kB / 1.156 GB, free: 94.65 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004504/1.846, allocations: 451.4 kB / 1.156 GB, free: 94.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.61e-07/1.846, allocations: 0 / 1.156 GB, free: 94.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001856/1.848, allocations: 0.6207 MB / 1.157 GB, free: 94.46 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.002012/1.85, allocations: 1.215 MB / 1.158 GB, free: 94.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0101/1.86, allocations: 1.639 MB / 1.16 GB, free: 94.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.86, allocations: 3.938 kB / 1.16 GB, free: 94.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/1.863, allocations: 498.3 kB / 1.16 GB, free: 93.97 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/1.865, allocations: 299.3 kB / 1.161 GB, free: 93.97 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/1.866, allocations: 1.296 MB / 1.162 GB, free: 93.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/1.866, allocations: 0.8847 MB / 1.163 GB, free: 92.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/1.867, allocations: 117.4 kB / 1.163 GB, free: 92.59 MB / 0.5105 GB Notification: Performance of SimCode: time 1.001e-06/1.867, allocations: 0 / 1.163 GB, free: 92.59 MB / 0.5105 GB Notification: Performance of Templates: time 0.02223/1.889, allocations: 19.65 MB / 1.182 GB, free: 91.06 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