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.TestSharpEdgedOrifice.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.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.564/2.564, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005878/0.0005882, allocations: 8 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3866, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.299/1.685, allocations: 470 MB / 0.8201 GB, free: 13.66 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/1.686, allocations: 90.52 kB / 0.8202 GB, free: 13.62 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 1.048/2.733, allocations: 196.2 MB / 1.012 GB, free: 21.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.784e-06/2.733, allocations: 0 / 1.012 GB, free: 21.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.583e-05/2.733, allocations: 19.98 kB / 1.012 GB, free: 21.41 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.002909/2.736, allocations: 1.112 MB / 1.013 GB, free: 20.24 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/2.736, allocations: 8.031 kB / 1.013 GB, free: 20.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/2.738, allocations: 179 kB / 1.013 GB, free: 20.06 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/2.74, allocations: 0.5793 MB / 1.014 GB, free: 19.44 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/2.74, allocations: 33 kB / 1.014 GB, free: 19.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.281e-05/2.74, allocations: 40 kB / 1.014 GB, free: 19.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/2.741, allocations: 0.6078 MB / 1.014 GB, free: 18.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/2.741, allocations: 4 kB / 1.014 GB, free: 18.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.852e-05/2.741, allocations: 20 kB / 1.014 GB, free: 18.69 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/2.741, allocations: 16 kB / 1.014 GB, free: 18.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/2.742, allocations: 483.6 kB / 1.015 GB, free: 18.2 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.00392/2.746, allocations: 2.608 MB / 1.017 GB, free: 15.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/2.747, allocations: 266.8 kB / 1.018 GB, free: 15.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003893/2.747, allocations: 240.2 kB / 1.018 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005256/2.748, allocations: 264.8 kB / 1.018 GB, free: 14.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 3.817e-06/2.748, allocations: 0 / 1.018 GB, free: 14.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.001526/2.749, allocations: 0.6565 MB / 1.019 GB, free: 13.91 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/2.749, allocations: 170.2 kB / 1.019 GB, free: 13.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008379/2.75, allocations: 0.5496 MB / 1.019 GB, free: 13.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.614e-05/2.75, allocations: 33.7 kB / 1.019 GB, free: 13.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/2.751, allocations: 377.7 kB / 1.02 GB, free: 12.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/2.751, allocations: 122.3 kB / 1.02 GB, free: 12.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/2.751, allocations: 12 kB / 1.02 GB, free: 12.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.371e-05/2.751, allocations: 326.8 kB / 1.02 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/2.751, allocations: 165 kB / 1.02 GB, free: 12.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/2.752, allocations: 387.5 kB / 1.021 GB, free: 11.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000515/2.752, allocations: 249.5 kB / 1.021 GB, free: 11.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/2.752, allocations: 0 / 1.021 GB, free: 11.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001413/2.754, allocations: 0.6235 MB / 1.022 GB, free: 10.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001621/2.754, allocations: 324.8 kB / 1.022 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/2.754, allocations: 8 kB / 1.022 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.679e-05/2.754, allocations: 19.95 kB / 1.022 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01218/2.766, allocations: 0.6048 MB / 1.023 GB, free: 9.684 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006374/2.767, allocations: 0.664 MB / 1.023 GB, free: 8.996 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008504/2.768, allocations: 67.36 kB / 1.023 GB, free: 8.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/2.768, allocations: 59.98 kB / 1.023 GB, free: 8.871 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/2.768, allocations: 4.094 kB / 1.023 GB, free: 8.867 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001237/2.769, allocations: 0.5441 MB / 1.024 GB, free: 8.316 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/2.769, allocations: 8 kB / 1.024 GB, free: 8.309 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/2.769, allocations: 8 kB / 1.024 GB, free: 8.301 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007163/2.77, allocations: 143.7 kB / 1.024 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/2.77, allocations: 11.95 kB / 1.024 GB, free: 8.148 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/2.771, allocations: 59.95 kB / 1.024 GB, free: 8.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/2.771, allocations: 55.98 kB / 1.024 GB, free: 8.035 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.0005553/2.771, allocations: 316.3 kB / 1.024 GB, free: 7.711 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/2.771, allocations: 59.34 kB / 1.025 GB, free: 7.652 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/2.774, allocations: 0.7673 MB / 1.025 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/2.774, allocations: 8 kB / 1.025 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/2.774, allocations: 3.938 kB / 1.025 GB, free: 6.848 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/2.774, allocations: 3.984 kB / 1.025 GB, free: 6.844 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/2.778, allocations: 1.672 MB / 1.027 GB, free: 5.008 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.778, allocations: 4 kB / 1.027 GB, free: 5.004 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/2.781, allocations: 208 kB / 1.027 GB, free: 4.801 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/2.781, allocations: 4 kB / 1.027 GB, free: 4.797 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.094e-05/2.781, allocations: 20 kB / 1.027 GB, free: 4.777 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004553/2.782, allocations: 0.6445 MB / 1.028 GB, free: 4.109 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/2.782, allocations: 7.969 kB / 1.028 GB, free: 4.102 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/2.783, allocations: 0.6365 MB / 1.028 GB, free: 3.418 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/2.783, allocations: 152.2 kB / 1.029 GB, free: 3.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/2.784, allocations: 19.92 kB / 1.029 GB, free: 3.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/2.784, allocations: 23.98 kB / 1.029 GB, free: 3.207 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/2.784, allocations: 31.97 kB / 1.029 GB, free: 3.176 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/2.784, allocations: 35.98 kB / 1.029 GB, free: 3.141 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006103/2.785, allocations: 386.8 kB / 1.029 GB, free: 2.766 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.785, allocations: 0 / 1.029 GB, free: 2.766 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002607/2.788, allocations: 0.6162 MB / 1.03 GB, free: 2.148 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.002981/2.791, allocations: 1.208 MB / 1.031 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3638/3.154, allocations: 1.674 MB / 1.032 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/3.154, allocations: 1 kB / 1.032 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005943/3.16, allocations: 496.2 kB / 1.033 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/3.163, allocations: 241 kB / 1.033 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/3.175, allocations: 2.913 MB / 1.036 GB, free: 107 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/3.175, allocations: 0.9025 MB / 1.037 GB, free: 106.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007626/3.176, allocations: 110.7 kB / 1.037 GB, free: 106.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/3.176, allocations: 0 / 1.037 GB, free: 106.3 MB / 490.7 MB Notification: Performance of Templates: time 0.03895/3.215, allocations: 18.89 MB / 1.055 GB, free: 105.9 MB / 490.7 MB