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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.235/2.235, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006001/0.0006002, allocations: 16 kB / 314.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3452, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.269/1.614, allocations: 470 MB / 0.8197 GB, free: 13.59 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/1.614, allocations: 86.45 kB / 0.8198 GB, free: 13.55 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 0.9697/2.584, allocations: 196.2 MB / 1.011 GB, free: 21.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.485e-06/2.584, allocations: 0 / 1.011 GB, free: 21.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.614e-05/2.584, allocations: 20 kB / 1.011 GB, free: 21.22 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.003699/2.588, allocations: 1.124 MB / 1.013 GB, free: 20.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/2.588, allocations: 8.031 kB / 1.013 GB, free: 20.04 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002323/2.588, allocations: 90.47 kB / 1.013 GB, free: 19.94 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002705/2.591, allocations: 175 kB / 1.013 GB, free: 19.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/2.593, allocations: 0.5754 MB / 1.013 GB, free: 19.15 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.047e-05/2.593, allocations: 37 kB / 1.013 GB, free: 19.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/2.593, allocations: 43.98 kB / 1.013 GB, free: 19.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/2.595, allocations: 0.604 MB / 1.014 GB, free: 18.42 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/2.595, allocations: 3.938 kB / 1.014 GB, free: 18.42 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/2.595, allocations: 24 kB / 1.014 GB, free: 18.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/2.595, allocations: 8 kB / 1.014 GB, free: 18.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/2.596, allocations: 487.6 kB / 1.015 GB, free: 17.91 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.00509/2.602, allocations: 2.6 MB / 1.017 GB, free: 15.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008998/2.602, allocations: 270.8 kB / 1.017 GB, free: 14.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00047/2.603, allocations: 232.2 kB / 1.018 GB, free: 14.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006632/2.604, allocations: 268.8 kB / 1.018 GB, free: 14.31 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 2.057e-05/2.604, allocations: 0 / 1.018 GB, free: 14.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.001997/2.606, allocations: 0.6567 MB / 1.018 GB, free: 13.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/2.606, allocations: 166.2 kB / 1.019 GB, free: 13.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009858/2.607, allocations: 0.4903 MB / 1.019 GB, free: 12.92 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.997e-05/2.607, allocations: 33.7 kB / 1.019 GB, free: 12.88 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/2.607, allocations: 381.6 kB / 1.019 GB, free: 12.51 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/2.607, allocations: 118.4 kB / 1.02 GB, free: 12.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/2.607, allocations: 12 kB / 1.02 GB, free: 12.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/2.608, allocations: 326.8 kB / 1.02 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/2.608, allocations: 165 kB / 1.02 GB, free: 11.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007094/2.609, allocations: 383.5 kB / 1.02 GB, free: 11.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007061/2.61, allocations: 249.6 kB / 1.021 GB, free: 11.16 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/2.61, allocations: 0 / 1.021 GB, free: 11.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001932/2.612, allocations: 0.6312 MB / 1.021 GB, free: 10.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006892/2.612, allocations: 2.735 MB / 1.024 GB, free: 7.562 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/2.612, allocations: 4 kB / 1.024 GB, free: 7.559 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.277e-05/2.612, allocations: 12 kB / 1.024 GB, free: 7.547 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01529/2.628, allocations: 0.6126 MB / 1.025 GB, free: 6.934 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008191/2.629, allocations: 0.6524 MB / 1.025 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/2.63, allocations: 71.36 kB / 1.025 GB, free: 6.188 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/2.63, allocations: 59.98 kB / 1.025 GB, free: 6.129 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/2.63, allocations: 6.188 kB / 1.025 GB, free: 6.125 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001419/2.631, allocations: 0.5406 MB / 1.026 GB, free: 5.578 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/2.631, allocations: 16.02 kB / 1.026 GB, free: 5.562 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/2.631, allocations: 8 kB / 1.026 GB, free: 5.555 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/2.632, allocations: 139.8 kB / 1.026 GB, free: 5.418 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/2.632, allocations: 15.92 kB / 1.026 GB, free: 5.402 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00045/2.633, allocations: 55.58 kB / 1.026 GB, free: 5.348 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.69e-05/2.633, allocations: 67.92 kB / 1.026 GB, free: 5.281 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.0004652/2.633, allocations: 302.6 kB / 1.026 GB, free: 4.969 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/2.633, allocations: 63.33 kB / 1.026 GB, free: 4.906 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002471/2.636, allocations: 0.7711 MB / 1.027 GB, free: 4.113 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/2.636, allocations: 7.938 kB / 1.027 GB, free: 4.105 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/2.636, allocations: 0 / 1.027 GB, free: 4.105 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/2.636, allocations: 0 / 1.027 GB, free: 4.105 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/2.639, allocations: 1.669 MB / 1.029 GB, free: 2.273 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/2.639, allocations: 0 / 1.029 GB, free: 2.273 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003289/2.642, allocations: 219.9 kB / 1.029 GB, free: 2.059 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/2.642, allocations: 7.953 kB / 1.029 GB, free: 2.051 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/2.642, allocations: 19.98 kB / 1.029 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003939/2.643, allocations: 0.6367 MB / 1.03 GB, free: 1.371 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/2.643, allocations: 4 kB / 1.03 GB, free: 1.367 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/2.644, allocations: 0.7435 MB / 1.03 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/2.644, allocations: 140.3 kB / 1.031 GB, free: 380 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/2.644, allocations: 12 kB / 1.031 GB, free: 368 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004971/2.645, allocations: 23.98 kB / 1.031 GB, free: 344 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/2.645, allocations: 43.84 kB / 1.031 GB, free: 300 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.759e-05/2.645, allocations: 35.98 kB / 1.031 GB, free: 264 kB / 490.7 MB Notification: Performance of sorting global known variables: time 0.3358/2.981, allocations: 380.3 kB / 1.031 GB, free: 108.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.981, allocations: 0.5625 kB / 1.031 GB, free: 108.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003469/2.984, allocations: 0.6162 MB / 1.032 GB, free: 108.3 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.005657/2.99, allocations: 2.942 MB / 1.035 GB, free: 106.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02858/3.019, allocations: 1.67 MB / 1.036 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/3.019, allocations: 0 / 1.036 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007405/3.026, allocations: 496.4 kB / 1.037 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/3.029, allocations: 242.3 kB / 1.037 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02171/3.051, allocations: 9.768 MB / 1.046 GB, free: 100.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/3.052, allocations: 0.8965 MB / 1.047 GB, free: 100.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/3.053, allocations: 268.2 kB / 1.048 GB, free: 100.1 MB / 490.7 MB Notification: Performance of SimCode: time 2.514e-06/3.053, allocations: 0 / 1.048 GB, free: 100.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.119/6.171, allocations: 21.56 MB / 1.069 GB, free: 99.63 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat