Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.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.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.498/2.498, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.832e-05, allocations: 4 kB / 303.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3502, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1753/0.5255, allocations: 89.38 MB / 447.5 MB, free: 5.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003972/0.526, allocations: 99.84 kB / 447.6 MB, free: 5.238 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6216:11-6222:61:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6224:11-6227:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6230:11-6236:59:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6238:11-6241:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.05682/0.5828, allocations: 11.17 MB / 458.8 MB, free: 9.992 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5828, allocations: 0 / 458.8 MB, free: 9.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.5829, allocations: 4 kB / 458.8 MB, free: 9.988 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001306/0.5842, allocations: 0.5724 MB / 459.4 MB, free: 9.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.5843, allocations: 12.03 kB / 459.4 MB, free: 9.359 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.513e-05/0.5844, allocations: 27.62 kB / 459.4 MB, free: 9.332 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.5848, allocations: 238.6 kB / 459.6 MB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.5848, allocations: 16 kB / 459.7 MB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.5849, allocations: 16 kB / 459.7 MB, free: 9.027 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008971/0.5858, allocations: 405.3 kB / 460.1 MB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008875/0.5867, allocations: 398 kB / 460.5 MB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.5867, allocations: 3.953 kB / 460.5 MB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.5868, allocations: 0 / 460.5 MB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.883e-05/0.5869, allocations: 40.75 kB / 460.5 MB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002942/0.5898, allocations: 1.278 MB / 461.8 MB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007343/0.5906, allocations: 244.3 kB / 462 MB, free: 6.559 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.5908, allocations: 80.81 kB / 462.1 MB, free: 6.477 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.5909, allocations: 4.391 kB / 462.1 MB, free: 6.473 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.5909, allocations: 42.5 kB / 462.1 MB, free: 6.422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.196e-06/0.5909, allocations: 0 / 462.1 MB, free: 6.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.000622/0.5916, allocations: 205.8 kB / 462.3 MB, free: 6.215 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.5916, allocations: 55.41 kB / 462.4 MB, free: 6.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.5918, allocations: 129.2 kB / 462.5 MB, free: 6.012 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.5919, allocations: 25.7 kB / 462.5 MB, free: 5.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.592, allocations: 254.5 kB / 462.8 MB, free: 5.727 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.955e-05/0.5922, allocations: 78.75 kB / 462.9 MB, free: 5.648 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.5922, allocations: 7.938 kB / 462.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5923, allocations: 334.7 kB / 463.2 MB, free: 5.305 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.5925, allocations: 67.95 kB / 463.3 MB, free: 5.238 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.5928, allocations: 146.3 kB / 463.4 MB, free: 5.059 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.5931, allocations: 108 kB / 463.5 MB, free: 4.953 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.5931, allocations: 0 / 463.5 MB, free: 4.953 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006775/0.5938, allocations: 261.1 kB / 463.8 MB, free: 4.691 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.5938, allocations: 11.94 kB / 463.8 MB, free: 4.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.5938, allocations: 4 kB / 463.8 MB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.5939, allocations: 4 kB / 463.8 MB, free: 4.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5949, allocations: 132.2 kB / 463.9 MB, free: 4.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.5965, allocations: 2.375 MB / 466.3 MB, free: 2.074 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003321/0.5969, allocations: 23.75 kB / 466.3 MB, free: 2.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.037e-05/0.5969, allocations: 19.98 kB / 466.3 MB, free: 2.031 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.5971, allocations: 109 kB / 466.5 MB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005296/0.5976, allocations: 209.4 kB / 466.7 MB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.743e-05/0.5977, allocations: 15.81 kB / 466.7 MB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.5988, allocations: 321.8 kB / 467 MB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.5988, allocations: 7.953 kB / 467 MB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5988, allocations: 0 / 467 MB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5988, allocations: 3.984 kB / 467 MB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004955/0.5993, allocations: 273.9 kB / 467.3 MB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5994, allocations: 0 / 467.3 MB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6004, allocations: 111.9 kB / 467.4 MB, free: 0.9492 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.6004, allocations: 8 kB / 467.4 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.6005, allocations: 4 kB / 467.4 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2988/0.8992, allocations: 2.36 MB / 469.7 MB, free: 97.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/0.8993, allocations: 0.8906 kB / 469.7 MB, free: 97.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008088/0.9001, allocations: 325.7 kB / 470.1 MB, free: 97.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.52e-05/0.9002, allocations: 95.34 kB / 470.2 MB, free: 97.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.9003, allocations: 5.047 kB / 470.2 MB, free: 97.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.9006, allocations: 9.906 kB / 470.2 MB, free: 97.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.9007, allocations: 24.67 kB / 470.2 MB, free: 97.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.9008, allocations: 9.859 kB / 470.2 MB, free: 97.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.972e-05/0.9009, allocations: 98.38 kB / 470.3 MB, free: 97.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.9009, allocations: 0 / 470.3 MB, free: 97.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001035/0.9019, allocations: 176.2 kB / 470.5 MB, free: 97.63 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001646/0.9036, allocations: 1.019 MB / 471.5 MB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.9048, allocations: 235.7 kB / 471.7 MB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.9049, allocations: 0.7188 kB / 471.7 MB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/0.9056, allocations: 144.5 kB / 471.9 MB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.906, allocations: 9.469 kB / 471.9 MB, free: 96.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.9081, allocations: 0.5439 MB / 472.4 MB, free: 96.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.9085, allocations: 0.8117 MB / 473.2 MB, free: 96.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.9088, allocations: 92.73 kB / 473.3 MB, free: 96.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.9088, allocations: 0 / 473.3 MB, free: 96.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.099/4.007, allocations: 10.08 MB / 483.4 MB, free: 94.41 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat does not exist to compare? outputFormat=mat