Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadModel(ModelicaTest): time 1.828/1.828, allocations: 209.3 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004413/0.0004414, allocations: 8 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2889, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9895/1.278, allocations: 463.2 MB / 0.7758 GB, free: 29.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/1.279, allocations: 83.02 kB / 0.7759 GB, free: 29.05 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329: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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329: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.8106/2.089, allocations: 196.7 MB / 0.968 GB, free: 19.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.48e-06/2.089, allocations: 0 / 0.968 GB, free: 19.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.892e-05/2.089, allocations: 19.94 kB / 0.968 GB, free: 19.78 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002437/2.092, allocations: 1.104 MB / 0.9691 GB, free: 18.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/2.092, allocations: 12.03 kB / 0.9691 GB, free: 18.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/2.094, allocations: 175 kB / 0.9693 GB, free: 18.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/2.095, allocations: 0.5716 MB / 0.9698 GB, free: 17.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/2.095, allocations: 33 kB / 0.9699 GB, free: 17.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/2.095, allocations: 44 kB / 0.9699 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/2.096, allocations: 0.5961 MB / 0.9705 GB, free: 17.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/2.096, allocations: 0 / 0.9705 GB, free: 17.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.382e-05/2.096, allocations: 24 kB / 0.9705 GB, free: 17.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/2.097, allocations: 15.98 kB / 0.9705 GB, free: 17.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009024/2.097, allocations: 479.6 kB / 0.971 GB, free: 16.6 MB / 442.7 MB 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.003397/2.101, allocations: 2.6 MB / 0.9735 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005754/2.101, allocations: 266.6 kB / 0.9738 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003099/2.102, allocations: 236.1 kB / 0.974 GB, free: 13.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/2.102, allocations: 267.4 kB / 0.9743 GB, free: 13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 4.028e-06/2.102, allocations: 0 / 0.9743 GB, free: 13 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001338/2.104, allocations: 0.6598 MB / 0.9749 GB, free: 12.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/2.104, allocations: 162.2 kB / 0.9751 GB, free: 12.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006694/2.104, allocations: 494 kB / 0.9755 GB, free: 11.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/2.104, allocations: 29.7 kB / 0.9756 GB, free: 11.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/2.105, allocations: 377.6 kB / 0.9759 GB, free: 11.22 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/2.105, allocations: 118.4 kB / 0.976 GB, free: 11.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/2.105, allocations: 12 kB / 0.976 GB, free: 11.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.761e-05/2.105, allocations: 330.8 kB / 0.9764 GB, free: 10.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/2.105, allocations: 157 kB / 0.9765 GB, free: 10.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004089/2.106, allocations: 386.6 kB / 0.9769 GB, free: 10.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/2.106, allocations: 241.5 kB / 0.9771 GB, free: 9.883 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.773e-06/2.106, allocations: 0 / 0.9771 GB, free: 9.883 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001275/2.107, allocations: 0.6194 MB / 0.9777 GB, free: 9.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005464/2.108, allocations: 2.751 MB / 0.9804 GB, free: 6.285 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/2.108, allocations: 8 kB / 0.9804 GB, free: 6.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/2.108, allocations: 12 kB / 0.9804 GB, free: 6.266 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006742/2.115, allocations: 0.6126 MB / 0.981 GB, free: 5.652 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005128/2.115, allocations: 0.6601 MB / 0.9817 GB, free: 4.969 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007044/2.116, allocations: 67.52 kB / 0.9817 GB, free: 4.902 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/2.116, allocations: 59.94 kB / 0.9818 GB, free: 4.844 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/2.116, allocations: 4 kB / 0.9818 GB, free: 4.84 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001123/2.117, allocations: 0.5519 MB / 0.9823 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/2.117, allocations: 8 kB / 0.9823 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/2.117, allocations: 12 kB / 0.9823 GB, free: 4.262 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/2.118, allocations: 136.4 kB / 0.9825 GB, free: 4.129 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/2.118, allocations: 11.98 kB / 0.9825 GB, free: 4.117 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004387/2.118, allocations: 55.67 kB / 0.9825 GB, free: 4.062 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.25e-05/2.119, allocations: 59.86 kB / 0.9826 GB, free: 4.004 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * 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.0004677/2.119, allocations: 306.6 kB / 0.9829 GB, free: 3.688 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/2.119, allocations: 67.2 kB / 0.983 GB, free: 3.621 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/2.121, allocations: 0.7556 MB / 0.9837 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.536e-06/2.121, allocations: 4 kB / 0.9837 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/2.121, allocations: 8 kB / 0.9837 GB, free: 2.836 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.048e-06/2.121, allocations: 7.969 kB / 0.9837 GB, free: 2.828 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/2.124, allocations: 1.661 MB / 0.9853 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.25e-06/2.124, allocations: 0 / 0.9853 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002415/2.126, allocations: 211.8 kB / 0.9855 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.205e-05/2.126, allocations: 8 kB / 0.9855 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.61e-05/2.126, allocations: 19.95 kB / 0.9856 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000384/2.127, allocations: 0.6367 MB / 0.9862 GB, free: 112 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/2.127, allocations: 3.938 kB / 0.9862 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2505/2.377, allocations: 0.7324 MB / 0.9869 GB, free: 91.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/2.378, allocations: 142 kB / 0.987 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/2.378, allocations: 11 kB / 0.987 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/2.378, allocations: 31.95 kB / 0.9871 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/2.378, allocations: 34.73 kB / 0.9871 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-05/2.379, allocations: 35.59 kB / 0.9871 GB, free: 91.24 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006104/2.379, allocations: 384.8 kB / 0.9875 GB, free: 91.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.96e-07/2.379, allocations: 2.25 kB / 0.9875 GB, free: 91.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002592/2.382, allocations: 0.603 MB / 0.9881 GB, free: 91.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,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.00302/2.385, allocations: 1.213 MB / 0.9893 GB, free: 91.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0131/2.398, allocations: 1.6 MB / 0.9908 GB, free: 90.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.88e-06/2.398, allocations: 0.9688 kB / 0.9908 GB, free: 90.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004004/2.402, allocations: 467.1 kB / 0.9913 GB, free: 90.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/2.404, allocations: 251.8 kB / 0.9915 GB, free: 90.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009206/2.413, allocations: 2.879 MB / 0.9943 GB, free: 90.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/2.414, allocations: 0.898 MB / 0.9952 GB, free: 89.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006016/2.414, allocations: 107.9 kB / 0.9953 GB, free: 89.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.722e-06/2.414, allocations: 0 / 0.9953 GB, free: 89.46 MB / 442.7 MB Notification: Performance of Templates: time 0.03237/2.447, allocations: 18.78 MB / 1.014 GB, free: 88.96 MB / 442.7 MB