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.Channel.dp_internalFlowOverall_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.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.503/2.503, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.61e-05, allocations: 8 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4163/0.4163, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.6319, allocations: 104.5 MB / 462.7 MB, free: 6.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005247/0.6325, allocations: 91.94 kB / 462.8 MB, free: 6.074 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.4832/1.116, allocations: 27.5 MB / 490.3 MB, free: 91.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.116, allocations: 4 kB / 490.3 MB, free: 91.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/1.116, allocations: 12 kB / 490.3 MB, free: 91.66 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.002942/1.119, allocations: 0.8983 MB / 491.2 MB, free: 90.72 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/1.119, allocations: 11.97 kB / 491.2 MB, free: 90.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002793/1.119, allocations: 79 kB / 491.3 MB, free: 90.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008994/1.12, allocations: 346.1 kB / 491.6 MB, free: 90.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/1.12, allocations: 24 kB / 491.6 MB, free: 90.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/1.12, allocations: 48 kB / 491.7 MB, free: 90.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003351/1.124, allocations: 1.218 MB / 492.9 MB, free: 88.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/1.126, allocations: 1.042 MB / 493.9 MB, free: 87.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/1.126, allocations: 0 / 493.9 MB, free: 87.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/1.126, allocations: 0 / 493.9 MB, free: 87.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/1.127, allocations: 73.97 kB / 494 MB, free: 87.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006121/1.133, allocations: 2.775 MB / 496.8 MB, free: 84.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/1.134, allocations: 387.6 kB / 497.2 MB, free: 84.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/1.134, allocations: 125.3 kB / 497.3 MB, free: 84.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.22e-05/1.134, allocations: 12.17 kB / 497.3 MB, free: 84.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/1.134, allocations: 42.8 kB / 497.3 MB, free: 84.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 3.367e-06/1.134, allocations: 0 / 497.3 MB, free: 84.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007694/1.135, allocations: 311.7 kB / 497.6 MB, free: 84.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/1.135, allocations: 55.41 kB / 497.7 MB, free: 84.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/1.135, allocations: 173.6 kB / 497.9 MB, free: 83.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/1.135, allocations: 25.7 kB / 497.9 MB, free: 83.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/1.135, allocations: 460.6 kB / 498.3 MB, free: 83.35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/1.136, allocations: 118.3 kB / 498.5 MB, free: 83.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/1.136, allocations: 0 / 498.5 MB, free: 83.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.009e-05/1.136, allocations: 330.8 kB / 498.8 MB, free: 82.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/1.136, allocations: 117.1 kB / 498.9 MB, free: 82.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/1.136, allocations: 309.3 kB / 499.2 MB, free: 82.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/1.137, allocations: 195.7 kB / 499.4 MB, free: 82.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/1.137, allocations: 0 / 499.4 MB, free: 82.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001014/1.138, allocations: 461 kB / 499.8 MB, free: 81.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/1.138, allocations: 8 kB / 499.8 MB, free: 81.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/1.138, allocations: 11.94 kB / 499.9 MB, free: 81.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.748e-05/1.138, allocations: 11.95 kB / 499.9 MB, free: 81.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/1.139, allocations: 204.2 kB / 0.4883 GB, free: 81.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/1.141, allocations: 3.008 MB / 0.4913 GB, free: 78.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/1.141, allocations: 47.52 kB / 0.4913 GB, free: 78.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.511e-05/1.141, allocations: 44.06 kB / 0.4914 GB, free: 78.3 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 () * 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.0001633/1.142, allocations: 124.8 kB / 0.4915 GB, free: 78.17 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006712/1.142, allocations: 313.6 kB / 0.4918 GB, free: 77.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/1.142, allocations: 15.81 kB / 0.4918 GB, free: 77.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/1.144, allocations: 0.5118 MB / 0.4923 GB, free: 77.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/1.144, allocations: 4 kB / 0.4923 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/1.144, allocations: 3.953 kB / 0.4923 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/1.144, allocations: 3.984 kB / 0.4923 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/1.146, allocations: 0.9577 MB / 0.4932 GB, free: 76.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/1.146, allocations: 7.953 kB / 0.4933 GB, free: 76.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/1.147, allocations: 163.8 kB / 0.4934 GB, free: 76.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/1.147, allocations: 4.25 kB / 0.4934 GB, free: 76.12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/1.147, allocations: 20 kB / 0.4934 GB, free: 76.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/1.148, allocations: 2.969 MB / 0.4963 GB, free: 73.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.149, allocations: 4.031 kB / 0.4963 GB, free: 73.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000782/1.149, allocations: 0.5442 MB / 0.4969 GB, free: 72.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.634e-05/1.149, allocations: 104.9 kB / 0.497 GB, free: 72.26 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/1.149, allocations: 0 / 0.497 GB, free: 72.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/1.15, allocations: 19.98 kB / 0.497 GB, free: 72.24 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/1.15, allocations: 35.95 kB / 0.497 GB, free: 72.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/1.15, allocations: 16 kB / 0.497 GB, free: 72.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001109/1.15, allocations: 131.2 kB / 0.4972 GB, free: 72.06 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.15, allocations: 0 / 0.4972 GB, free: 72.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001503/1.152, allocations: 362.6 kB / 0.4975 GB, free: 71.71 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 () * 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.002229/1.154, allocations: 1.923 MB / 0.4994 GB, free: 69.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/1.155, allocations: 389.1 kB / 0.4998 GB, free: 69.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.155, allocations: 0 / 0.4998 GB, free: 69.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007855/1.156, allocations: 203.7 kB / 0.5 GB, free: 69.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/1.156, allocations: 24.12 kB / 0.5 GB, free: 69.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/1.159, allocations: 1.102 MB / 0.5011 GB, free: 67.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/1.16, allocations: 0.9953 MB / 0.502 GB, free: 66.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/1.16, allocations: 215.3 kB / 0.5022 GB, free: 66.71 MB / 394.7 MB Notification: Performance of SimCode: time 9.11e-07/1.16, allocations: 0 / 0.5022 GB, free: 66.71 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.512/4.672, allocations: 24.18 MB / 0.5258 GB, free: 42.5 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.Channel.dp_internalFlowOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat