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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.202/2.202, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004336, allocations: 8 kB / 314.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3969, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.5715, allocations: 101.2 MB / 470.5 MB, free: 5.293 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003788/0.572, allocations: 107.9 kB / 470.7 MB, free: 5.188 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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/OpenModelica/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.4469/1.019, allocations: 38.18 MB / 0.4969 GB, free: 76.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.019, allocations: 3.938 kB / 0.4969 GB, free: 76.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.592e-05/1.019, allocations: 16 kB / 0.4969 GB, free: 76.49 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.002563/1.022, allocations: 1.289 MB / 0.4982 GB, free: 75.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/1.022, allocations: 8.031 kB / 0.4982 GB, free: 75.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002796/1.022, allocations: 168.9 kB / 0.4984 GB, free: 74.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/1.022, allocations: 126.4 kB / 0.4985 GB, free: 74.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008481/1.023, allocations: 494.1 kB / 0.4989 GB, free: 74.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.842e-05/1.023, allocations: 70 kB / 0.499 GB, free: 74.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/1.023, allocations: 96 kB / 0.4991 GB, free: 74.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002887/1.026, allocations: 1.392 MB / 0.5005 GB, free: 72.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/1.026, allocations: 0 / 0.5005 GB, free: 72.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/1.026, allocations: 36 kB / 0.5005 GB, free: 72.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.551e-05/1.026, allocations: 66.08 kB / 0.5006 GB, free: 72.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003273/1.03, allocations: 1.413 MB / 0.5019 GB, free: 71.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005688/1.035, allocations: 3.09 MB / 0.505 GB, free: 68.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00197/1.037, allocations: 0.7382 MB / 0.5057 GB, free: 67.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.276e-05/1.037, allocations: 20.2 kB / 0.5057 GB, free: 67.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/1.038, allocations: 34.73 kB / 0.5057 GB, free: 67.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 3.236e-06/1.038, allocations: 3.938 kB / 0.5057 GB, free: 67.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.003644/1.041, allocations: 1.018 MB / 0.5067 GB, free: 66.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/1.041, allocations: 191.9 kB / 0.5069 GB, free: 65.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001916/1.043, allocations: 1.187 MB / 0.5081 GB, free: 64.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/1.043, allocations: 33.7 kB / 0.5081 GB, free: 64.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/1.044, allocations: 0.4939 MB / 0.5086 GB, free: 64.17 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/1.044, allocations: 122.4 kB / 0.5087 GB, free: 64.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/1.044, allocations: 8 kB / 0.5087 GB, free: 64.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.609e-05/1.044, allocations: 338.8 kB / 0.509 GB, free: 63.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/1.045, allocations: 325 kB / 0.5093 GB, free: 63.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/1.046, allocations: 0.6442 MB / 0.51 GB, free: 62.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/1.048, allocations: 411.5 kB / 0.5104 GB, free: 62.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/1.048, allocations: 4 kB / 0.5104 GB, free: 62.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003044/1.051, allocations: 0.9862 MB / 0.5113 GB, free: 61.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/1.051, allocations: 10.03 kB / 0.5113 GB, free: 61.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/1.051, allocations: 12 kB / 0.5114 GB, free: 61.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.597e-05/1.051, allocations: 16 kB / 0.5114 GB, free: 61.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/1.052, allocations: 183.9 kB / 0.5115 GB, free: 60.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/1.052, allocations: 15.94 kB / 0.5116 GB, free: 60.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/1.053, allocations: 170.4 kB / 0.5117 GB, free: 60.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.721e-05/1.053, allocations: 51.97 kB / 0.5118 GB, free: 60.73 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 () * Number of clocked 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.0006887/1.054, allocations: 367.5 kB / 0.5121 GB, free: 60.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002856/1.054, allocations: 126.5 kB / 0.5122 GB, free: 60.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/1.057, allocations: 0.7781 MB / 0.513 GB, free: 59.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/1.057, allocations: 4 kB / 0.513 GB, free: 59.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.057, allocations: 4 kB / 0.513 GB, free: 59.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/1.057, allocations: 3.984 kB / 0.513 GB, free: 59.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/1.058, allocations: 0.7216 MB / 0.5137 GB, free: 58.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.058, allocations: 0 / 0.5137 GB, free: 58.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008297/1.059, allocations: 111.9 kB / 0.5138 GB, free: 58.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/1.059, allocations: 4 kB / 0.5138 GB, free: 58.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/1.059, allocations: 19.98 kB / 0.5138 GB, free: 58.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/1.059, allocations: 4 kB / 0.5139 GB, free: 58.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.059, allocations: 11.94 kB / 0.5139 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/1.062, allocations: 1.273 MB / 0.5151 GB, free: 57.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003746/1.062, allocations: 199.5 kB / 0.5153 GB, free: 56.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/1.063, allocations: 4 kB / 0.5153 GB, free: 56.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/1.064, allocations: 55.95 kB / 0.5154 GB, free: 56.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/1.064, allocations: 39.89 kB / 0.5154 GB, free: 56.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.344e-05/1.064, allocations: 19.98 kB / 0.5154 GB, free: 56.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001573/1.065, allocations: 0.9155 MB / 0.5163 GB, free: 55.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.065, allocations: 4 kB / 0.5163 GB, free: 55.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001701/1.067, allocations: 315.8 kB / 0.5166 GB, free: 55.62 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 () * Number of clocked 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.003532/1.071, allocations: 2.352 MB / 0.5189 GB, free: 53.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002557/1.073, allocations: 0.7401 MB / 0.5196 GB, free: 52.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.073, allocations: 0 / 0.5196 GB, free: 52.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/1.075, allocations: 335.8 kB / 0.52 GB, free: 52.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/1.076, allocations: 244.7 kB / 0.5202 GB, free: 51.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/1.094, allocations: 15.21 MB / 0.535 GB, free: 36.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007435/1.094, allocations: 1.168 MB / 0.5362 GB, free: 34.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008893/1.095, allocations: 411.3 kB / 0.5366 GB, free: 34.56 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/1.095, allocations: 4 kB / 0.5366 GB, free: 34.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.762/3.857, allocations: 21.86 MB / 0.5579 GB, free: 12.73 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