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.002074/0.002074, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.00109, allocations: 96.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2899/0.2899, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.701e-05, allocations: 3.984 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.3981, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.292/1.69, allocations: 474.4 MB / 0.9292 GB, free: 84.42 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/1.69, allocations: 83.7 kB / 0.9293 GB, free: 84.38 MB / 0.4952 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.9838/2.674, allocations: 191.4 MB / 1.116 GB, free: 100.5 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.984e-06/2.674, allocations: 3.938 kB / 1.116 GB, free: 100.5 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.552e-05/2.674, allocations: 12 kB / 1.116 GB, free: 100.4 MB / 0.4952 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.002823/2.677, allocations: 1.033 MB / 1.117 GB, free: 99.37 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/2.677, allocations: 8.031 kB / 1.117 GB, free: 99.36 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001984/2.679, allocations: 174.9 kB / 1.117 GB, free: 99.19 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/2.681, allocations: 0.5579 MB / 1.118 GB, free: 98.61 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/2.681, allocations: 12 kB / 1.118 GB, free: 98.59 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/2.681, allocations: 28 kB / 1.118 GB, free: 98.57 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001086/2.682, allocations: 450.4 kB / 1.118 GB, free: 98.12 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/2.683, allocations: 0.554 MB / 1.119 GB, free: 97.53 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/2.683, allocations: 4 kB / 1.119 GB, free: 97.52 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-05/2.683, allocations: 0 / 1.119 GB, free: 97.52 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/2.683, allocations: 12 kB / 1.119 GB, free: 97.51 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or 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.004798/2.688, allocations: 2.727 MB / 1.122 GB, free: 94.64 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/2.689, allocations: 286.5 kB / 1.122 GB, free: 94.36 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/2.689, allocations: 124.8 kB / 1.122 GB, free: 94.23 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000292/2.69, allocations: 195 kB / 1.122 GB, free: 94 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/2.69, allocations: 265.6 kB / 1.123 GB, free: 93.71 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=25): time 2.865e-06/2.69, allocations: 0 / 1.123 GB, free: 93.71 MB / 0.4952 GB Notification: Performance of matching and sorting (n=25): time 0.01636/2.706, allocations: 1.552 MB / 1.124 GB, free: 92.16 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.712e-05/2.707, allocations: 290.7 kB / 1.124 GB, free: 91.8 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007972/2.707, allocations: 0.4943 MB / 1.125 GB, free: 91.3 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 7.366e-05/2.708, allocations: 29.7 kB / 1.125 GB, free: 91.27 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/2.708, allocations: 397.3 kB / 1.125 GB, free: 90.88 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 8.84e-05/2.708, allocations: 78.91 kB / 1.125 GB, free: 90.8 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/2.708, allocations: 0 / 1.125 GB, free: 90.8 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.474e-05/2.708, allocations: 330.8 kB / 1.126 GB, free: 90.47 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/2.708, allocations: 153.1 kB / 1.126 GB, free: 90.32 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004553/2.709, allocations: 378.5 kB / 1.126 GB, free: 89.86 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01601/2.725, allocations: 1.455 MB / 1.128 GB, free: 88.41 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/2.725, allocations: 3.953 kB / 1.128 GB, free: 88.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01698/2.742, allocations: 1.816 MB / 1.129 GB, free: 86.59 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004151/2.742, allocations: 2.031 MB / 1.131 GB, free: 84.39 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/2.742, allocations: 11.98 kB / 1.131 GB, free: 84.38 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/2.742, allocations: 8 kB / 1.131 GB, free: 84.38 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/2.754, allocations: 0.6084 MB / 1.132 GB, free: 83.77 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005712/2.76, allocations: 1.014 MB / 1.133 GB, free: 82.73 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/2.761, allocations: 63.41 kB / 1.133 GB, free: 82.67 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/2.761, allocations: 51.98 kB / 1.133 GB, free: 82.62 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/2.761, allocations: 4 kB / 1.133 GB, free: 82.62 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004384/2.766, allocations: 0.9104 MB / 1.134 GB, free: 81.71 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/2.766, allocations: 4 kB / 1.134 GB, free: 81.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/2.766, allocations: 11.94 kB / 1.134 GB, free: 81.69 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007357/2.766, allocations: 123.8 kB / 1.134 GB, free: 81.57 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/2.767, allocations: 19.86 kB / 1.134 GB, free: 81.55 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006574/2.767, allocations: 51.8 kB / 1.134 GB, free: 81.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/2.767, allocations: 51.98 kB / 1.134 GB, free: 81.45 MB / 0.4952 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.0002541/2.768, allocations: 154.5 kB / 1.134 GB, free: 81.29 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/2.768, allocations: 59.3 kB / 1.134 GB, free: 81.23 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006055/2.774, allocations: 0.7707 MB / 1.135 GB, free: 80.45 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/2.774, allocations: 4 kB / 1.135 GB, free: 80.45 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/2.774, allocations: 0 / 1.135 GB, free: 80.45 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/2.774, allocations: 7.969 kB / 1.135 GB, free: 80.44 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009358/2.775, allocations: 453 kB / 1.136 GB, free: 79.96 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/2.775, allocations: 0 / 1.136 GB, free: 79.96 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/2.778, allocations: 175.8 kB / 1.136 GB, free: 79.79 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/2.778, allocations: 0 / 1.136 GB, free: 79.79 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/2.778, allocations: 15.94 kB / 1.136 GB, free: 79.78 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/2.78, allocations: 0.7225 MB / 1.136 GB, free: 79.03 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/2.78, allocations: 0 / 1.136 GB, free: 79.03 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005695/2.786, allocations: 0.7186 MB / 1.137 GB, free: 78.29 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/2.786, allocations: 160.2 kB / 1.137 GB, free: 78.12 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/2.786, allocations: 4 kB / 1.137 GB, free: 78.11 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/2.787, allocations: 15.98 kB / 1.137 GB, free: 78.1 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.945e-05/2.787, allocations: 23.91 kB / 1.137 GB, free: 78.07 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/2.787, allocations: 12 kB / 1.137 GB, free: 78.06 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0006221/2.788, allocations: 402.9 kB / 1.138 GB, free: 77.67 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.71e-07/2.788, allocations: 0 / 1.138 GB, free: 77.67 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.002608/2.79, allocations: 0.5966 MB / 1.138 GB, free: 77.07 MB / 0.4952 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.003262/2.794, allocations: 1.343 MB / 1.14 GB, free: 75.86 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0207/2.814, allocations: 1.54 MB / 1.141 GB, free: 74.3 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/2.814, allocations: 4 kB / 1.141 GB, free: 74.3 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.005106/2.82, allocations: 395.3 kB / 1.141 GB, free: 73.9 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/2.822, allocations: 205.7 kB / 1.142 GB, free: 73.7 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/2.823, allocations: 0.6333 MB / 1.142 GB, free: 73.04 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/2.824, allocations: 0.8906 MB / 1.143 GB, free: 72.12 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005658/2.824, allocations: 95.39 kB / 1.143 GB, free: 72.02 MB / 0.4952 GB Notification: Performance of SimCode: time 9.72e-07/2.824, allocations: 0 / 1.143 GB, free: 72.02 MB / 0.4952 GB Notification: Performance of Templates: time 0.03736/2.861, allocations: 19.3 MB / 1.162 GB, free: 52.7 MB / 0.4952 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