Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.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.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.093/2.093, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004552, allocations: 16 kB / 282.7 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3632, allocations: 48.7 MB / 331.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.5774, allocations: 98.64 MB / 430 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005927/0.5781, allocations: 103.9 kB / 430.1 MB, free: 11.61 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4955:11-4956:126:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4977:11-4978:120:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4937:11-4953:48:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4959:11-4975:59:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1999/0.7781, allocations: 27.82 MB / 458 MB, free: 15.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.7781, allocations: 0 / 458 MB, free: 15.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.263e-05/0.7782, allocations: 12 kB / 458 MB, free: 15.46 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003621/0.7818, allocations: 0.9088 MB / 458.9 MB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.793e-05/0.7819, allocations: 8.031 kB / 458.9 MB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004934/0.7824, allocations: 147.9 kB / 459 MB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003168/0.7828, allocations: 75.06 kB / 459.1 MB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.7839, allocations: 350 kB / 459.4 MB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.784, allocations: 58 kB / 459.5 MB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002993/0.7843, allocations: 79.94 kB / 459.6 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004481/0.7888, allocations: 1.19 MB / 460.8 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.786e-05/0.7889, allocations: 0 / 460.8 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.7891, allocations: 32 kB / 460.8 MB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.7893, allocations: 69.97 kB / 460.9 MB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006468/0.7958, allocations: 1.722 MB / 462.6 MB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009681/0.8056, allocations: 2.979 MB / 465.6 MB, free: 7.605 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.8072, allocations: 427.8 kB / 466 MB, free: 7.176 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-05/0.8073, allocations: 12.25 kB / 466 MB, free: 7.164 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.8073, allocations: 38.84 kB / 466 MB, free: 7.117 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 3.065e-06/0.8073, allocations: 0 / 466 MB, free: 7.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001666/0.809, allocations: 499.7 kB / 466.5 MB, free: 6.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.8091, allocations: 55.41 kB / 466.6 MB, free: 6.559 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.8094, allocations: 181.6 kB / 466.8 MB, free: 6.371 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.8095, allocations: 29.7 kB / 466.8 MB, free: 6.336 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003586/0.8098, allocations: 452.6 kB / 467.2 MB, free: 5.887 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.81, allocations: 122.3 kB / 467.3 MB, free: 5.766 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.8101, allocations: 12 kB / 467.4 MB, free: 5.754 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.8102, allocations: 330.8 kB / 467.7 MB, free: 5.422 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/0.8108, allocations: 153 kB / 467.8 MB, free: 5.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006727/0.8114, allocations: 346.9 kB / 468.2 MB, free: 4.844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.8121, allocations: 216.8 kB / 468.4 MB, free: 4.633 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.8121, allocations: 4 kB / 468.4 MB, free: 4.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001652/0.8138, allocations: 0.544 MB / 468.9 MB, free: 4.078 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.8139, allocations: 8.625 kB / 468.9 MB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.8139, allocations: 8 kB / 468.9 MB, free: 4.062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.24e-05/0.8139, allocations: 8 kB / 468.9 MB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/0.8154, allocations: 211.7 kB / 469.2 MB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.8176, allocations: 2.993 MB / 472.1 MB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.8183, allocations: 59.52 kB / 472.2 MB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.828e-05/0.8184, allocations: 32.17 kB / 472.2 MB, free: 0.6484 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (roughness,geometry[5],geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006106/0.819, allocations: 281.4 kB / 472.5 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.8191, allocations: 23.72 kB / 472.5 MB, free: 348 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2739/1.093, allocations: 0.5683 MB / 473.1 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/1.093, allocations: 5.141 kB / 473.1 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.093, allocations: 0 / 473.1 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/1.093, allocations: 2.422 kB / 473.1 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/1.096, allocations: 1.195 MB / 474.3 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/1.096, allocations: 1.719 kB / 474.3 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.097, allocations: 177.4 kB / 474.5 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/1.097, allocations: 4.125 kB / 474.5 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/1.097, allocations: 21.77 kB / 474.5 MB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/1.099, allocations: 2.964 MB / 477.5 MB, free: 107.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.099, allocations: 2.5 kB / 477.5 MB, free: 107.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/1.1, allocations: 0.5889 MB / 478.1 MB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.985e-05/1.1, allocations: 105.2 kB / 478.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/1.1, allocations: 9.172 kB / 478.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/1.101, allocations: 23.56 kB / 478.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/1.101, allocations: 41.8 kB / 478.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.382e-05/1.101, allocations: 17.94 kB / 478.3 MB, free: 106.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001494/1.101, allocations: 135.3 kB / 478.4 MB, free: 106.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.101, allocations: 0 / 478.4 MB, free: 106.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001729/1.103, allocations: 380.2 kB / 478.8 MB, free: 106.8 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002963/1.106, allocations: 1.992 MB / 480.8 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00186/1.108, allocations: 461.6 kB / 481.2 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/1.108, allocations: 0 / 481.2 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/1.109, allocations: 238.5 kB / 481.4 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/1.109, allocations: 34.11 kB / 481.5 MB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007052/1.116, allocations: 6.977 MB / 488.4 MB, free: 99.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006355/1.117, allocations: 0.9951 MB / 489.4 MB, free: 99.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/1.117, allocations: 209 kB / 489.6 MB, free: 99.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.253e-06/1.117, allocations: 3.172 kB / 489.6 MB, free: 99.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.07/4.187, allocations: 23.93 MB / 0.5015 GB, free: 93.14 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat