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/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.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.13/2.13, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.859e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3207, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6019/0.9227, allocations: 283.8 MB / 0.6331 GB, free: 49.51 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.923, allocations: 84.02 kB / 0.6332 GB, free: 49.47 MB / 458.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.6424/1.565, allocations: 115.8 MB / 0.7463 GB, free: 133.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.939e-06/1.565, allocations: 0 / 0.7463 GB, free: 133.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.58e-05/1.565, allocations: 16.12 kB / 0.7463 GB, free: 133.3 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.00148/1.567, allocations: 0.8574 MB / 0.7472 GB, free: 132.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.567, allocations: 11.22 kB / 0.7472 GB, free: 132.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004038/1.567, allocations: 87.95 kB / 0.7473 GB, free: 132.6 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/1.569, allocations: 0.5426 MB / 0.7478 GB, free: 132.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/1.569, allocations: 36.62 kB / 0.7478 GB, free: 132.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/1.569, allocations: 45.59 kB / 0.7479 GB, free: 132.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/1.57, allocations: 0.6374 MB / 0.7485 GB, free: 131.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/1.57, allocations: 4 kB / 0.7485 GB, free: 131.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.728e-05/1.57, allocations: 25.69 kB / 0.7485 GB, free: 131.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/1.57, allocations: 11.53 kB / 0.7485 GB, free: 131.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009777/1.571, allocations: 0.5002 MB / 0.749 GB, free: 131.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/1.575, allocations: 3.099 MB / 0.7521 GB, free: 128.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004223/1.575, allocations: 191.5 kB / 0.7522 GB, free: 128.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/1.576, allocations: 113.7 kB / 0.7524 GB, free: 128.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001512/1.577, allocations: 1.029 MB / 0.7534 GB, free: 127.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/1.577, allocations: 184.9 kB / 0.7535 GB, free: 127.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 4.443e-06/1.577, allocations: 0 / 0.7535 GB, free: 127.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006806/1.578, allocations: 286.8 kB / 0.7538 GB, free: 127.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/1.578, allocations: 166 kB / 0.754 GB, free: 127.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/1.579, allocations: 431.7 kB / 0.7544 GB, free: 126.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/1.579, allocations: 33.3 kB / 0.7544 GB, free: 126.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/1.579, allocations: 405.1 kB / 0.7548 GB, free: 126.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.955e-05/1.579, allocations: 92.11 kB / 0.7549 GB, free: 126.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/1.579, allocations: 8 kB / 0.7549 GB, free: 126.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.583e-05/1.579, allocations: 338.6 kB / 0.7552 GB, free: 126 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/1.58, allocations: 108.5 kB / 0.7553 GB, free: 126 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/1.58, allocations: 394.4 kB / 0.7557 GB, free: 125.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/1.58, allocations: 208.7 kB / 0.7559 GB, free: 125.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.428e-06/1.58, allocations: 3.656 kB / 0.7559 GB, free: 125.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001129/1.581, allocations: 0.5354 MB / 0.7564 GB, free: 125.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007329/1.582, allocations: 3.693 MB / 0.76 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/1.582, allocations: 10.25 kB / 0.76 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.445e-05/1.582, allocations: 14.5 kB / 0.76 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/1.584, allocations: 193.8 kB / 0.7602 GB, free: 121.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004293/1.584, allocations: 0.611 MB / 0.7608 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007641/1.585, allocations: 84.97 kB / 0.7609 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-05/1.585, allocations: 35.3 kB / 0.7609 GB, free: 120.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.585, allocations: 5.344 kB / 0.7609 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001027/1.586, allocations: 0.4993 MB / 0.7614 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/1.586, allocations: 11.77 kB / 0.7614 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/1.586, allocations: 19.03 kB / 0.7615 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/1.587, allocations: 132.5 kB / 0.7616 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/1.587, allocations: 18.55 kB / 0.7616 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/1.587, allocations: 60.58 kB / 0.7617 GB, free: 120.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.975e-05/1.587, allocations: 35.31 kB / 0.7617 GB, free: 120.1 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.0002071/1.588, allocations: 180.4 kB / 0.7619 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/1.588, allocations: 55.56 kB / 0.7619 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/1.589, allocations: 0.6414 MB / 0.7626 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.589, allocations: 3.906 kB / 0.7626 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.468e-06/1.589, allocations: 0 / 0.7626 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.868e-06/1.589, allocations: 3.984 kB / 0.7626 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/1.59, allocations: 485.1 kB / 0.763 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.682e-06/1.59, allocations: 4 kB / 0.763 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007667/1.591, allocations: 106 kB / 0.7631 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.797e-06/1.591, allocations: 3.812 kB / 0.7631 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/1.591, allocations: 7.938 kB / 0.7631 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002858/1.591, allocations: 0.5934 MB / 0.7637 GB, free: 118.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.168e-06/1.591, allocations: 0 / 0.7637 GB, free: 118.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007417/1.592, allocations: 413.3 kB / 0.7641 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/1.592, allocations: 187 kB / 0.7643 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/1.593, allocations: 11.09 kB / 0.7643 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/1.593, allocations: 26.83 kB / 0.7643 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/1.593, allocations: 19.84 kB / 0.7643 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/1.593, allocations: 18.89 kB / 0.7644 GB, free: 118.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004661/1.594, allocations: 347.4 kB / 0.7647 GB, free: 117.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.594, allocations: 0 / 0.7647 GB, free: 117.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001585/1.595, allocations: 435 kB / 0.7651 GB, free: 117.8 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.0009717/1.596, allocations: 452.6 kB / 0.7655 GB, free: 117.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/1.599, allocations: 0.8233 MB / 0.7663 GB, free: 117.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.749e-06/1.599, allocations: 0 / 0.7663 GB, free: 117.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009325/1.6, allocations: 315.2 kB / 0.7666 GB, free: 116.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/1.601, allocations: 178 kB / 0.7668 GB, free: 116.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/1.603, allocations: 0.8733 MB / 0.7677 GB, free: 116.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/1.603, allocations: 0.9 MB / 0.7685 GB, free: 115.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/1.604, allocations: 65.66 kB / 0.7686 GB, free: 115.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.704e-06/1.604, allocations: 0 / 0.7686 GB, free: 115.6 MB / 474.7 MB Notification: Performance of Templates: time 0.01993/1.623, allocations: 13.32 MB / 0.7816 GB, free: 104.5 MB / 474.7 MB