Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.532/2.532, allocations: 235.1 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1946/2.727, allocations: 57.22 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/3.003, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.45/3.454, allocations: 100.3 MB / 454.4 MB, free: 34.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004142/3.454, allocations: 95.66 kB / 454.5 MB, free: 34.59 MB / 378.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/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/hudson/slave/workspace/OpenModelica_TEST_LIBS/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/hudson/slave/workspace/OpenModelica_TEST_LIBS/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: 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.2091/3.663, allocations: 38.8 MB / 493.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/3.663, allocations: 11.66 kB / 493.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/3.663, allocations: 128.8 kB / 493.5 MB, free: 26.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/3.665, allocations: 496.5 kB / 494 MB, free: 25.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/3.665, allocations: 35.28 kB / 494 MB, free: 25.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/3.665, allocations: 54.81 kB / 494 MB, free: 25.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002592/3.667, allocations: 1.188 MB / 495.2 MB, free: 25.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/3.67, allocations: 1.183 MB / 496.4 MB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/3.67, allocations: 7.984 kB / 496.4 MB, free: 25.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/3.67, allocations: 0 / 496.4 MB, free: 25.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.094e-05/3.67, allocations: 68.08 kB / 496.5 MB, free: 25.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006705/3.677, allocations: 2.697 MB / 499.2 MB, free: 23.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/3.679, allocations: 0.6839 MB / 499.9 MB, free: 23.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006504/3.68, allocations: 239.4 kB / 0.4884 GB, free: 23.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/3.68, allocations: 19.97 kB / 0.4884 GB, free: 23.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/3.68, allocations: 42.62 kB / 0.4884 GB, free: 23.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 4.839e-06/3.68, allocations: 0 / 0.4884 GB, free: 23.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001988/3.682, allocations: 0.5492 MB / 0.489 GB, free: 23.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/3.682, allocations: 187.8 kB / 0.4892 GB, free: 22.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/3.683, allocations: 0.5645 MB / 0.4897 GB, free: 22.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.691e-05/3.683, allocations: 29.55 kB / 0.4897 GB, free: 22.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/3.683, allocations: 488.7 kB / 0.4902 GB, free: 22.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/3.683, allocations: 116 kB / 0.4903 GB, free: 22.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/3.684, allocations: 0 / 0.4903 GB, free: 22.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/3.684, allocations: 382.8 kB / 0.4907 GB, free: 21.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007683/3.684, allocations: 252.2 kB / 0.4909 GB, free: 21.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/3.686, allocations: 0.5645 MB / 0.4915 GB, free: 21.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/3.687, allocations: 344 kB / 0.4918 GB, free: 21.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/3.687, allocations: 2.5 kB / 0.4918 GB, free: 21.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002656/3.689, allocations: 0.8218 MB / 0.4926 GB, free: 20.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/3.689, allocations: 6.031 kB / 0.4926 GB, free: 20.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/3.689, allocations: 11.56 kB / 0.4926 GB, free: 20.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.782e-05/3.689, allocations: 17.09 kB / 0.4926 GB, free: 20.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/3.691, allocations: 187.2 kB / 0.4928 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/3.691, allocations: 21.75 kB / 0.4928 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/3.692, allocations: 89.08 kB / 0.4929 GB, free: 20.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/3.693, allocations: 52.2 kB / 0.493 GB, free: 20.79 MB / 378.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.0002558/3.693, allocations: 141.1 kB / 0.4931 GB, free: 20.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/3.693, allocations: 74.59 kB / 0.4932 GB, free: 20.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/3.696, allocations: 0.8224 MB / 0.494 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/3.696, allocations: 5.031 kB / 0.494 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/3.696, allocations: 1.781 kB / 0.494 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/3.696, allocations: 5.719 kB / 0.494 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/3.699, allocations: 0.6574 MB / 0.4946 GB, free: 20.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/3.699, allocations: 1.531 kB / 0.4946 GB, free: 20.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/3.701, allocations: 118.7 kB / 0.4947 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-05/3.701, allocations: 6.688 kB / 0.4947 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001695/3.701, allocations: 18.14 kB / 0.4948 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.007e-05/3.701, allocations: 3.219 kB / 0.4948 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/3.701, allocations: 5.5 kB / 0.4948 GB, free: 19.96 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003476/3.704, allocations: 1.076 MB / 0.4958 GB, free: 19.23 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00368/3.708, allocations: 1.459 MB / 0.4973 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004257/3.709, allocations: 142.7 kB / 0.4974 GB, free: 17.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003797/3.709, allocations: 9.453 kB / 0.4974 GB, free: 17.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/3.711, allocations: 53.23 kB / 0.4974 GB, free: 17.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003429/3.711, allocations: 33.36 kB / 0.4975 GB, free: 17.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/3.712, allocations: 19.28 kB / 0.4975 GB, free: 17.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001262/3.713, allocations: 427.6 kB / 0.4979 GB, free: 17.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004997/3.718, allocations: 356.6 kB / 0.4982 GB, free: 17.7 MB / 378.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.001134/3.719, allocations: 316.8 kB / 0.4985 GB, free: 17.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002123/3.721, allocations: 0.5932 MB / 0.4991 GB, free: 17.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/3.721, allocations: 0 / 0.4991 GB, free: 17.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000925/3.722, allocations: 264.1 kB / 0.4994 GB, free: 17.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/3.724, allocations: 101.4 kB / 0.4995 GB, free: 17.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/3.729, allocations: 1.356 MB / 0.5008 GB, free: 16.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/3.731, allocations: 1.27 MB / 0.502 GB, free: 15.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.463e-06/3.731, allocations: 0 / 0.502 GB, free: 15.79 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat