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.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.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.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.008e-05/2.018e-05, allocations: 0 / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3506, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1819/0.5326, allocations: 100.4 MB / 458.6 MB, free: 10.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00037/0.533, allocations: 87.94 kB / 458.7 MB, free: 10.28 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:4477:11-4491:77:writable] Error: Got type mismatch error, but matching types Real. This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:4453:11-4467:78:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:4502:11-4516:76:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.4983/1.031, allocations: 37.8 MB / 496.5 MB, free: 85.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.031, allocations: 0 / 496.5 MB, free: 85.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.276e-05/1.031, allocations: 16 kB / 496.5 MB, free: 85.37 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: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.00362/1.035, allocations: 1.188 MB / 497.7 MB, free: 84.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/1.035, allocations: 8.031 kB / 497.7 MB, free: 84.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004335/1.036, allocations: 130.4 kB / 497.8 MB, free: 84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/1.037, allocations: 489.7 kB / 498.3 MB, free: 83.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.365e-05/1.037, allocations: 36 kB / 498.3 MB, free: 83.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/1.037, allocations: 56 kB / 498.4 MB, free: 83.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003222/1.041, allocations: 1.16 MB / 499.5 MB, free: 82.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003561/1.044, allocations: 1.157 MB / 0.4889 GB, free: 81.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.438e-05/1.044, allocations: 4 kB / 0.4889 GB, free: 81.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/1.045, allocations: 4 kB / 0.489 GB, free: 81.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/1.045, allocations: 58.09 kB / 0.489 GB, free: 80.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008331/1.053, allocations: 2.675 MB / 0.4916 GB, free: 78.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/1.055, allocations: 0.6288 MB / 0.4922 GB, free: 77.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007636/1.056, allocations: 233.4 kB / 0.4925 GB, free: 77.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/1.056, allocations: 12.12 kB / 0.4925 GB, free: 77.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/1.056, allocations: 42.8 kB / 0.4925 GB, free: 77.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 5.711e-06/1.056, allocations: 0 / 0.4925 GB, free: 77.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.002269/1.059, allocations: 0.5106 MB / 0.493 GB, free: 76.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/1.059, allocations: 191.9 kB / 0.4932 GB, free: 76.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/1.06, allocations: 0.5583 MB / 0.4937 GB, free: 75.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.113e-05/1.06, allocations: 25.7 kB / 0.4938 GB, free: 75.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003882/1.06, allocations: 0.5977 MB / 0.4943 GB, free: 75.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/1.061, allocations: 110.4 kB / 0.4944 GB, free: 75.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/1.061, allocations: 0 / 0.4944 GB, free: 75.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.978e-05/1.061, allocations: 342.8 kB / 0.4948 GB, free: 74.87 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005666/1.061, allocations: 229.4 kB / 0.495 GB, free: 74.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007127/1.062, allocations: 0.5503 MB / 0.4955 GB, free: 73.94 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/1.063, allocations: 319.5 kB / 0.4958 GB, free: 73.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/1.063, allocations: 4 kB / 0.4958 GB, free: 73.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001921/1.065, allocations: 0.7476 MB / 0.4966 GB, free: 72.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/1.065, allocations: 11.94 kB / 0.4966 GB, free: 72.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/1.065, allocations: 12 kB / 0.4966 GB, free: 72.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.955e-05/1.065, allocations: 16 kB / 0.4966 GB, free: 72.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.066, allocations: 175.7 kB / 0.4968 GB, free: 72.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/1.066, allocations: 21.84 kB / 0.4968 GB, free: 72.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/1.067, allocations: 83.55 kB / 0.4969 GB, free: 72.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/1.067, allocations: 43.98 kB / 0.4969 GB, free: 72.51 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 26 (IN_var_3[6].target,IN_var_3[5].target,IN_var_3[4].target,IN_var_3[3].target,IN_var_3[2].target,IN_var_3[1].target,IN_con_3[6].target,IN_con_3[5].target,IN_con_3[4].target,IN_con_3[3].target,IN_con_3[2].target,IN_con_3[1].target,IN_var_2.target,IN_con_2.target,IN_var_1[6].target,IN_var_1[5].target,IN_var_1[4].target,IN_var_1[3].target,IN_var_1[2].target,IN_var_1[1].target,IN_con_1[6].target,IN_con_1[5].target,IN_con_1[4].target,IN_con_1[3].target,IN_con_1[2].target,IN_con_1[1].target) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002332/1.067, allocations: 154.9 kB / 0.4971 GB, free: 72.36 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001462/1.069, allocations: 0.5203 MB / 0.4976 GB, free: 71.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/1.069, allocations: 71.06 kB / 0.4976 GB, free: 71.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/1.071, allocations: 0.6835 MB / 0.4983 GB, free: 71.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/1.071, allocations: 4 kB / 0.4983 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/1.071, allocations: 0 / 0.4983 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/1.071, allocations: 11.95 kB / 0.4983 GB, free: 71.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/1.073, allocations: 0.638 MB / 0.4989 GB, free: 70.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/1.073, allocations: 4 kB / 0.499 GB, free: 70.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008958/1.074, allocations: 115.8 kB / 0.4991 GB, free: 70.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/1.074, allocations: 4 kB / 0.4991 GB, free: 70.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/1.074, allocations: 15.98 kB / 0.4991 GB, free: 70.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/1.074, allocations: 4 kB / 0.4991 GB, free: 70.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/1.074, allocations: 0 / 0.4991 GB, free: 70.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/1.075, allocations: 1.043 MB / 0.5001 GB, free: 69.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/1.076, allocations: 144.1 kB / 0.5002 GB, free: 68.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/1.076, allocations: 4 kB / 0.5002 GB, free: 68.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009554/1.077, allocations: 47.95 kB / 0.5003 GB, free: 68.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/1.077, allocations: 43.94 kB / 0.5003 GB, free: 68.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.579e-05/1.077, allocations: 19.98 kB / 0.5004 GB, free: 68.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000594/1.078, allocations: 415.1 kB / 0.5007 GB, free: 68.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.078, allocations: 4 kB / 0.5008 GB, free: 68.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001804/1.079, allocations: 350.8 kB / 0.5011 GB, free: 68.12 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * 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): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002466/1.082, allocations: 2.134 MB / 0.5032 GB, free: 65.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/1.083, allocations: 0.5406 MB / 0.5037 GB, free: 65.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.083, allocations: 4.625 kB / 0.5037 GB, free: 65.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006308/1.084, allocations: 244.6 kB / 0.5039 GB, free: 65.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/1.085, allocations: 107.5 kB / 0.504 GB, free: 65.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004958/1.09, allocations: 1.625 MB / 0.5056 GB, free: 63.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008252/1.091, allocations: 1.174 MB / 0.5068 GB, free: 62.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008987/1.092, allocations: 384.8 kB / 0.5071 GB, free: 61.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/1.092, allocations: 3.938 kB / 0.5071 GB, free: 61.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.949/4.041, allocations: 17.64 MB / 0.5244 GB, free: 44.13 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat