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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.02/2.02, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000428/0.000428, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3567, allocations: 48.7 MB / 331.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.225/1.582, allocations: 463.2 MB / 0.7759 GB, free: 26.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003524/1.582, allocations: 92.2 kB / 0.776 GB, free: 26.9 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.9609/2.543, allocations: 196.7 MB / 0.9681 GB, free: 17.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/2.543, allocations: 0 / 0.9681 GB, free: 17.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.582e-05/2.543, allocations: 15.98 kB / 0.9681 GB, free: 17.63 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.00381/2.547, allocations: 1.123 MB / 0.9692 GB, free: 16.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/2.547, allocations: 8.031 kB / 0.9692 GB, free: 16.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003131/2.547, allocations: 82.53 kB / 0.9693 GB, free: 16.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002061/2.549, allocations: 175 kB / 0.9695 GB, free: 16.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/2.551, allocations: 0.5716 MB / 0.97 GB, free: 15.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/2.551, allocations: 32.95 kB / 0.9701 GB, free: 15.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/2.552, allocations: 40 kB / 0.9701 GB, free: 15.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/2.553, allocations: 0.6016 MB / 0.9707 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/2.553, allocations: 0 / 0.9707 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-05/2.553, allocations: 20 kB / 0.9707 GB, free: 14.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/2.553, allocations: 8 kB / 0.9707 GB, free: 14.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/2.554, allocations: 483.6 kB / 0.9712 GB, free: 14.36 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.004522/2.559, allocations: 2.611 MB / 0.9737 GB, free: 11.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007383/2.56, allocations: 266.6 kB / 0.974 GB, free: 11.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003972/2.56, allocations: 236.2 kB / 0.9742 GB, free: 11.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005493/2.561, allocations: 261.8 kB / 0.9744 GB, free: 10.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 3.466e-06/2.561, allocations: 0 / 0.9744 GB, free: 10.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.00158/2.562, allocations: 0.6599 MB / 0.9751 GB, free: 10.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/2.562, allocations: 166.2 kB / 0.9752 GB, free: 9.863 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007783/2.563, allocations: 498 kB / 0.9757 GB, free: 9.371 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.159e-05/2.563, allocations: 29.7 kB / 0.9758 GB, free: 9.336 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/2.564, allocations: 377.6 kB / 0.9761 GB, free: 8.965 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/2.564, allocations: 114.4 kB / 0.9762 GB, free: 8.852 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/2.564, allocations: 8 kB / 0.9762 GB, free: 8.844 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.865e-05/2.564, allocations: 330.8 kB / 0.9765 GB, free: 8.512 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/2.564, allocations: 161 kB / 0.9767 GB, free: 8.355 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005188/2.565, allocations: 386.6 kB / 0.9771 GB, free: 7.875 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000505/2.565, allocations: 241.5 kB / 0.9773 GB, free: 7.633 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-06/2.565, allocations: 4 kB / 0.9773 GB, free: 7.629 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001489/2.567, allocations: 0.6201 MB / 0.9779 GB, free: 6.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005796/2.567, allocations: 2.741 MB / 0.9806 GB, free: 4.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/2.567, allocations: 8 kB / 0.9806 GB, free: 4.031 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.756e-05/2.568, allocations: 8 kB / 0.9806 GB, free: 4.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/2.58, allocations: 0.6087 MB / 0.9812 GB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006568/2.58, allocations: 0.6639 MB / 0.9818 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009241/2.581, allocations: 71.52 kB / 0.9819 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/2.581, allocations: 59.98 kB / 0.982 GB, free: 2.598 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/2.581, allocations: 7.125 kB / 0.982 GB, free: 2.594 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001357/2.583, allocations: 0.5485 MB / 0.9825 GB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/2.583, allocations: 12.14 kB / 0.9825 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/2.583, allocations: 12 kB / 0.9825 GB, free: 2.016 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007452/2.584, allocations: 139.8 kB / 0.9827 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/2.584, allocations: 15.98 kB / 0.9827 GB, free: 1.863 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/2.584, allocations: 51.67 kB / 0.9827 GB, free: 1.812 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/2.584, allocations: 48 kB / 0.9828 GB, free: 1.766 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.0005959/2.585, allocations: 322.4 kB / 0.9831 GB, free: 1.434 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/2.585, allocations: 59.25 kB / 0.9831 GB, free: 1.375 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/2.588, allocations: 0.7517 MB / 0.9839 GB, free: 0.6016 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/2.588, allocations: 4 kB / 0.9839 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/2.588, allocations: 0 / 0.9839 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/2.588, allocations: 3.984 kB / 0.9839 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3372/2.925, allocations: 1.656 MB / 0.9855 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/2.925, allocations: 4.547 kB / 0.9855 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003484/2.929, allocations: 208.2 kB / 0.9857 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.1e-05/2.929, allocations: 6.844 kB / 0.9857 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.015e-05/2.929, allocations: 17.66 kB / 0.9857 GB, free: 90.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004749/2.929, allocations: 0.6442 MB / 0.9864 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/2.929, allocations: 2.562 kB / 0.9864 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/2.931, allocations: 0.7492 MB / 0.9871 GB, free: 89.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/2.931, allocations: 137.6 kB / 0.9872 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/2.931, allocations: 10.22 kB / 0.9872 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/2.932, allocations: 28.11 kB / 0.9873 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/2.932, allocations: 39.92 kB / 0.9873 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/2.932, allocations: 40.39 kB / 0.9873 GB, free: 89.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000708/2.933, allocations: 382.4 kB / 0.9877 GB, free: 89.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.843e-06/2.933, allocations: 0 / 0.9877 GB, free: 89.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002993/2.936, allocations: 0.6085 MB / 0.9883 GB, free: 89.14 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.00504/2.941, allocations: 2.936 MB / 0.9912 GB, free: 87.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02237/2.963, allocations: 1.603 MB / 0.9927 GB, free: 87.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/2.963, allocations: 1 kB / 0.9927 GB, free: 87.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005645/2.969, allocations: 463.4 kB / 0.9932 GB, free: 87.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/2.971, allocations: 237.4 kB / 0.9934 GB, free: 87.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/2.988, allocations: 9.74 MB / 1.003 GB, free: 81.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004531/2.989, allocations: 0.8939 MB / 1.004 GB, free: 80.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008739/2.989, allocations: 268 kB / 1.004 GB, free: 80.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/2.989, allocations: 0 / 1.004 GB, free: 80.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.32/6.31, allocations: 21.39 MB / 1.025 GB, free: 80.26 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat