Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.HeatTransfer.Examples.ConductorInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conS1.T.1.|conS1.T.2.|conS1.T.3.|conS1.Q_flow.1.|conS1.Q_flow.2.|conS1.Q_flow.3.|conS1.Q_flow.4.|conS1.Q_flow.5.|conS1.Q_flow.6.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization") translateModel(Buildings.HeatTransfer.Examples.ConductorInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conS1.T.1.|conS1.T.2.|conS1.T.3.|conS1.Q_flow.1.|conS1.Q_flow.2.|conS1.Q_flow.3.|conS1.Q_flow.4.|conS1.Q_flow.5.|conS1.Q_flow.6.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.563/1.563, allocations: 249.3 MB / 261.8 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 180.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.2 MB / 0.572 GB, free: 10.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009159/0.0009159, allocations: 82.5 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.631e-05/3.633e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2493, allocations: 106.3 MB / 0.8918 GB, free: 6.703 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8185/1.068, allocations: 142 MB / 1.03 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/1.068, allocations: 77.41 kB / 1.03 GB, free: 8.809 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1285/1.197, allocations: 33.84 MB / 1.064 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.894e-06/1.197, allocations: 4 kB / 1.064 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001003/1.197, allocations: 12 kB / 1.064 GB, free: 11.29 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001723/1.199, allocations: 0.9894 MB / 1.065 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/1.199, allocations: 16.02 kB / 1.065 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/1.199, allocations: 106.7 kB / 1.065 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003754/1.203, allocations: 2.013 MB / 1.067 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/1.203, allocations: 41.72 kB / 1.067 GB, free: 8.602 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/1.203, allocations: 56.77 kB / 1.067 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008568/1.204, allocations: 0.5354 MB / 1.067 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/1.204, allocations: 4 kB / 1.067 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/1.204, allocations: 11 kB / 1.067 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/1.204, allocations: 11.98 kB / 1.067 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004813/1.204, allocations: 326.7 kB / 1.068 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003899/1.208, allocations: 3.139 MB / 1.071 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/1.21, allocations: 0.6443 MB / 1.071 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/1.21, allocations: 195.1 kB / 1.071 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/1.21, allocations: 4 kB / 1.071 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/1.21, allocations: 38 kB / 1.071 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=26): time 1.944e-06/1.21, allocations: 0 / 1.071 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of matching and sorting (n=26): time 0.0009272/1.211, allocations: 0.491 MB / 1.072 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/1.211, allocations: 51.41 kB / 1.072 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/1.213, allocations: 1.266 MB / 1.073 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/1.213, allocations: 36.89 kB / 1.073 GB, free: 2.941 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/1.213, allocations: 407.1 kB / 1.074 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/1.214, allocations: 110.9 kB / 1.074 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/1.214, allocations: 25.88 kB / 1.074 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.214, allocations: 339.5 kB / 1.074 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/1.214, allocations: 272.4 kB / 1.074 GB, free: 2.074 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005507/1.215, allocations: 0.5719 MB / 1.075 GB, free: 1.453 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/1.215, allocations: 380.1 kB / 1.075 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/1.215, allocations: 4 kB / 1.075 GB, free: 1.156 MB / 0.6823 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002159/1.217, allocations: 1.223 MB / 1.076 GB, free: 160 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/1.218, allocations: 8 kB / 1.077 GB, free: 152 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/1.218, allocations: 12 kB / 1.077 GB, free: 140 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/1.219, allocations: 447.1 kB / 1.077 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/1.219, allocations: 111.8 kB / 1.077 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006128/1.226, allocations: 4.844 MB / 1.082 GB, free: 11.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00235/1.228, allocations: 433.1 kB / 1.082 GB, free: 11.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/1.228, allocations: 31.75 kB / 1.082 GB, free: 11.36 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001534/1.228, allocations: 149.2 kB / 1.082 GB, free: 11.22 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/1.228, allocations: 86.88 kB / 1.082 GB, free: 11.14 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/1.229, allocations: 111.6 kB / 1.083 GB, free: 11.07 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/1.229, allocations: 4 kB / 1.083 GB, free: 11.06 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.229, allocations: 0 / 1.083 GB, free: 11.06 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/1.229, allocations: 3.953 kB / 1.083 GB, free: 11.06 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/1.23, allocations: 1.124 MB / 1.084 GB, free: 10.19 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/1.23, allocations: 0 / 1.084 GB, free: 10.19 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/1.23, allocations: 91.91 kB / 1.084 GB, free: 10.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/1.231, allocations: 43.39 kB / 1.084 GB, free: 10.06 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/1.231, allocations: 18.98 kB / 1.084 GB, free: 10.05 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/1.232, allocations: 1.417 MB / 1.085 GB, free: 8.551 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.232, allocations: 0 / 1.085 GB, free: 8.551 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/1.233, allocations: 0.8038 MB / 1.086 GB, free: 7.727 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/1.234, allocations: 0.9529 MB / 1.087 GB, free: 6.629 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/1.234, allocations: 19.98 kB / 1.087 GB, free: 6.609 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/1.235, allocations: 199.6 kB / 1.087 GB, free: 6.414 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.499e-05/1.235, allocations: 19.92 kB / 1.087 GB, free: 6.395 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/1.235, allocations: 8 kB / 1.087 GB, free: 6.387 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001659/1.237, allocations: 0.9517 MB / 1.088 GB, free: 5.422 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.41e-07/1.237, allocations: 0 / 1.088 GB, free: 5.422 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002227/1.239, allocations: 0.5895 MB / 1.089 GB, free: 4.832 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (conS1.lay[1].T[1],conS1.lay[1].T[2],conS1.lay[1].T[3],conS1.lay[1].T[4],conS1.lay[1].T[5],conS1.lay[2].T[1],conS1.lay[2].T[2],conS1.lay[2].T[3],conS1.lay[2].T[4],conS1.lay[2].T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006043/1.24, allocations: 234.7 kB / 1.089 GB, free: 4.598 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002238/1.242, allocations: 0.8972 MB / 1.09 GB, free: 3.688 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/1.242, allocations: 0 / 1.09 GB, free: 3.688 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004826/1.243, allocations: 318.8 kB / 1.09 GB, free: 3.363 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/1.244, allocations: 269.8 kB / 1.09 GB, free: 3.102 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/1.248, allocations: 1.986 MB / 1.092 GB, free: 1.082 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000912/1.248, allocations: 1.172 MB / 1.093 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0006656/1.249, allocations: 254.8 kB / 1.094 GB, free: 15.63 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/1.249, allocations: 63.36 kB / 1.094 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of SimCode: time 8.92e-07/1.249, allocations: 0 / 1.094 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of Templates: time 0.02912/1.278, allocations: 16.66 MB / 1.11 GB, free: 15.04 MB / 0.7292 GB make -j1 -f Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_HeatTransfer_Examples_ConductorInitialization -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization.o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_HeatTransfer_Examples_ConductorInitialization -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_HeatTransfer_Examples_ConductorInitialization -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.o Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:141:22: error: expected ';' at end of declaration modelica_real ths->_D_24tmpVar7; ^ ; Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:142:19: error: redefinition of 'ths' modelica_real ths->_D_24tmpVar6; ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:141:19: note: previous definition is here modelica_real ths->_D_24tmpVar7; ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:142:22: error: expected ';' at end of declaration modelica_real ths->_D_24tmpVar6; ^ ; Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:148:17: error: member reference type 'modelica_real' (aka 'double') is not a pointer tmp8 = ths->_nLay /* Range stop-value */; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:151:10: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar7 = 0.0; /* defaultValue */ ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:159:14: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:159:93: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ ./Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.h:53:164: note: expanded from macro 'Buildings_HeatTransfer_Data_BaseClasses_Material_array_get' #define Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(src,ndims,...) (*(Buildings_HeatTransfer_Data_BaseClasses_Material*)(generic_array_get(&src, sizeof(Buildings_HeatTransfer_Data_BaseClasses_Material), __VA_ARGS__))) ^~~ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:159:112: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ ./Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.h:53:227: note: expanded from macro 'Buildings_HeatTransfer_Data_BaseClasses_Material_array_get' #define Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(src,ndims,...) (*(Buildings_HeatTransfer_Data_BaseClasses_Material*)(generic_array_get(&src, sizeof(Buildings_HeatTransfer_Data_BaseClasses_Material), __VA_ARGS__))) ^~~~~~~~~~~ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:160:14: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar7 = ths->_D_24tmpVar7 + ths->_D_24tmpVar6; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:160:34: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar7 = ths->_D_24tmpVar7 + ths->_D_24tmpVar6; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:160:54: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->_D_24tmpVar7 = ths->_D_24tmpVar7 + ths->_D_24tmpVar6; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:167:17: error: member reference type 'modelica_real' (aka 'double') is not a pointer tmp5 = ths->_D_24tmpVar7; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:173:22: error: expected ';' at end of declaration integer_array ths->_D_24tmpVar9; ^ ; Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:174:22: error: redefinition of 'ths' with a different type: 'modelica_integer' (aka 'long') vs 'integer_array' (aka 'struct base_array_s') modelica_integer ths->_D_24tmpVar8; ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:173:19: note: previous definition is here integer_array ths->_D_24tmpVar9; ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:174:25: error: expected ';' at end of declaration modelica_integer ths->_D_24tmpVar8; ^ ; Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:182:16: error: member reference type 'integer_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? tmp13 = ths->_nLay /* Range stop-value */; ~~~^~ . Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:182:18: error: no member named '_nLay' in 'struct base_array_s' tmp13 = ths->_nLay /* Range stop-value */; ~~~ ^ Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:189:39: error: member reference type 'integer_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? simple_alloc_1d_integer_array(&ths->_D_24tmpVar9,tmp14); ~~~^~ . Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:189:41: error: no member named '_D_24tmpVar9' in 'struct base_array_s' simple_alloc_1d_integer_array(&ths->_D_24tmpVar9,tmp14); ~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: Buildings_maint.7.0.x_Buildings.HeatTransfer.Examples.ConductorInitialization_records.o] Error 1