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.TestSharpEdgedOrifice.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.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.263/2.263, allocations: 235.1 MB / 243 MB, free: 9.504 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.849e-05/1.861e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2767, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.312/1.589, allocations: 469.3 MB / 0.8079 GB, free: 178.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004609/1.589, allocations: 82.8 kB / 0.808 GB, free: 178.1 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.8746/2.464, allocations: 189.9 MB / 0.9935 GB, free: 97.58 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.238e-06/2.464, allocations: 0.7188 kB / 0.9935 GB, free: 97.58 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.599e-05/2.464, allocations: 19.34 kB / 0.9935 GB, free: 97.58 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003037/2.467, allocations: 1.018 MB / 0.9945 GB, free: 97.18 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/2.467, allocations: 9.188 kB / 0.9945 GB, free: 97.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/2.469, allocations: 173.1 kB / 0.9947 GB, free: 97.14 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/2.471, allocations: 0.5741 MB / 0.9952 GB, free: 96.91 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/2.471, allocations: 18.39 kB / 0.9953 GB, free: 96.91 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/2.471, allocations: 24.75 kB / 0.9953 GB, free: 96.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001191/2.472, allocations: 446.9 kB / 0.9957 GB, free: 96.91 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/2.474, allocations: 0.5283 MB / 0.9962 GB, free: 96.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/2.474, allocations: 2.125 kB / 0.9962 GB, free: 96.78 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.695e-05/2.474, allocations: 2.812 kB / 0.9962 GB, free: 96.78 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/2.474, allocations: 11.7 kB / 0.9962 GB, free: 96.78 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.004504/2.478, allocations: 2.696 MB / 0.9989 GB, free: 95.28 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/2.479, allocations: 260.4 kB / 0.9991 GB, free: 95.26 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/2.48, allocations: 120.2 kB / 0.9992 GB, free: 95.25 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002536/2.48, allocations: 191 kB / 0.9994 GB, free: 95.06 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/2.48, allocations: 199 kB / 0.9996 GB, free: 94.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 4.869e-06/2.48, allocations: 0.9688 kB / 0.9996 GB, free: 94.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.01143/2.492, allocations: 1.497 MB / 1.001 GB, free: 94.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/2.492, allocations: 159.9 kB / 1.001 GB, free: 94.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007868/2.492, allocations: 0.497 MB / 1.002 GB, free: 94.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/2.493, allocations: 29.48 kB / 1.002 GB, free: 94.58 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/2.493, allocations: 414.1 kB / 1.002 GB, free: 94.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.666e-05/2.493, allocations: 80.27 kB / 1.002 GB, free: 94.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/2.493, allocations: 3.969 kB / 1.002 GB, free: 94.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.943e-05/2.493, allocations: 335 kB / 1.003 GB, free: 93.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/2.493, allocations: 153.8 kB / 1.003 GB, free: 93.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/2.494, allocations: 362.7 kB / 1.003 GB, free: 93.71 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/2.506, allocations: 1.449 MB / 1.004 GB, free: 93.71 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/2.506, allocations: 3.594 kB / 1.004 GB, free: 93.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.01305/2.519, allocations: 1.778 MB / 1.006 GB, free: 93.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005805/2.52, allocations: 2.736 MB / 1.009 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/2.52, allocations: 6.938 kB / 1.009 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.42e-05/2.52, allocations: 15.52 kB / 1.009 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007623/2.527, allocations: 0.6104 MB / 1.009 GB, free: 90.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004387/2.532, allocations: 1.013 MB / 1.01 GB, free: 90.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009212/2.533, allocations: 69.59 kB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/2.533, allocations: 56.98 kB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/2.533, allocations: 3.094 kB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00417/2.537, allocations: 0.8865 MB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/2.537, allocations: 6.938 kB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/2.537, allocations: 14.38 kB / 1.011 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/2.538, allocations: 135.8 kB / 1.012 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/2.538, allocations: 16.91 kB / 1.012 GB, free: 90.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/2.538, allocations: 49.02 kB / 1.012 GB, free: 90.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/2.539, allocations: 56.83 kB / 1.012 GB, free: 90.2 MB / 474.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 () * 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.0002361/2.539, allocations: 157 kB / 1.012 GB, free: 90.06 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/2.539, allocations: 66.94 kB / 1.012 GB, free: 90.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/2.543, allocations: 0.7128 MB / 1.013 GB, free: 89.97 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.039e-06/2.543, allocations: 0 / 1.013 GB, free: 89.97 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.167e-06/2.543, allocations: 3.312 kB / 1.013 GB, free: 89.97 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.686e-06/2.544, allocations: 6.094 kB / 1.013 GB, free: 89.97 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000827/2.544, allocations: 429.9 kB / 1.013 GB, free: 89.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-06/2.544, allocations: 0 / 1.013 GB, free: 89.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002397/2.547, allocations: 171 kB / 1.013 GB, free: 89.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.143e-06/2.547, allocations: 3.469 kB / 1.013 GB, free: 89.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.107e-05/2.547, allocations: 10.23 kB / 1.013 GB, free: 89.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/2.548, allocations: 0.7153 MB / 1.014 GB, free: 89.22 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/2.548, allocations: 3.625 kB / 1.014 GB, free: 89.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004115/2.552, allocations: 0.6443 MB / 1.015 GB, free: 89.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/2.553, allocations: 152.1 kB / 1.015 GB, free: 89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/2.553, allocations: 3.938 kB / 1.015 GB, free: 89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/2.553, allocations: 17.39 kB / 1.015 GB, free: 89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/2.553, allocations: 20.69 kB / 1.015 GB, free: 89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.571e-05/2.554, allocations: 16.19 kB / 1.015 GB, free: 89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005789/2.554, allocations: 400.5 kB / 1.015 GB, free: 88.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.17e-07/2.554, allocations: 0 / 1.015 GB, free: 88.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00242/2.557, allocations: 0.581 MB / 1.016 GB, free: 88.88 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 (23): * Single equations (assignments): 21 * 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.002895/2.559, allocations: 1.328 MB / 1.017 GB, free: 88.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01303/2.573, allocations: 1.546 MB / 1.019 GB, free: 88.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/2.573, allocations: 0 / 1.019 GB, free: 88.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/2.576, allocations: 396.4 kB / 1.019 GB, free: 88.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/2.577, allocations: 225.3 kB / 1.019 GB, free: 88.53 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008482/2.586, allocations: 2.325 MB / 1.021 GB, free: 88.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/2.586, allocations: 0.8891 MB / 1.022 GB, free: 87.57 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004965/2.587, allocations: 92.92 kB / 1.022 GB, free: 87.56 MB / 474.7 MB Notification: Performance of SimCode: time 1.906e-06/2.587, allocations: 0 / 1.022 GB, free: 87.56 MB / 474.7 MB Notification: Performance of Templates: time 0.03079/2.618, allocations: 18.92 MB / 1.041 GB, free: 87.06 MB / 474.7 MB