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.407/2.407, allocations: 235 MB / 248 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.339e-05/3.349e-05, allocations: 4 kB / 309.8 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4596/0.4596, allocations: 54.85 MB / 364.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1893/0.6489, allocations: 101.1 MB / 465.7 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003901/0.6494, allocations: 97.05 kB / 465.8 MB, free: 11.25 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.1863/0.8358, allocations: 38.24 MB / 0.4923 GB, free: 4.578 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.8358, allocations: 0 / 0.4923 GB, free: 4.578 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.657e-05/0.8359, allocations: 20 kB / 0.4923 GB, free: 4.559 MB / 426.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.002862/0.8387, allocations: 1.184 MB / 0.4934 GB, free: 3.324 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.8388, allocations: 8.031 kB / 0.4934 GB, free: 3.316 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003258/0.8392, allocations: 164.9 kB / 0.4936 GB, free: 3.145 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.8394, allocations: 126.4 kB / 0.4937 GB, free: 3.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.8406, allocations: 494.2 kB / 0.4942 GB, free: 2.492 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-05/0.8407, allocations: 74 kB / 0.4943 GB, free: 2.422 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.8409, allocations: 95.95 kB / 0.4943 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003017/0.8439, allocations: 1.298 MB / 0.4956 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.844, allocations: 0 / 0.4956 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.8441, allocations: 43.98 kB / 0.4957 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.8442, allocations: 62.09 kB / 0.4957 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003056/0.8473, allocations: 1.25 MB / 0.4969 GB, free: 15.63 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008054/0.8554, allocations: 3.082 MB / 0.4999 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.8574, allocations: 0.6708 MB / 0.5006 GB, free: 11.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000698/0.8581, allocations: 241.4 kB / 0.5008 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-05/0.8582, allocations: 16.22 kB / 0.5008 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.523e-05/0.8583, allocations: 38.8 kB / 0.5009 GB, free: 11.42 MB / 442.7 MB Notification: Performance of pre-optimization done (n=32): time 3.707e-06/0.8583, allocations: 3.938 kB / 0.5009 GB, free: 11.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.002083/0.8604, allocations: 0.5841 MB / 0.5015 GB, free: 10.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.8606, allocations: 187.9 kB / 0.5016 GB, free: 10.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/0.8633, allocations: 1.173 MB / 0.5028 GB, free: 9.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.8634, allocations: 29.7 kB / 0.5028 GB, free: 9.375 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005729/0.864, allocations: 0.5094 MB / 0.5033 GB, free: 8.859 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.8642, allocations: 110.5 kB / 0.5034 GB, free: 8.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.8643, allocations: 8 kB / 0.5034 GB, free: 8.742 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.8645, allocations: 338.8 kB / 0.5037 GB, free: 8.402 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007876/0.8653, allocations: 245.4 kB / 0.504 GB, free: 8.164 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.8664, allocations: 0.5518 MB / 0.5045 GB, free: 7.449 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.8674, allocations: 335.5 kB / 0.5048 GB, free: 7.121 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.8675, allocations: 8 kB / 0.5048 GB, free: 7.113 MB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002495/0.87, allocations: 0.8253 MB / 0.5057 GB, free: 6.281 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.8701, allocations: 8 kB / 0.5057 GB, free: 6.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.8701, allocations: 12 kB / 0.5057 GB, free: 6.262 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.211e-05/0.8702, allocations: 16 kB / 0.5057 GB, free: 6.246 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.8715, allocations: 171.9 kB / 0.5058 GB, free: 6.078 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.884e-05/0.8716, allocations: 27.88 kB / 0.5059 GB, free: 6.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.8731, allocations: 162.5 kB / 0.506 GB, free: 5.891 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.8733, allocations: 47.98 kB / 0.5061 GB, free: 5.844 MB / 442.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.0003069/0.8736, allocations: 163.4 kB / 0.5062 GB, free: 5.676 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/0.874, allocations: 122.4 kB / 0.5063 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00248/0.8765, allocations: 0.7427 MB / 0.5071 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.8765, allocations: 4 kB / 0.5071 GB, free: 4.793 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.8765, allocations: 4 kB / 0.5071 GB, free: 4.789 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.8766, allocations: 7.938 kB / 0.5071 GB, free: 4.781 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.8787, allocations: 0.714 MB / 0.5078 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.8788, allocations: 4 kB / 0.5078 GB, free: 4.008 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.8798, allocations: 119.8 kB / 0.5079 GB, free: 3.891 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.8798, allocations: 0 / 0.5079 GB, free: 3.891 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.48e-05/0.8799, allocations: 16 kB / 0.5079 GB, free: 3.875 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.551e-05/0.8799, allocations: 15.92 kB / 0.5079 GB, free: 3.859 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8799, allocations: 0 / 0.5079 GB, free: 3.859 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.882, allocations: 1.118 MB / 0.509 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005522/0.8827, allocations: 195.5 kB / 0.5092 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002543/0.8829, allocations: 11.98 kB / 0.5092 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.8841, allocations: 51.95 kB / 0.5093 GB, free: 2.406 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.8843, allocations: 35.95 kB / 0.5093 GB, free: 2.371 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.001e-05/0.8844, allocations: 19.98 kB / 0.5093 GB, free: 2.352 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002048/0.8865, allocations: 0.9057 MB / 0.5102 GB, free: 1.441 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.272e-06/0.8865, allocations: 0 / 0.5102 GB, free: 1.441 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001988/0.8885, allocations: 319.8 kB / 0.5105 GB, free: 1.129 MB / 442.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.003476/0.8921, allocations: 2.207 MB / 0.5127 GB, free: 14.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.8941, allocations: 0.5797 MB / 0.5132 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.8942, allocations: 0 / 0.5132 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008455/0.895, allocations: 247.7 kB / 0.5135 GB, free: 14.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/0.8973, allocations: 233.5 kB / 0.5137 GB, free: 13.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006281/0.9036, allocations: 1.794 MB / 0.5154 GB, free: 11.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.9049, allocations: 1.176 MB / 0.5166 GB, free: 10.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.9061, allocations: 411.3 kB / 0.517 GB, free: 10.35 MB / 458.7 MB Notification: Performance of SimCode: time 1.253e-06/0.9061, allocations: 4 kB / 0.517 GB, free: 10.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.288/4.194, allocations: 21.33 MB / 0.5378 GB, free: 137 MB / 458.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