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.TestWallFriction.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.TestWallFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.893e-05/1.904e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3792, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.162/1.541, allocations: 329.1 MB / 0.6711 GB, free: 113.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/1.542, allocations: 82.48 kB / 0.6712 GB, free: 113.8 MB / 474.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 1.859/3.401, allocations: 326.4 MB / 0.9899 GB, free: 59.07 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.924e-06/3.401, allocations: 0 / 0.9899 GB, free: 59.07 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002087/3.401, allocations: 35.59 kB / 0.99 GB, free: 59.07 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.006816/3.408, allocations: 1.79 MB / 0.9917 GB, free: 58.42 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/3.408, allocations: 13.12 kB / 0.9917 GB, free: 58.42 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/3.41, allocations: 176.9 kB / 0.9919 GB, free: 58.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004068/3.414, allocations: 1.119 MB / 0.993 GB, free: 58.06 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.355e-05/3.414, allocations: 31.94 kB / 0.993 GB, free: 58.06 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/3.414, allocations: 54.97 kB / 0.9931 GB, free: 58.06 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003183/3.417, allocations: 1.186 MB / 0.9942 GB, free: 58.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003107/3.42, allocations: 1.29 MB / 0.9955 GB, free: 57.76 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.709e-05/3.42, allocations: 4.5 kB / 0.9955 GB, free: 57.76 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/3.421, allocations: 3.875 kB / 0.9955 GB, free: 57.76 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.534e-05/3.421, allocations: 56 kB / 0.9956 GB, free: 57.75 MB / 474.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.01223/3.433, allocations: 6.516 MB / 1.002 GB, free: 54.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/3.434, allocations: 477.6 kB / 1.002 GB, free: 54.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000577/3.435, allocations: 284.9 kB / 1.003 GB, free: 54.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02901/3.464, allocations: 17.17 MB / 1.019 GB, free: 37.47 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005156/3.464, allocations: 273 kB / 1.02 GB, free: 37.39 MB / 474.7 MB Notification: Performance of pre-optimization done (n=42): time 3.768e-06/3.464, allocations: 0 / 1.02 GB, free: 37.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=42): time 0.008572/3.473, allocations: 1.013 MB / 1.021 GB, free: 37.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/3.473, allocations: 274.6 kB / 1.021 GB, free: 36.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/3.475, allocations: 0.9214 MB / 1.022 GB, free: 36.83 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/3.475, allocations: 32.83 kB / 1.022 GB, free: 36.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006183/3.476, allocations: 0.7775 MB / 1.023 GB, free: 36.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/3.476, allocations: 143.3 kB / 1.023 GB, free: 36.34 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.56e-05/3.476, allocations: 3.906 kB / 1.023 GB, free: 36.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/3.476, allocations: 364.9 kB / 1.023 GB, free: 36.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/3.477, allocations: 240.9 kB / 1.023 GB, free: 36.03 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009319/3.478, allocations: 0.9165 MB / 1.024 GB, free: 35.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/3.49, allocations: 1.368 MB / 1.026 GB, free: 35.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.393e-05/3.49, allocations: 7.562 kB / 1.026 GB, free: 35.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.01437/3.504, allocations: 2.009 MB / 1.028 GB, free: 35.07 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002166/3.506, allocations: 9.082 MB / 1.036 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.811e-05/3.507, allocations: 28.39 kB / 1.036 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.411e-05/3.507, allocations: 34.62 kB / 1.036 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/3.511, allocations: 422.5 kB / 1.037 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002948/3.514, allocations: 1.375 MB / 1.038 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/3.516, allocations: 162.8 kB / 1.038 GB, free: 40.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/3.516, allocations: 78.88 kB / 1.038 GB, free: 40.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/3.516, allocations: 7.141 kB / 1.038 GB, free: 40.41 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01088/3.527, allocations: 1.672 MB / 1.04 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.68e-05/3.527, allocations: 24.84 kB / 1.04 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.18e-05/3.527, allocations: 41.11 kB / 1.04 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/3.529, allocations: 315.6 kB / 1.04 GB, free: 40.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005975/3.53, allocations: 0.6578 MB / 1.041 GB, free: 39.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/3.531, allocations: 121 kB / 1.041 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001633/3.531, allocations: 78.12 kB / 1.041 GB, free: 39.76 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004124/3.532, allocations: 197.6 kB / 1.041 GB, free: 39.61 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008371/3.54, allocations: 1.018 MB / 1.042 GB, free: 39.51 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/3.54, allocations: 123.2 kB / 1.043 GB, free: 39.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007718/3.548, allocations: 1.473 MB / 1.044 GB, free: 39.27 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/3.548, allocations: 5.75 kB / 1.044 GB, free: 39.27 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/3.548, allocations: 2.844 kB / 1.044 GB, free: 39.27 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/3.548, allocations: 6.75 kB / 1.044 GB, free: 39.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008074/3.556, allocations: 1.925 MB / 1.046 GB, free: 38.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/3.556, allocations: 0 / 1.046 GB, free: 38.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002954/3.559, allocations: 248.3 kB / 1.046 GB, free: 38.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/3.559, allocations: 3.953 kB / 1.046 GB, free: 38.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.626e-05/3.559, allocations: 16.95 kB / 1.046 GB, free: 38.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/3.561, allocations: 1.319 MB / 1.047 GB, free: 37.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/3.561, allocations: 2.312 kB / 1.047 GB, free: 37.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005817/3.567, allocations: 1.09 MB / 1.049 GB, free: 37.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/3.568, allocations: 252.4 kB / 1.049 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/3.568, allocations: 14.61 kB / 1.049 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/3.569, allocations: 27.7 kB / 1.049 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/3.569, allocations: 51.19 kB / 1.049 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/3.569, allocations: 28.73 kB / 1.049 GB, free: 37.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001265/3.571, allocations: 0.6978 MB / 1.05 GB, free: 37.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.31e-07/3.571, allocations: 0 / 1.05 GB, free: 37.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005854/3.576, allocations: 1.299 MB / 1.051 GB, free: 36.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (61): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01227/3.589, allocations: 2.915 MB / 1.054 GB, free: 35.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006793/3.596, allocations: 1.57 MB / 1.055 GB, free: 35.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/3.596, allocations: 2.406 kB / 1.055 GB, free: 35.68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004492/3.6, allocations: 0.5543 MB / 1.056 GB, free: 35.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/3.604, allocations: 388.4 kB / 1.056 GB, free: 35.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008809/3.613, allocations: 2.597 MB / 1.059 GB, free: 34.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008851/3.613, allocations: 1.192 MB / 1.06 GB, free: 34.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/3.615, allocations: 0.5288 MB / 1.06 GB, free: 34.13 MB / 490.7 MB Notification: Performance of SimCode: time 1.323e-06/3.615, allocations: 0 / 1.06 GB, free: 34.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.694/7.309, allocations: 44.79 MB / 1.104 GB, free: 31.18 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat does not exist to compare? outputFormat=mat