Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.016/2.016, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004376/0.0004378, allocations: 16 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3753, allocations: 48.69 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.212/1.587, allocations: 463.2 MB / 0.7763 GB, free: 27.12 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.588, allocations: 88.89 kB / 0.7764 GB, free: 27.07 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.9468/2.535, allocations: 196.7 MB / 0.9685 GB, free: 17.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.254e-06/2.535, allocations: 0 / 0.9685 GB, free: 17.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.255e-05/2.535, allocations: 19.94 kB / 0.9685 GB, free: 17.86 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002968/2.538, allocations: 1.115 MB / 0.9696 GB, free: 16.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/2.538, allocations: 8.031 kB / 0.9696 GB, free: 16.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/2.54, allocations: 179 kB / 0.9698 GB, free: 16.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/2.541, allocations: 0.5677 MB / 0.9704 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/2.541, allocations: 33 kB / 0.9704 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.935e-05/2.541, allocations: 47.94 kB / 0.9704 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/2.543, allocations: 0.6056 MB / 0.971 GB, free: 15.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/2.543, allocations: 3.938 kB / 0.971 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/2.543, allocations: 16 kB / 0.971 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/2.543, allocations: 15.98 kB / 0.9711 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/2.544, allocations: 475.6 kB / 0.9715 GB, free: 14.67 MB / 442.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.004134/2.548, allocations: 2.608 MB / 0.9741 GB, free: 11.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007019/2.549, allocations: 254.8 kB / 0.9743 GB, free: 11.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003829/2.549, allocations: 236.1 kB / 0.9745 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005042/2.55, allocations: 277.7 kB / 0.9748 GB, free: 11.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.835e-06/2.55, allocations: 0 / 0.9748 GB, free: 11.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001531/2.551, allocations: 0.648 MB / 0.9754 GB, free: 10.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.157e-05/2.551, allocations: 166.2 kB / 0.9756 GB, free: 10.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000797/2.552, allocations: 0.5457 MB / 0.9761 GB, free: 9.629 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/2.552, allocations: 33.64 kB / 0.9761 GB, free: 9.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/2.552, allocations: 381.6 kB / 0.9765 GB, free: 9.211 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/2.553, allocations: 110.4 kB / 0.9766 GB, free: 9.102 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/2.553, allocations: 12 kB / 0.9766 GB, free: 9.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.557e-05/2.553, allocations: 334.8 kB / 0.9769 GB, free: 8.754 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/2.553, allocations: 157 kB / 0.9771 GB, free: 8.602 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004944/2.554, allocations: 378.6 kB / 0.9775 GB, free: 8.129 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/2.554, allocations: 245.6 kB / 0.9777 GB, free: 7.883 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/2.554, allocations: 4 kB / 0.9777 GB, free: 7.879 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001446/2.556, allocations: 0.6194 MB / 0.9783 GB, free: 7.246 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001715/2.556, allocations: 336.3 kB / 0.9786 GB, free: 6.816 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/2.556, allocations: 8 kB / 0.9786 GB, free: 6.809 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/2.556, allocations: 8 kB / 0.9786 GB, free: 6.801 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/2.568, allocations: 0.6243 MB / 0.9792 GB, free: 6.176 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006062/2.568, allocations: 0.6523 MB / 0.9799 GB, free: 5.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008137/2.569, allocations: 71.52 kB / 0.98 GB, free: 5.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/2.569, allocations: 59.94 kB / 0.98 GB, free: 5.371 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/2.569, allocations: 4 kB / 0.98 GB, free: 5.367 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001293/2.571, allocations: 0.5515 MB / 0.9806 GB, free: 4.809 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/2.571, allocations: 15.92 kB / 0.9806 GB, free: 4.793 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/2.571, allocations: 8.875 kB / 0.9806 GB, free: 4.785 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007057/2.571, allocations: 143.8 kB / 0.9807 GB, free: 4.645 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/2.571, allocations: 11.94 kB / 0.9807 GB, free: 4.633 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/2.572, allocations: 51.67 kB / 0.9808 GB, free: 4.582 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.927e-05/2.572, allocations: 55.92 kB / 0.9808 GB, free: 4.527 MB / 442.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * 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.0004873/2.573, allocations: 306.6 kB / 0.9811 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/2.573, allocations: 71.2 kB / 0.9812 GB, free: 4.141 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002503/2.575, allocations: 0.7595 MB / 0.9819 GB, free: 3.363 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/2.575, allocations: 4 kB / 0.9819 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/2.575, allocations: 0 / 0.9819 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/2.575, allocations: 0 / 0.9819 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/2.578, allocations: 1.661 MB / 0.9836 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-06/2.578, allocations: 3.984 kB / 0.9836 GB, free: 1.531 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003378/2.582, allocations: 208 kB / 0.9838 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/2.582, allocations: 4 kB / 0.9838 GB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.657e-05/2.582, allocations: 23.94 kB / 0.9838 GB, free: 1.301 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004661/2.582, allocations: 0.6406 MB / 0.9844 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/2.582, allocations: 4 kB / 0.9844 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3199/2.902, allocations: 0.6539 MB / 0.985 GB, free: 90.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003092/2.903, allocations: 136.1 kB / 0.9852 GB, free: 90.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/2.903, allocations: 12.38 kB / 0.9852 GB, free: 90.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005514/2.904, allocations: 26.2 kB / 0.9852 GB, free: 90.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/2.904, allocations: 43.5 kB / 0.9853 GB, free: 90.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/2.904, allocations: 38.61 kB / 0.9853 GB, free: 90.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006748/2.904, allocations: 383.8 kB / 0.9857 GB, free: 90.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.11e-07/2.905, allocations: 0 / 0.9857 GB, free: 90.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002896/2.907, allocations: 0.6062 MB / 0.9863 GB, free: 90.25 MB / 442.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,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.003321/2.911, allocations: 1.197 MB / 0.9874 GB, free: 90.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02226/2.933, allocations: 1.608 MB / 0.989 GB, free: 89.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.933, allocations: 4.969 kB / 0.989 GB, free: 89.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00579/2.939, allocations: 462.3 kB / 0.9894 GB, free: 89.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/2.941, allocations: 241.9 kB / 0.9897 GB, free: 89.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/2.953, allocations: 2.891 MB / 0.9925 GB, free: 89.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/2.953, allocations: 0.8991 MB / 0.9934 GB, free: 88.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007034/2.954, allocations: 111.1 kB / 0.9935 GB, free: 88.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.323e-06/2.954, allocations: 7.5 kB / 0.9935 GB, free: 88.55 MB / 442.7 MB Notification: Performance of Templates: time 0.04027/2.994, allocations: 18.77 MB / 1.012 GB, free: 88.05 MB / 442.7 MB