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.TestSimpleGenericOrifice.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.969e-05/1.948e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2761, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5914/0.8675, allocations: 283.1 MB / 0.6261 GB, free: 6.535 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.8678, allocations: 80.33 kB / 0.6262 GB, free: 6.492 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.5824/1.45, allocations: 114.8 MB / 0.7383 GB, free: 84.88 MB / 474.7 MB Notification: Performance of FrontEnd: time 2e-06/1.45, allocations: 0 / 0.7383 GB, free: 84.88 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.668e-05/1.45, allocations: 16 kB / 0.7383 GB, free: 84.86 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001534/1.452, allocations: 0.8616 MB / 0.7391 GB, free: 83.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/1.452, allocations: 15.97 kB / 0.7392 GB, free: 83.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00045/1.452, allocations: 83.14 kB / 0.7392 GB, free: 83.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/1.454, allocations: 0.5429 MB / 0.7398 GB, free: 83.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/1.454, allocations: 16 kB / 0.7398 GB, free: 83.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.924e-05/1.454, allocations: 24 kB / 0.7398 GB, free: 83.22 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009241/1.455, allocations: 466.5 kB / 0.7403 GB, free: 82.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000977/1.456, allocations: 0.5818 MB / 0.7408 GB, free: 82.13 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/1.456, allocations: 0 / 0.7408 GB, free: 82.13 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.552e-05/1.456, allocations: 4 kB / 0.7408 GB, free: 82.12 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/1.456, allocations: 12 kB / 0.7408 GB, free: 82.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/1.46, allocations: 3 MB / 0.7438 GB, free: 78.93 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/1.46, allocations: 190.9 kB / 0.744 GB, free: 78.73 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/1.46, allocations: 109.3 kB / 0.7441 GB, free: 78.62 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/1.462, allocations: 1.017 MB / 0.745 GB, free: 77.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/1.462, allocations: 177 kB / 0.7452 GB, free: 77.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 3.489e-06/1.462, allocations: 0 / 0.7452 GB, free: 77.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.003417/1.466, allocations: 0.5044 MB / 0.7457 GB, free: 76.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/1.466, allocations: 166.1 kB / 0.7459 GB, free: 76.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000517/1.466, allocations: 389.9 kB / 0.7462 GB, free: 76.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/1.466, allocations: 33.7 kB / 0.7463 GB, free: 76.17 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/1.466, allocations: 408.9 kB / 0.7467 GB, free: 75.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.618e-05/1.467, allocations: 75 kB / 0.7467 GB, free: 75.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/1.467, allocations: 0 / 0.7467 GB, free: 75.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.731e-05/1.467, allocations: 334.8 kB / 0.7471 GB, free: 75.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/1.467, allocations: 97.09 kB / 0.7471 GB, free: 75.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/1.467, allocations: 385.4 kB / 0.7475 GB, free: 74.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003325/1.471, allocations: 440.5 kB / 0.7479 GB, free: 74.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.221e-05/1.471, allocations: 4 kB / 0.7479 GB, free: 74.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004206/1.475, allocations: 0.7202 MB / 0.7486 GB, free: 73.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007423/1.476, allocations: 3.683 MB / 0.7522 GB, free: 69.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/1.476, allocations: 12 kB / 0.7522 GB, free: 69.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.13e-05/1.476, allocations: 15.95 kB / 0.7523 GB, free: 69.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/1.477, allocations: 187.7 kB / 0.7524 GB, free: 69.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009037/1.478, allocations: 0.6757 MB / 0.7531 GB, free: 68.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/1.479, allocations: 67.45 kB / 0.7532 GB, free: 68.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.146e-05/1.479, allocations: 39.98 kB / 0.7532 GB, free: 68.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/1.479, allocations: 6.812 kB / 0.7532 GB, free: 68.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002661/1.481, allocations: 0.5592 MB / 0.7538 GB, free: 68.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.482, allocations: 11.94 kB / 0.7538 GB, free: 68.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.482, allocations: 16 kB / 0.7538 GB, free: 68.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/1.482, allocations: 131.7 kB / 0.7539 GB, free: 67.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/1.482, allocations: 19.89 kB / 0.7539 GB, free: 67.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/1.483, allocations: 55.8 kB / 0.754 GB, free: 67.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.322e-05/1.483, allocations: 35.98 kB / 0.754 GB, free: 67.78 MB / 474.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: 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 (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.0002117/1.483, allocations: 166.5 kB / 0.7542 GB, free: 67.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/1.483, allocations: 55.33 kB / 0.7542 GB, free: 67.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/1.486, allocations: 0.6956 MB / 0.7549 GB, free: 66.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/1.486, allocations: 4 kB / 0.7549 GB, free: 66.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.028e-06/1.486, allocations: 4 kB / 0.7549 GB, free: 66.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.163e-06/1.486, allocations: 3.984 kB / 0.7549 GB, free: 66.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006524/1.487, allocations: 401.7 kB / 0.7553 GB, free: 66.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.017e-06/1.487, allocations: 4 kB / 0.7553 GB, free: 66.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006754/1.487, allocations: 107.8 kB / 0.7554 GB, free: 66.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.309e-06/1.487, allocations: 4 kB / 0.7554 GB, free: 66.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/1.487, allocations: 7.984 kB / 0.7554 GB, free: 66.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000438/1.488, allocations: 0.6133 MB / 0.756 GB, free: 65.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.66e-06/1.488, allocations: 3.984 kB / 0.756 GB, free: 65.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/1.49, allocations: 477.2 kB / 0.7565 GB, free: 65.15 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/1.49, allocations: 188.1 kB / 0.7567 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/1.49, allocations: 0 / 0.7567 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/1.49, allocations: 15.98 kB / 0.7567 GB, free: 64.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/1.49, allocations: 23.97 kB / 0.7567 GB, free: 64.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.311e-05/1.491, allocations: 15.98 kB / 0.7567 GB, free: 64.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004342/1.491, allocations: 314.9 kB / 0.757 GB, free: 64.59 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.238e-06/1.491, allocations: 0 / 0.757 GB, free: 64.59 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001668/1.493, allocations: 411.2 kB / 0.7574 GB, free: 64.19 MB / 474.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: 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 (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.0009575/1.494, allocations: 442.1 kB / 0.7578 GB, free: 63.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/1.496, allocations: 0.7619 MB / 0.7586 GB, free: 62.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.276e-06/1.496, allocations: 0 / 0.7586 GB, free: 62.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009446/1.497, allocations: 304.2 kB / 0.7589 GB, free: 62.66 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/1.498, allocations: 187 kB / 0.759 GB, free: 62.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/1.5, allocations: 0.8664 MB / 0.7599 GB, free: 61.58 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/1.5, allocations: 0.8994 MB / 0.7608 GB, free: 60.64 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/1.501, allocations: 67.41 kB / 0.7608 GB, free: 60.58 MB / 474.7 MB Notification: Performance of SimCode: time 1.797e-06/1.501, allocations: 0 / 0.7608 GB, free: 60.58 MB / 474.7 MB Notification: Performance of Templates: time 0.02017/1.521, allocations: 13.24 MB / 0.7738 GB, free: 47.34 MB / 474.7 MB