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.TestSimpleGenericOrifice.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.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.394e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08648, allocations: 48.71 MB / 326.6 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7624/0.8489, allocations: 277.3 MB / 0.5897 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.8492, allocations: 86.8 kB / 0.5898 GB, free: 105.1 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/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.5634/1.413, allocations: 115.7 MB / 0.7028 GB, free: 108.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.413, allocations: 0 / 0.7028 GB, free: 108.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.52e-05/1.413, allocations: 15.47 kB / 0.7028 GB, free: 108.5 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001703/1.414, allocations: 0.8474 MB / 0.7037 GB, free: 108 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/1.415, allocations: 9.344 kB / 0.7037 GB, free: 108 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005018/1.415, allocations: 87.05 kB / 0.7038 GB, free: 108 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/1.416, allocations: 0.5334 MB / 0.7043 GB, free: 107.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.829e-05/1.416, allocations: 40.72 kB / 0.7043 GB, free: 107.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-05/1.417, allocations: 42.53 kB / 0.7044 GB, free: 107.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/1.418, allocations: 0.6317 MB / 0.705 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/1.418, allocations: 4.5 kB / 0.705 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.492e-05/1.418, allocations: 25.11 kB / 0.705 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/1.418, allocations: 11.91 kB / 0.705 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/1.419, allocations: 0.4914 MB / 0.7055 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/1.423, allocations: 3.079 MB / 0.7085 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004341/1.424, allocations: 182 kB / 0.7087 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/1.424, allocations: 108.8 kB / 0.7088 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/1.426, allocations: 1.029 MB / 0.7098 GB, free: 104.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/1.426, allocations: 166.8 kB / 0.7099 GB, free: 104.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 4.041e-06/1.426, allocations: 0 / 0.7099 GB, free: 104.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007837/1.427, allocations: 301.7 kB / 0.7102 GB, free: 104.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/1.427, allocations: 164.5 kB / 0.7104 GB, free: 104.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006305/1.428, allocations: 429.3 kB / 0.7108 GB, free: 104.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/1.428, allocations: 30.02 kB / 0.7108 GB, free: 104.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/1.428, allocations: 412.1 kB / 0.7112 GB, free: 104.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.931e-05/1.428, allocations: 74.62 kB / 0.7113 GB, free: 104.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/1.428, allocations: 10.5 kB / 0.7113 GB, free: 104.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.055e-05/1.428, allocations: 330.4 kB / 0.7116 GB, free: 103.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/1.428, allocations: 103.9 kB / 0.7117 GB, free: 103.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/1.429, allocations: 394.4 kB / 0.7121 GB, free: 103.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/1.429, allocations: 203.3 kB / 0.7123 GB, free: 103.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.783e-06/1.429, allocations: 2.75 kB / 0.7123 GB, free: 103.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001196/1.43, allocations: 0.5448 MB / 0.7128 GB, free: 103.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007438/1.431, allocations: 3.694 MB / 0.7164 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.431, allocations: 12.25 kB / 0.7164 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.558e-05/1.431, allocations: 14.75 kB / 0.7165 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/1.433, allocations: 191.1 kB / 0.7166 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004699/1.433, allocations: 0.6197 MB / 0.7172 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007803/1.434, allocations: 77.83 kB / 0.7173 GB, free: 98.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-05/1.434, allocations: 36.7 kB / 0.7173 GB, free: 98.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/1.434, allocations: 3.969 kB / 0.7174 GB, free: 98.88 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00107/1.435, allocations: 0.5024 MB / 0.7178 GB, free: 98.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/1.435, allocations: 11.81 kB / 0.7179 GB, free: 98.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/1.435, allocations: 22.81 kB / 0.7179 GB, free: 98.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/1.436, allocations: 128.4 kB / 0.718 GB, free: 98.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/1.436, allocations: 18.58 kB / 0.718 GB, free: 98.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/1.436, allocations: 57.14 kB / 0.7181 GB, free: 98.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-05/1.436, allocations: 35.14 kB / 0.7181 GB, free: 98.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (63): * Single equations (assignments): 61 * 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.0002196/1.436, allocations: 182 kB / 0.7183 GB, free: 98.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/1.437, allocations: 57.09 kB / 0.7183 GB, free: 98.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/1.438, allocations: 0.6349 MB / 0.719 GB, free: 98.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/1.438, allocations: 7.641 kB / 0.719 GB, free: 98.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.619e-06/1.438, allocations: 0 / 0.719 GB, free: 98.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.066e-06/1.438, allocations: 0 / 0.719 GB, free: 98.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007495/1.439, allocations: 468.3 kB / 0.7194 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.936e-06/1.439, allocations: 0 / 0.7194 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007813/1.44, allocations: 111.7 kB / 0.7195 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.555e-06/1.44, allocations: 2.156 kB / 0.7195 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/1.44, allocations: 12.95 kB / 0.7195 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002954/1.44, allocations: 0.5955 MB / 0.7201 GB, free: 97.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.39e-06/1.44, allocations: 0 / 0.7201 GB, free: 97.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/1.441, allocations: 409.6 kB / 0.7205 GB, free: 97.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/1.442, allocations: 184.8 kB / 0.7207 GB, free: 97.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/1.442, allocations: 11.11 kB / 0.7207 GB, free: 97.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003438/1.442, allocations: 25 kB / 0.7207 GB, free: 97.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/1.442, allocations: 27.23 kB / 0.7207 GB, free: 97.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/1.442, allocations: 18.31 kB / 0.7208 GB, free: 97.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005132/1.443, allocations: 344.6 kB / 0.7211 GB, free: 97.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-07/1.443, allocations: 0 / 0.7211 GB, free: 97.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00173/1.445, allocations: 427.7 kB / 0.7215 GB, free: 97.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.001077/1.446, allocations: 450.2 kB / 0.7219 GB, free: 97.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002345/1.448, allocations: 0.7626 MB / 0.7227 GB, free: 97.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.454e-06/1.448, allocations: 0 / 0.7227 GB, free: 97.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/1.449, allocations: 286.5 kB / 0.7229 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/1.45, allocations: 192 kB / 0.7231 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/1.453, allocations: 0.8569 MB / 0.724 GB, free: 96.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/1.453, allocations: 0.8969 MB / 0.7248 GB, free: 96.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/1.453, allocations: 65.86 kB / 0.7249 GB, free: 96.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.785e-06/1.453, allocations: 3.188 kB / 0.7249 GB, free: 96.01 MB / 426.7 MB Notification: Performance of Templates: time 0.02132/1.475, allocations: 13.18 MB / 0.7378 GB, free: 95.19 MB / 426.7 MB