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.887/1.887, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.417e-05/2.438e-05, allocations: 0 / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08628, allocations: 48.7 MB / 326.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/1.296, allocations: 463.1 MB / 0.7711 GB, free: 78.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/1.296, allocations: 81.03 kB / 0.7712 GB, free: 78.76 MB / 426.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.8289/2.125, allocations: 196.2 MB / 0.9627 GB, free: 46.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.048e-06/2.125, allocations: 0 / 0.9627 GB, free: 46.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.532e-05/2.125, allocations: 16 kB / 0.9628 GB, free: 46.9 MB / 426.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.002158/2.127, allocations: 1.015 MB / 0.9637 GB, free: 45.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/2.127, allocations: 12.03 kB / 0.9638 GB, free: 45.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/2.129, allocations: 167 kB / 0.9639 GB, free: 45.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/2.13, allocations: 0.5754 MB / 0.9645 GB, free: 45.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/2.13, allocations: 33 kB / 0.9645 GB, free: 45.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.949e-05/2.131, allocations: 40 kB / 0.9645 GB, free: 44.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/2.132, allocations: 0.5881 MB / 0.9651 GB, free: 44.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/2.132, allocations: 0 / 0.9651 GB, free: 44.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.274e-05/2.132, allocations: 20 kB / 0.9651 GB, free: 44.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/2.132, allocations: 8 kB / 0.9651 GB, free: 44.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008661/2.133, allocations: 467.1 kB / 0.9656 GB, free: 43.85 MB / 426.7 MB 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.003224/2.136, allocations: 2.605 MB / 0.9681 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/2.136, allocations: 247.5 kB / 0.9684 GB, free: 40.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/2.137, allocations: 176.9 kB / 0.9685 GB, free: 40.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000315/2.137, allocations: 240.8 kB / 0.9688 GB, free: 40.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004067/2.138, allocations: 274 kB / 0.969 GB, free: 40.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.692e-06/2.138, allocations: 0 / 0.969 GB, free: 40.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009513/2.139, allocations: 449.5 kB / 0.9695 GB, free: 39.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/2.139, allocations: 170.2 kB / 0.9696 GB, free: 39.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006414/2.139, allocations: 480.8 kB / 0.9701 GB, free: 38.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/2.139, allocations: 33.7 kB / 0.9701 GB, free: 38.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/2.14, allocations: 385.6 kB / 0.9705 GB, free: 38.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/2.14, allocations: 106.4 kB / 0.9706 GB, free: 38.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/2.14, allocations: 12 kB / 0.9706 GB, free: 38.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.613e-05/2.14, allocations: 330.8 kB / 0.9709 GB, free: 38.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003127/2.14, allocations: 157.1 kB / 0.9711 GB, free: 37.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003957/2.14, allocations: 382.7 kB / 0.9714 GB, free: 37.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/2.141, allocations: 246.5 kB / 0.9717 GB, free: 37.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.557e-06/2.141, allocations: 4 kB / 0.9717 GB, free: 37.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001219/2.142, allocations: 0.6078 MB / 0.9723 GB, free: 36.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005303/2.143, allocations: 2.735 MB / 0.9749 GB, free: 33.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/2.143, allocations: 4 kB / 0.9749 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/2.143, allocations: 16 kB / 0.9749 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008041/2.151, allocations: 0.6126 MB / 0.9755 GB, free: 33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005202/2.151, allocations: 0.6601 MB / 0.9762 GB, free: 32.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007229/2.152, allocations: 71.3 kB / 0.9763 GB, free: 32.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/2.152, allocations: 55.98 kB / 0.9763 GB, free: 32.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/2.152, allocations: 8.719 kB / 0.9763 GB, free: 32.19 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001154/2.153, allocations: 0.5481 MB / 0.9769 GB, free: 31.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/2.153, allocations: 8 kB / 0.9769 GB, free: 31.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/2.154, allocations: 12 kB / 0.9769 GB, free: 31.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005458/2.154, allocations: 131.8 kB / 0.977 GB, free: 31.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/2.154, allocations: 15.92 kB / 0.977 GB, free: 31.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/2.155, allocations: 63.98 kB / 0.9771 GB, free: 31.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.336e-05/2.155, allocations: 55.94 kB / 0.9771 GB, free: 31.35 MB / 426.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 () * 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.0002068/2.155, allocations: 181.1 kB / 0.9773 GB, free: 31.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/2.155, allocations: 55.34 kB / 0.9774 GB, free: 31.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/2.157, allocations: 0.7516 MB / 0.9781 GB, free: 30.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.739e-06/2.157, allocations: 4 kB / 0.9781 GB, free: 30.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.656e-06/2.157, allocations: 3.938 kB / 0.9781 GB, free: 30.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.289e-06/2.157, allocations: 3.984 kB / 0.9781 GB, free: 30.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/2.16, allocations: 1.653 MB / 0.9797 GB, free: 28.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.898e-06/2.16, allocations: 4 kB / 0.9797 GB, free: 28.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/2.162, allocations: 204 kB / 0.9799 GB, free: 28.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/2.162, allocations: 7.984 kB / 0.9799 GB, free: 28.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/2.163, allocations: 23.98 kB / 0.9799 GB, free: 28.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003528/2.163, allocations: 0.6329 MB / 0.9806 GB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.678e-06/2.163, allocations: 7.984 kB / 0.9806 GB, free: 27.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/2.164, allocations: 0.731 MB / 0.9813 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/2.164, allocations: 144.2 kB / 0.9814 GB, free: 26.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/2.164, allocations: 15.95 kB / 0.9814 GB, free: 26.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/2.165, allocations: 27.97 kB / 0.9815 GB, free: 26.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/2.165, allocations: 31.97 kB / 0.9815 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.147e-05/2.165, allocations: 39.98 kB / 0.9815 GB, free: 26.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005084/2.165, allocations: 377.5 kB / 0.9819 GB, free: 26.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.01e-07/2.165, allocations: 0 / 0.9819 GB, free: 26.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002195/2.168, allocations: 0.6162 MB / 0.9825 GB, free: 25.53 MB / 426.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) * 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.002244/2.17, allocations: 1.195 MB / 0.9837 GB, free: 24.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01401/2.184, allocations: 1.602 MB / 0.9852 GB, free: 22.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.847e-06/2.184, allocations: 0 / 0.9852 GB, free: 22.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/2.188, allocations: 460.7 kB / 0.9857 GB, free: 22.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/2.189, allocations: 245.7 kB / 0.9859 GB, free: 22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008251/2.198, allocations: 2.314 MB / 0.9882 GB, free: 19.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/2.198, allocations: 0.8953 MB / 0.989 GB, free: 18.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005289/2.199, allocations: 111.4 kB / 0.9891 GB, free: 18.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.765e-06/2.199, allocations: 0 / 0.9891 GB, free: 18.6 MB / 426.7 MB Notification: Performance of Templates: time 0.2697/2.468, allocations: 18.71 MB / 1.007 GB, free: 78.08 MB / 426.7 MB