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.406/2.406, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.401e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 54.85 MB / 364.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.405/1.812, allocations: 470 MB / 0.815 GB, free: 84.68 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/1.812, allocations: 80.14 kB / 0.8151 GB, free: 84.63 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 1.018/2.83, allocations: 195.7 MB / 1.006 GB, free: 93.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.274e-06/2.83, allocations: 3.938 kB / 1.006 GB, free: 93.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.509e-05/2.83, allocations: 16 kB / 1.006 GB, free: 93.73 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.003096/2.833, allocations: 1.032 MB / 1.007 GB, free: 92.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/2.833, allocations: 8.031 kB / 1.007 GB, free: 92.64 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/2.833, allocations: 82.52 kB / 1.007 GB, free: 92.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00195/2.835, allocations: 171 kB / 1.007 GB, free: 92.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/2.837, allocations: 0.5794 MB / 1.008 GB, free: 91.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/2.837, allocations: 32.94 kB / 1.008 GB, free: 91.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/2.837, allocations: 44 kB / 1.008 GB, free: 91.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/2.838, allocations: 0.5959 MB / 1.009 GB, free: 91.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/2.839, allocations: 3.938 kB / 1.009 GB, free: 91.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-05/2.839, allocations: 16 kB / 1.009 GB, free: 91.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/2.839, allocations: 12 kB / 1.009 GB, free: 91.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/2.84, allocations: 475.1 kB / 1.009 GB, free: 90.55 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.004445/2.844, allocations: 2.604 MB / 1.012 GB, free: 87.78 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000701/2.845, allocations: 270.1 kB / 1.012 GB, free: 87.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/2.845, allocations: 173.1 kB / 1.012 GB, free: 87.33 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00041/2.846, allocations: 248.5 kB / 1.012 GB, free: 87.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005132/2.846, allocations: 264.8 kB / 1.013 GB, free: 86.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 4.058e-06/2.846, allocations: 0 / 1.013 GB, free: 86.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.001209/2.848, allocations: 442.7 kB / 1.013 GB, free: 86.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/2.848, allocations: 166.2 kB / 1.013 GB, free: 86.13 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/2.848, allocations: 488.7 kB / 1.014 GB, free: 85.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/2.848, allocations: 37.64 kB / 1.014 GB, free: 85.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/2.849, allocations: 389.5 kB / 1.014 GB, free: 85.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/2.849, allocations: 118.4 kB / 1.014 GB, free: 85.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/2.849, allocations: 12 kB / 1.014 GB, free: 85.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.976e-05/2.849, allocations: 326.8 kB / 1.014 GB, free: 84.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/2.849, allocations: 157.1 kB / 1.015 GB, free: 84.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/2.85, allocations: 392.9 kB / 1.015 GB, free: 84.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/2.85, allocations: 245.3 kB / 1.015 GB, free: 83.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/2.85, allocations: 4 kB / 1.015 GB, free: 83.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001454/2.852, allocations: 0.6116 MB / 1.016 GB, free: 83.24 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006113/2.853, allocations: 2.731 MB / 1.019 GB, free: 80.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/2.853, allocations: 8 kB / 1.019 GB, free: 80.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.522e-05/2.853, allocations: 8 kB / 1.019 GB, free: 80.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01186/2.865, allocations: 0.6126 MB / 1.019 GB, free: 79.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006165/2.865, allocations: 0.6563 MB / 1.02 GB, free: 78.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008716/2.866, allocations: 71.41 kB / 1.02 GB, free: 78.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/2.866, allocations: 55.98 kB / 1.02 GB, free: 78.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/2.866, allocations: 4 kB / 1.02 GB, free: 78.86 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001278/2.868, allocations: 0.54 MB / 1.02 GB, free: 78.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/2.868, allocations: 8 kB / 1.02 GB, free: 78.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/2.868, allocations: 8.047 kB / 1.02 GB, free: 78.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007425/2.868, allocations: 147.8 kB / 1.021 GB, free: 78.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/2.868, allocations: 19.92 kB / 1.021 GB, free: 78.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/2.869, allocations: 63.83 kB / 1.021 GB, free: 78.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/2.869, allocations: 59.92 kB / 1.021 GB, free: 78.01 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.0002785/2.869, allocations: 167.5 kB / 1.021 GB, free: 77.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/2.87, allocations: 71.2 kB / 1.021 GB, free: 77.76 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/2.872, allocations: 0.7489 MB / 1.022 GB, free: 77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/2.872, allocations: 4 kB / 1.022 GB, free: 76.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/2.872, allocations: 4 kB / 1.022 GB, free: 76.99 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/2.872, allocations: 0 / 1.022 GB, free: 76.99 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/2.875, allocations: 1.646 MB / 1.023 GB, free: 75.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/2.875, allocations: 4 kB / 1.023 GB, free: 75.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003433/2.879, allocations: 211.9 kB / 1.023 GB, free: 74.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.695e-05/2.879, allocations: 4 kB / 1.024 GB, free: 74.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.824e-05/2.879, allocations: 27.97 kB / 1.024 GB, free: 74.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004663/2.879, allocations: 0.6366 MB / 1.024 GB, free: 74.28 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/2.879, allocations: 4.031 kB / 1.024 GB, free: 74.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/2.881, allocations: 0.7434 MB / 1.025 GB, free: 73.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/2.881, allocations: 144.2 kB / 1.025 GB, free: 73.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/2.881, allocations: 12 kB / 1.025 GB, free: 73.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005507/2.882, allocations: 27.98 kB / 1.025 GB, free: 73.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/2.882, allocations: 39.84 kB / 1.025 GB, free: 73.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/2.882, allocations: 35.98 kB / 1.025 GB, free: 73.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006667/2.883, allocations: 381.5 kB / 1.025 GB, free: 72.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.883, allocations: 11.88 kB / 1.026 GB, free: 72.78 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002931/2.886, allocations: 0.6045 MB / 1.026 GB, free: 72.17 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.004801/2.891, allocations: 2.936 MB / 1.029 GB, free: 69.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02145/2.912, allocations: 1.658 MB / 1.031 GB, free: 67.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/2.912, allocations: 3.938 kB / 1.031 GB, free: 67.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005406/2.917, allocations: 496.2 kB / 1.031 GB, free: 66.97 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/2.92, allocations: 240.6 kB / 1.031 GB, free: 66.74 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/2.931, allocations: 2.609 MB / 1.034 GB, free: 64.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/2.932, allocations: 0.8953 MB / 1.035 GB, free: 63.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000816/2.933, allocations: 263.3 kB / 1.035 GB, free: 62.88 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/2.933, allocations: 0 / 1.035 GB, free: 62.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.143/6.076, allocations: 21.53 MB / 1.056 GB, free: 41.34 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