Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.345/2.345, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004266/0.0004268, allocations: 8 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3454, allocations: 54.88 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7154/1.061, allocations: 283.8 MB / 0.6383 GB, free: 11.91 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/1.061, allocations: 95.11 kB / 0.6384 GB, free: 11.86 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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.6843/1.746, allocations: 116.3 MB / 0.752 GB, free: 102.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.746, allocations: 0 / 0.752 GB, free: 102.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.063e-05/1.746, allocations: 16 kB / 0.752 GB, free: 102.8 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002486/1.748, allocations: 0.9327 MB / 0.7529 GB, free: 101.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/1.748, allocations: 8.031 kB / 0.7529 GB, free: 101.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/1.749, allocations: 79.23 kB / 0.753 GB, free: 101.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/1.751, allocations: 0.5481 MB / 0.7536 GB, free: 101.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/1.751, allocations: 33 kB / 0.7536 GB, free: 101.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/1.751, allocations: 40 kB / 0.7536 GB, free: 101.1 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/1.752, allocations: 0.657 MB / 0.7543 GB, free: 100.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/1.752, allocations: 0 / 0.7543 GB, free: 100.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.575e-05/1.753, allocations: 24 kB / 0.7543 GB, free: 100.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/1.753, allocations: 12 kB / 0.7543 GB, free: 100.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/1.754, allocations: 0.5035 MB / 0.7548 GB, free: 99.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/1.759, allocations: 3.107 MB / 0.7578 GB, free: 96.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000514/1.759, allocations: 199 kB / 0.758 GB, free: 96.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001851/1.761, allocations: 1.017 MB / 0.759 GB, free: 95.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003669/1.761, allocations: 185 kB / 0.7592 GB, free: 95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.196e-06/1.761, allocations: 0 / 0.7592 GB, free: 95 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.001133/1.763, allocations: 452.1 kB / 0.7596 GB, free: 94.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/1.763, allocations: 162.2 kB / 0.7598 GB, free: 94.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007234/1.763, allocations: 494.8 kB / 0.7602 GB, free: 93.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/1.764, allocations: 29.7 kB / 0.7603 GB, free: 93.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/1.764, allocations: 408.9 kB / 0.7607 GB, free: 93.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.154e-05/1.764, allocations: 86.92 kB / 0.7607 GB, free: 93.31 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/1.764, allocations: 12 kB / 0.7608 GB, free: 93.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.725e-05/1.764, allocations: 334.8 kB / 0.7611 GB, free: 92.96 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/1.764, allocations: 109.1 kB / 0.7612 GB, free: 92.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004121/1.765, allocations: 397.4 kB / 0.7616 GB, free: 92.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/1.765, allocations: 215.3 kB / 0.7618 GB, free: 92.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/1.765, allocations: 0 / 0.7618 GB, free: 92.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00124/1.766, allocations: 0.5546 MB / 0.7623 GB, free: 91.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/1.767, allocations: 402.2 kB / 0.7627 GB, free: 91.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/1.767, allocations: 15.98 kB / 0.7627 GB, free: 91.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.263e-05/1.767, allocations: 12 kB / 0.7627 GB, free: 91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/1.769, allocations: 187.7 kB / 0.7629 GB, free: 90.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004957/1.769, allocations: 0.621 MB / 0.7635 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007918/1.77, allocations: 83.3 kB / 0.7636 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.462e-05/1.77, allocations: 35.98 kB / 0.7636 GB, free: 90.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/1.77, allocations: 4 kB / 0.7636 GB, free: 90.05 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001144/1.771, allocations: 0.5223 MB / 0.7641 GB, free: 89.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/1.771, allocations: 11.95 kB / 0.7641 GB, free: 89.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/1.771, allocations: 16.88 kB / 0.7642 GB, free: 89.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/1.772, allocations: 127.8 kB / 0.7643 GB, free: 89.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/1.772, allocations: 19.94 kB / 0.7643 GB, free: 89.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000488/1.773, allocations: 63.52 kB / 0.7644 GB, free: 89.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/1.773, allocations: 35.98 kB / 0.7644 GB, free: 89.25 MB / 490.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 () * Number of clocked 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.0004566/1.773, allocations: 306.5 kB / 0.7647 GB, free: 88.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/1.773, allocations: 59.34 kB / 0.7647 GB, free: 88.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/1.775, allocations: 0.6393 MB / 0.7654 GB, free: 88.22 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/1.775, allocations: 4 kB / 0.7654 GB, free: 88.21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.775, allocations: 0 / 0.7654 GB, free: 88.21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/1.775, allocations: 3.984 kB / 0.7654 GB, free: 88.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007862/1.776, allocations: 477 kB / 0.7658 GB, free: 87.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/1.776, allocations: 3.953 kB / 0.7658 GB, free: 87.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009535/1.777, allocations: 111.8 kB / 0.7659 GB, free: 87.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/1.777, allocations: 4 kB / 0.7659 GB, free: 87.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/1.777, allocations: 8 kB / 0.7659 GB, free: 87.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003138/1.777, allocations: 0.5899 MB / 0.7665 GB, free: 86.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.777, allocations: 0 / 0.7665 GB, free: 86.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008542/1.778, allocations: 418.8 kB / 0.7669 GB, free: 86.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/1.779, allocations: 192.1 kB / 0.7671 GB, free: 86.32 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/1.779, allocations: 12 kB / 0.7671 GB, free: 86.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/1.779, allocations: 19.98 kB / 0.7671 GB, free: 86.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.993e-05/1.779, allocations: 23.97 kB / 0.7672 GB, free: 86.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/1.779, allocations: 15.94 kB / 0.7672 GB, free: 86.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005751/1.78, allocations: 366.8 kB / 0.7675 GB, free: 85.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.78, allocations: 0 / 0.7675 GB, free: 85.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001811/1.782, allocations: 435.2 kB / 0.7679 GB, free: 85.46 MB / 490.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) * Number of clocked states: 0 () * 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.001212/1.783, allocations: 441.5 kB / 0.7684 GB, free: 85.03 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003209/1.786, allocations: 0.8263 MB / 0.7692 GB, free: 84.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/1.786, allocations: 0 / 0.7692 GB, free: 84.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/1.788, allocations: 320.3 kB / 0.7695 GB, free: 83.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/1.789, allocations: 208.5 kB / 0.7697 GB, free: 83.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/1.793, allocations: 1.442 MB / 0.7711 GB, free: 82.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/1.793, allocations: 0.9 MB / 0.772 GB, free: 81.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/1.793, allocations: 67.41 kB / 0.772 GB, free: 81.19 MB / 490.7 MB Notification: Performance of SimCode: time 1.122e-06/1.793, allocations: 0 / 0.772 GB, free: 81.19 MB / 490.7 MB Notification: Performance of Templates: time 0.02628/1.82, allocations: 13.33 MB / 0.785 GB, free: 67.88 MB / 490.7 MB