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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.426/2.426, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.9e-05/2.927e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3591, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.321/1.681, allocations: 469.3 MB / 0.808 GB, free: 26.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/1.681, allocations: 82.95 kB / 0.8081 GB, free: 26.12 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.9678/2.649, allocations: 189.9 MB / 0.9936 GB, free: 44.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.603e-06/2.649, allocations: 0 / 0.9936 GB, free: 44.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.174e-05/2.649, allocations: 12 kB / 0.9936 GB, free: 44.88 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.002548/2.651, allocations: 1.028 MB / 0.9946 GB, free: 43.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/2.652, allocations: 12.03 kB / 0.9946 GB, free: 43.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/2.653, allocations: 174.9 kB / 0.9948 GB, free: 43.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/2.655, allocations: 0.5818 MB / 0.9954 GB, free: 42.99 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/2.655, allocations: 19.94 kB / 0.9954 GB, free: 42.97 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/2.655, allocations: 24 kB / 0.9954 GB, free: 42.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009817/2.656, allocations: 442.5 kB / 0.9958 GB, free: 42.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/2.657, allocations: 0.5309 MB / 0.9963 GB, free: 41.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/2.657, allocations: 7.922 kB / 0.9963 GB, free: 41.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.893e-05/2.657, allocations: 4 kB / 0.9963 GB, free: 41.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/2.657, allocations: 8 kB / 0.9964 GB, free: 41.93 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.004157/2.661, allocations: 2.7 MB / 0.999 GB, free: 39.06 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008608/2.662, allocations: 258.6 kB / 0.9992 GB, free: 38.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/2.663, allocations: 116.8 kB / 0.9994 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002812/2.663, allocations: 195 kB / 0.9995 GB, free: 38.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/2.663, allocations: 189 kB / 0.9997 GB, free: 38.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.657e-06/2.663, allocations: 0 / 0.9997 GB, free: 38.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.01577/2.679, allocations: 1.496 MB / 1.001 GB, free: 36.74 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/2.679, allocations: 162.2 kB / 1.001 GB, free: 36.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007766/2.68, allocations: 0.4983 MB / 1.002 GB, free: 36.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/2.68, allocations: 25.7 kB / 1.002 GB, free: 36.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/2.68, allocations: 417.1 kB / 1.002 GB, free: 35.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.049e-05/2.68, allocations: 82.84 kB / 1.002 GB, free: 35.52 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/2.68, allocations: 0 / 1.002 GB, free: 35.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.671e-05/2.68, allocations: 330.8 kB / 1.003 GB, free: 35.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/2.681, allocations: 149.1 kB / 1.003 GB, free: 35.04 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/2.681, allocations: 371.8 kB / 1.003 GB, free: 34.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/2.697, allocations: 1.443 MB / 1.005 GB, free: 33.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/2.697, allocations: 0 / 1.005 GB, free: 33.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.01624/2.713, allocations: 1.781 MB / 1.006 GB, free: 31.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000553/2.714, allocations: 2.736 MB / 1.009 GB, free: 28.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/2.714, allocations: 8 kB / 1.009 GB, free: 28.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.68e-05/2.714, allocations: 8 kB / 1.009 GB, free: 28.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01117/2.725, allocations: 0.6165 MB / 1.01 GB, free: 27.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005372/2.73, allocations: 1.015 MB / 1.011 GB, free: 26.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009183/2.731, allocations: 67.45 kB / 1.011 GB, free: 26.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/2.731, allocations: 51.98 kB / 1.011 GB, free: 26.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/2.731, allocations: 4 kB / 1.011 GB, free: 26.59 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004067/2.735, allocations: 0.8901 MB / 1.012 GB, free: 25.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/2.735, allocations: 11.94 kB / 1.012 GB, free: 25.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/2.736, allocations: 12.09 kB / 1.012 GB, free: 25.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007181/2.736, allocations: 131.8 kB / 1.012 GB, free: 25.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/2.736, allocations: 19.92 kB / 1.012 GB, free: 25.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/2.737, allocations: 43.58 kB / 1.012 GB, free: 25.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-05/2.737, allocations: 55.98 kB / 1.012 GB, free: 25.43 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.0002179/2.737, allocations: 162.5 kB / 1.012 GB, free: 25.26 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01553/2.753, allocations: 1.507 MB / 1.013 GB, free: 23.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/2.753, allocations: 67.2 kB / 1.014 GB, free: 23.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004941/2.758, allocations: 0.7085 MB / 1.014 GB, free: 22.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/2.758, allocations: 4 kB / 1.014 GB, free: 22.96 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/2.758, allocations: 0 / 1.014 GB, free: 22.96 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/2.758, allocations: 0 / 1.014 GB, free: 22.96 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007079/2.759, allocations: 429.7 kB / 1.015 GB, free: 22.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/2.759, allocations: 0 / 1.015 GB, free: 22.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003002/2.762, allocations: 179.7 kB / 1.015 GB, free: 22.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/2.762, allocations: 0 / 1.015 GB, free: 22.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/2.762, allocations: 7.984 kB / 1.015 GB, free: 22.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/2.763, allocations: 0.7186 MB / 1.015 GB, free: 21.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/2.763, allocations: 0 / 1.015 GB, free: 21.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004723/2.768, allocations: 0.6452 MB / 1.016 GB, free: 20.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/2.768, allocations: 152.3 kB / 1.016 GB, free: 20.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/2.768, allocations: 0 / 1.016 GB, free: 20.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/2.769, allocations: 23.98 kB / 1.016 GB, free: 20.72 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/2.769, allocations: 19.97 kB / 1.016 GB, free: 20.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/2.769, allocations: 8 kB / 1.016 GB, free: 20.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006289/2.77, allocations: 411.1 kB / 1.017 GB, free: 20.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.77, allocations: 3.938 kB / 1.017 GB, free: 20.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002631/2.772, allocations: 0.5811 MB / 1.017 GB, free: 19.71 MB / 490.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.008178/2.78, allocations: 2.432 MB / 1.02 GB, free: 17.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02023/2.801, allocations: 1.543 MB / 1.021 GB, free: 15.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/2.801, allocations: 0 / 1.021 GB, free: 15.68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004985/2.806, allocations: 400.4 kB / 1.022 GB, free: 15.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/2.808, allocations: 203.5 kB / 1.022 GB, free: 15.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/2.819, allocations: 2.594 MB / 1.024 GB, free: 12.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/2.819, allocations: 0.8905 MB / 1.025 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/2.82, allocations: 251.3 kB / 1.025 GB, free: 11.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/2.82, allocations: 0 / 1.025 GB, free: 11.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.46/6.28, allocations: 21.58 MB / 1.046 GB, free: 109 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