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/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.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.188/2.188, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.362e-05, allocations: 7.984 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3201, allocations: 54.85 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.39, allocations: 469.9 MB / 0.8149 GB, free: 84.75 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/1.391, allocations: 87.39 kB / 0.815 GB, free: 84.7 MB / 490.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.8435/2.234, allocations: 195.6 MB / 1.006 GB, free: 93.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.176e-06/2.234, allocations: 4 kB / 1.006 GB, free: 93.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.821e-05/2.234, allocations: 19.98 kB / 1.006 GB, free: 93.79 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.002184/2.237, allocations: 1.022 MB / 1.007 GB, free: 92.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/2.237, allocations: 8.031 kB / 1.007 GB, free: 92.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001798/2.238, allocations: 178.9 kB / 1.007 GB, free: 92.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/2.24, allocations: 0.5716 MB / 1.008 GB, free: 91.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.887e-05/2.24, allocations: 29 kB / 1.008 GB, free: 91.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/2.24, allocations: 40 kB / 1.008 GB, free: 91.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/2.241, allocations: 0.5997 MB / 1.008 GB, free: 91.21 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/2.241, allocations: 3.938 kB / 1.008 GB, free: 91.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.463e-05/2.241, allocations: 20 kB / 1.009 GB, free: 91.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/2.241, allocations: 11.94 kB / 1.009 GB, free: 91.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009013/2.242, allocations: 479.1 kB / 1.009 GB, free: 90.71 MB / 490.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.003418/2.246, allocations: 2.604 MB / 1.012 GB, free: 87.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005592/2.246, allocations: 267 kB / 1.012 GB, free: 87.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/2.247, allocations: 181.1 kB / 1.012 GB, free: 87.48 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003279/2.247, allocations: 236.6 kB / 1.012 GB, free: 87.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004263/2.247, allocations: 260.8 kB / 1.012 GB, free: 86.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 3.957e-06/2.247, allocations: 0 / 1.012 GB, free: 86.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009626/2.248, allocations: 450.7 kB / 1.013 GB, free: 86.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/2.248, allocations: 170.1 kB / 1.013 GB, free: 86.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/2.249, allocations: 492.7 kB / 1.013 GB, free: 85.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/2.249, allocations: 33.7 kB / 1.014 GB, free: 85.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/2.249, allocations: 373.6 kB / 1.014 GB, free: 85.38 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/2.249, allocations: 118.4 kB / 1.014 GB, free: 85.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/2.249, allocations: 12 kB / 1.014 GB, free: 85.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/2.25, allocations: 330.8 kB / 1.014 GB, free: 84.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/2.25, allocations: 157.1 kB / 1.014 GB, free: 84.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/2.25, allocations: 388.9 kB / 1.015 GB, free: 84.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/2.251, allocations: 249.3 kB / 1.015 GB, free: 84.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.018e-06/2.251, allocations: 4 kB / 1.015 GB, free: 84.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001207/2.252, allocations: 0.6074 MB / 1.016 GB, free: 83.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005327/2.253, allocations: 2.736 MB / 1.018 GB, free: 80.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/2.253, allocations: 11.94 kB / 1.018 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.746e-05/2.253, allocations: 8 kB / 1.018 GB, free: 80.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007468/2.26, allocations: 0.6165 MB / 1.019 GB, free: 79.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005018/2.261, allocations: 0.6523 MB / 1.02 GB, free: 79.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007398/2.261, allocations: 67.61 kB / 1.02 GB, free: 79.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/2.262, allocations: 59.94 kB / 1.02 GB, free: 79.02 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/2.262, allocations: 4 kB / 1.02 GB, free: 79.01 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001065/2.263, allocations: 0.5357 MB / 1.02 GB, free: 78.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/2.263, allocations: 8 kB / 1.02 GB, free: 78.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/2.263, allocations: 8 kB / 1.02 GB, free: 78.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/2.263, allocations: 144.5 kB / 1.02 GB, free: 78.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/2.263, allocations: 11.94 kB / 1.02 GB, free: 78.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/2.264, allocations: 63.52 kB / 1.02 GB, free: 78.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.16e-05/2.264, allocations: 55.98 kB / 1.021 GB, free: 78.18 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 () * 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.0002068/2.264, allocations: 175.2 kB / 1.021 GB, free: 78 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/2.264, allocations: 67.2 kB / 1.021 GB, free: 77.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/2.266, allocations: 0.7606 MB / 1.021 GB, free: 77.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.601e-06/2.266, allocations: 7.938 kB / 1.021 GB, free: 77.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/2.266, allocations: 4 kB / 1.022 GB, free: 77.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.431e-06/2.266, allocations: 3.984 kB / 1.022 GB, free: 77.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/2.269, allocations: 1.646 MB / 1.023 GB, free: 75.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.966e-06/2.269, allocations: 7.984 kB / 1.023 GB, free: 75.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00245/2.271, allocations: 211.7 kB / 1.023 GB, free: 75.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/2.271, allocations: 4 kB / 1.023 GB, free: 75.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.055e-05/2.272, allocations: 19.98 kB / 1.023 GB, free: 75.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000391/2.272, allocations: 0.6328 MB / 1.024 GB, free: 74.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.67e-06/2.272, allocations: 4.031 kB / 1.024 GB, free: 74.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/2.273, allocations: 0.7434 MB / 1.025 GB, free: 73.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/2.273, allocations: 140.2 kB / 1.025 GB, free: 73.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/2.273, allocations: 16 kB / 1.025 GB, free: 73.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/2.274, allocations: 35.92 kB / 1.025 GB, free: 73.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.912e-05/2.274, allocations: 31.91 kB / 1.025 GB, free: 73.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/2.274, allocations: 35.98 kB / 1.025 GB, free: 73.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005248/2.275, allocations: 381.5 kB / 1.025 GB, free: 72.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.36e-07/2.275, allocations: 0 / 1.025 GB, free: 72.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002198/2.277, allocations: 0.6162 MB / 1.026 GB, free: 72.33 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) * 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.002434/2.279, allocations: 1.215 MB / 1.027 GB, free: 71.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01269/2.292, allocations: 1.66 MB / 1.029 GB, free: 69.42 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/2.292, allocations: 2 kB / 1.029 GB, free: 69.42 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003432/2.296, allocations: 499.9 kB / 1.029 GB, free: 68.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/2.297, allocations: 239.4 kB / 1.029 GB, free: 68.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007647/2.305, allocations: 2.328 MB / 1.032 GB, free: 66.31 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/2.305, allocations: 0.8952 MB / 1.033 GB, free: 65.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/2.306, allocations: 111.4 kB / 1.033 GB, free: 65.29 MB / 490.7 MB Notification: Performance of SimCode: time 2.56e-06/2.306, allocations: 0 / 1.033 GB, free: 65.29 MB / 490.7 MB Notification: Performance of Templates: time 0.02685/2.333, allocations: 18.85 MB / 1.051 GB, free: 46.44 MB / 490.7 MB