Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.HeatTransfer.Examples.ConductorInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 405.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 177.1 kB / 498.1 MB, free: 5.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.917/1.917, allocations: 223.2 MB / 0.7949 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 96.31 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005105/0.0005104, allocations: 9.531 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3513, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2219/0.5732, allocations: 159.6 MB / 1.379 GB, free: 2.465 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5735, allocations: 79.95 kB / 1.379 GB, free: 2.387 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1278/0.7014, allocations: 34.2 MB / 1.412 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.975e-06/0.7015, allocations: 0 / 1.412 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001823/0.7017, allocations: 16 kB / 1.412 GB, free: 15.98 MB / 0.9167 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.005908/0.7076, allocations: 1.601 MB / 1.414 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.7076, allocations: 8.031 kB / 1.414 GB, free: 14.31 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007771/0.7084, allocations: 110.7 kB / 1.414 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0055/0.714, allocations: 2.081 MB / 1.416 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.714, allocations: 36.66 kB / 1.416 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.7142, allocations: 51.95 kB / 1.416 GB, free: 11.98 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.7153, allocations: 0.5432 MB / 1.417 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.7153, allocations: 0 / 1.417 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/0.7154, allocations: 12 kB / 1.417 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.7154, allocations: 8 kB / 1.417 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006205/0.716, allocations: 345.8 kB / 1.417 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004959/0.721, allocations: 3.142 MB / 1.42 GB, free: 7.754 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.7229, allocations: 0.6626 MB / 1.421 GB, free: 7.078 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.7229, allocations: 4 kB / 1.421 GB, free: 7.074 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.7229, allocations: 42.55 kB / 1.421 GB, free: 7.023 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=26): time 2.705e-06/0.723, allocations: 0 / 1.421 GB, free: 7.023 MB / 0.9167 GB Notification: Performance of matching and sorting (n=26): time 0.001651/0.7246, allocations: 0.7531 MB / 1.421 GB, free: 6.242 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.7247, allocations: 59.34 kB / 1.421 GB, free: 6.172 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/0.7271, allocations: 1.275 MB / 1.423 GB, free: 4.879 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.917e-05/0.7272, allocations: 37.7 kB / 1.423 GB, free: 4.836 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004628/0.7277, allocations: 416.7 kB / 1.423 GB, free: 4.422 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.728, allocations: 106.5 kB / 1.423 GB, free: 4.316 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.728, allocations: 16 kB / 1.423 GB, free: 4.301 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.7282, allocations: 337.9 kB / 1.424 GB, free: 3.965 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.7287, allocations: 289.1 kB / 1.424 GB, free: 3.684 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007055/0.7294, allocations: 0.5824 MB / 1.424 GB, free: 2.957 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006047/0.73, allocations: 383.5 kB / 1.425 GB, free: 2.582 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.73, allocations: 4 kB / 1.425 GB, free: 2.578 MB / 0.9167 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002363/0.7324, allocations: 1.247 MB / 1.426 GB, free: 1.32 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.7325, allocations: 11.94 kB / 1.426 GB, free: 1.309 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/0.7325, allocations: 15.98 kB / 1.426 GB, free: 1.293 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.7339, allocations: 444.3 kB / 1.426 GB, free: 0.8594 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.7342, allocations: 107.8 kB / 1.427 GB, free: 0.7539 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.718/1.452, allocations: 4.993 MB / 1.431 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.455, allocations: 448.8 kB / 1.432 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/1.455, allocations: 31.98 kB / 1.432 GB, free: 185.1 MB / 0.9167 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 () * Number of clocked 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.0009459/1.456, allocations: 427.5 kB / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/1.456, allocations: 88.78 kB / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/1.456, allocations: 105.8 kB / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/1.456, allocations: 6.344 kB / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/1.456, allocations: 0 / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.456, allocations: 1.406 kB / 1.432 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/1.459, allocations: 1.124 MB / 1.434 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/1.459, allocations: 0.6094 kB / 1.434 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/1.459, allocations: 93.7 kB / 1.434 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/1.459, allocations: 47.52 kB / 1.434 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/1.46, allocations: 19.48 kB / 1.434 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/1.461, allocations: 1.422 MB / 1.435 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.461, allocations: 4.938 kB / 1.435 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/1.462, allocations: 0.8204 MB / 1.436 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/1.463, allocations: 0.9501 MB / 1.437 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/1.463, allocations: 15.36 kB / 1.437 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/1.465, allocations: 206.8 kB / 1.437 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/1.465, allocations: 26.31 kB / 1.437 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/1.465, allocations: 5.844 kB / 1.437 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001844/1.467, allocations: 0.9686 MB / 1.438 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.41e-07/1.467, allocations: 3.062 kB / 1.438 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002197/1.469, allocations: 0.5794 MB / 1.439 GB, free: 182.4 MB / 0.9167 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 () * Number of clocked 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.0004641/1.469, allocations: 216.1 kB / 1.439 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00209/1.471, allocations: 0.9254 MB / 1.44 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.471, allocations: 0 / 1.44 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004855/1.472, allocations: 325.9 kB / 1.44 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/1.473, allocations: 268 kB / 1.44 GB, free: 182 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/1.477, allocations: 2.654 MB / 1.443 GB, free: 181 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008894/1.478, allocations: 1.169 MB / 1.444 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0007831/1.479, allocations: 257.9 kB / 1.444 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/1.479, allocations: 54 kB / 1.444 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of SimCode: time 1.463e-06/1.479, allocations: 4 kB / 1.444 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.03212/1.511, allocations: 16.06 MB / 1.46 GB, free: 179.4 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization.makefile make -j1 -f Buildings_9_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_9_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_9_Buildings.HeatTransfer.Examples.ConductorInitialization.o Buildings_9_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_9_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_9_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.o Buildings_9_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_9_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_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.o Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:124:22: error: expected ';' at end of declaration modelica_real ths->__omcQ_24tmpVar7; ^ ; Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:125:19: error: redefinition of 'ths' modelica_real ths->__omcQ_24tmpVar6; ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:124:19: note: previous definition is here modelica_real ths->__omcQ_24tmpVar7; ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:125:22: error: expected ';' at end of declaration modelica_real ths->__omcQ_24tmpVar6; ^ ; Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:131:17: error: member reference type 'modelica_real' (aka 'double') is not a pointer tmp8 = ths->_nLay /* Range stop-value */; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:134:10: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar7 = 0.0; /* defaultValue */ ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:142:14: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:142:97: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ ./Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.h:56: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_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:142:116: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar6 = Buildings_HeatTransfer_Data_BaseClasses_Material_array_get(ths->_material, 1, ths->_i)._R; ~~~ ^ ./Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_functions.h:56: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_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:143:14: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar7 = ths->__omcQ_24tmpVar7 + ths->__omcQ_24tmpVar6; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:143:38: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar7 = ths->__omcQ_24tmpVar7 + ths->__omcQ_24tmpVar6; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:143:62: error: member reference type 'modelica_real' (aka 'double') is not a pointer ths->__omcQ_24tmpVar7 = ths->__omcQ_24tmpVar7 + ths->__omcQ_24tmpVar6; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:150:17: error: member reference type 'modelica_real' (aka 'double') is not a pointer tmp5 = ths->__omcQ_24tmpVar7; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:156:22: error: expected ';' at end of declaration integer_array ths->__omcQ_24tmpVar9; ^ ; Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:157:22: error: redefinition of 'ths' with a different type: 'modelica_integer' (aka 'long') vs 'integer_array' (aka 'struct base_array_s') modelica_integer ths->__omcQ_24tmpVar8; ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:156:19: note: previous definition is here integer_array ths->__omcQ_24tmpVar9; ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:157:25: error: expected ';' at end of declaration modelica_integer ths->__omcQ_24tmpVar8; ^ ; Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:165: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_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:165:18: error: no member named '_nLay' in 'struct base_array_s' tmp13 = ths->_nLay /* Range stop-value */; ~~~ ^ Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:172: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->__omcQ_24tmpVar9,tmp14); ~~~^~ . Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.c:172:41: error: no member named '__omcQ_24tmpVar9' in 'struct base_array_s' simple_alloc_1d_integer_array(&ths->__omcQ_24tmpVar9,tmp14); ~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: Buildings_9_Buildings.HeatTransfer.Examples.ConductorInitialization_records.o] Error 1