Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.116/2.116, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004494, allocations: 16 kB / 314.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2743, allocations: 54.84 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.38, allocations: 470 MB / 0.8196 GB, free: 17.89 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/1.38, allocations: 86.95 kB / 0.8197 GB, free: 17.84 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2/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.2/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.2/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.9069/2.287, allocations: 196.2 MB / 1.011 GB, free: 25.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.666e-06/2.287, allocations: 0 / 1.011 GB, free: 25.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001026/2.287, allocations: 16 kB / 1.011 GB, free: 25.53 MB / 490.7 MB 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.004652/2.292, allocations: 1.121 MB / 1.012 GB, free: 24.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6e-05/2.292, allocations: 8.031 kB / 1.012 GB, free: 24.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003922/2.296, allocations: 171 kB / 1.013 GB, free: 24.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/2.298, allocations: 0.5794 MB / 1.013 GB, free: 23.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/2.298, allocations: 33 kB / 1.013 GB, free: 23.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/2.299, allocations: 43.94 kB / 1.013 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/2.301, allocations: 0.5966 MB / 1.014 GB, free: 22.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.115e-05/2.301, allocations: 4 kB / 1.014 GB, free: 22.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/2.301, allocations: 23.95 kB / 1.014 GB, free: 22.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.576e-05/2.302, allocations: 16 kB / 1.014 GB, free: 22.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/2.304, allocations: 483.6 kB / 1.014 GB, free: 22.32 MB / 490.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.007193/2.311, allocations: 2.616 MB / 1.017 GB, free: 19.53 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/2.312, allocations: 259.5 kB / 1.017 GB, free: 19.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006083/2.313, allocations: 236.2 kB / 1.017 GB, free: 19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009581/2.314, allocations: 276.8 kB / 1.018 GB, free: 18.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 8.28e-06/2.314, allocations: 0 / 1.018 GB, free: 18.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.002945/2.317, allocations: 0.6606 MB / 1.018 GB, free: 18.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/2.317, allocations: 158.2 kB / 1.018 GB, free: 17.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/2.318, allocations: 494.1 kB / 1.019 GB, free: 17.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/2.319, allocations: 29.7 kB / 1.019 GB, free: 17.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/2.319, allocations: 385.6 kB / 1.019 GB, free: 16.92 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/2.319, allocations: 114.3 kB / 1.019 GB, free: 16.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.906e-05/2.319, allocations: 16 kB / 1.019 GB, free: 16.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/2.32, allocations: 330.8 kB / 1.02 GB, free: 16.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007725/2.32, allocations: 165 kB / 1.02 GB, free: 16.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009569/2.321, allocations: 383.5 kB / 1.02 GB, free: 15.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/2.322, allocations: 249.5 kB / 1.02 GB, free: 15.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/2.322, allocations: 4 kB / 1.02 GB, free: 15.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002796/2.325, allocations: 0.6229 MB / 1.021 GB, free: 14.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009531/2.326, allocations: 2.732 MB / 1.024 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/2.326, allocations: 8 kB / 1.024 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.586e-05/2.326, allocations: 15.94 kB / 1.024 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01498/2.341, allocations: 0.6126 MB / 1.024 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009728/2.342, allocations: 0.66 MB / 1.025 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/2.344, allocations: 75.45 kB / 1.025 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002322/2.344, allocations: 55.98 kB / 1.025 GB, free: 10.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/2.344, allocations: 4 kB / 1.025 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002484/2.347, allocations: 0.5397 MB / 1.026 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/2.347, allocations: 11.98 kB / 1.026 GB, free: 9.969 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.984e-05/2.347, allocations: 12 kB / 1.026 GB, free: 9.957 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/2.348, allocations: 136.6 kB / 1.026 GB, free: 9.824 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/2.348, allocations: 19.92 kB / 1.026 GB, free: 9.805 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/2.348, allocations: 59.52 kB / 1.026 GB, free: 9.746 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.422e-05/2.349, allocations: 52 kB / 1.026 GB, free: 9.695 MB / 490.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: 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 (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.0004287/2.349, allocations: 315.4 kB / 1.026 GB, free: 9.371 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/2.349, allocations: 55.34 kB / 1.026 GB, free: 9.316 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/2.351, allocations: 0.7634 MB / 1.027 GB, free: 8.531 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.077e-06/2.351, allocations: 8 kB / 1.027 GB, free: 8.523 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.168e-06/2.351, allocations: 3.953 kB / 1.027 GB, free: 8.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/2.351, allocations: 3.984 kB / 1.027 GB, free: 8.516 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/2.354, allocations: 1.665 MB / 1.029 GB, free: 6.688 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.04e-06/2.354, allocations: 4 kB / 1.029 GB, free: 6.684 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/2.356, allocations: 211.8 kB / 1.029 GB, free: 6.477 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/2.356, allocations: 7.938 kB / 1.029 GB, free: 6.469 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/2.356, allocations: 16 kB / 1.029 GB, free: 6.453 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/2.357, allocations: 0.6483 MB / 1.03 GB, free: 5.781 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.694e-06/2.357, allocations: 0 / 1.03 GB, free: 5.781 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/2.358, allocations: 0.7435 MB / 1.03 GB, free: 4.941 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/2.358, allocations: 144.2 kB / 1.03 GB, free: 4.781 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/2.358, allocations: 16 kB / 1.03 GB, free: 4.766 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/2.358, allocations: 23.98 kB / 1.03 GB, free: 4.742 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.845e-05/2.359, allocations: 35.95 kB / 1.03 GB, free: 4.707 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.044e-05/2.359, allocations: 35.98 kB / 1.031 GB, free: 4.672 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005247/2.359, allocations: 382.8 kB / 1.031 GB, free: 4.301 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.61e-07/2.359, allocations: 0 / 1.031 GB, free: 4.301 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00212/2.361, allocations: 0.6279 MB / 1.031 GB, free: 3.672 MB / 490.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: 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.002087/2.363, allocations: 1.213 MB / 1.033 GB, free: 2.457 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01229/2.376, allocations: 1.677 MB / 1.034 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.312e-06/2.376, allocations: 4.312 kB / 1.034 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00324/2.379, allocations: 491.9 kB / 1.035 GB, free: 268 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/2.381, allocations: 248.7 kB / 1.035 GB, free: 24 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2822/2.663, allocations: 2.901 MB / 1.038 GB, free: 106.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004503/2.663, allocations: 0.9027 MB / 1.039 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005355/2.664, allocations: 108.3 kB / 1.039 GB, free: 106.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.523e-06/2.664, allocations: 0 / 1.039 GB, free: 106.2 MB / 490.7 MB Notification: Performance of Templates: time 0.02938/2.693, allocations: 18.9 MB / 1.057 GB, free: 105.7 MB / 490.7 MB