Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 105.5 kB / 15.99 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 191.3 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.633/1.633, allocations: 292.3 MB / 0.5492 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 65.81 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1952, allocations: 114.6 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002971/0.1982, allocations: 1.675 MB / 0.7852 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001031/0.1993, allocations: 0.6438 MB / 0.7858 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.444e-05/0.1994, allocations: 0 / 0.7858 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.1996, allocations: 23.91 kB / 0.7858 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.1998, allocations: 31.84 kB / 0.7858 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.2002, allocations: 107.8 kB / 0.7859 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.2004, allocations: 195.6 kB / 0.7861 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2005, allocations: 25.11 kB / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.2007, allocations: 79.81 kB / 0.7862 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.2008, allocations: 91.66 kB / 0.7863 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.2009, allocations: 12 kB / 0.7863 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.753e-05/0.201, allocations: 28 kB / 0.7863 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.018e-05/0.201, allocations: 35.83 kB / 0.7864 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.2011, allocations: 63.73 kB / 0.7864 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.2013, allocations: 127.9 kB / 0.7866 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2013, allocations: 0 / 0.7866 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2013, allocations: 0 / 0.7866 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.2013, allocations: 0 / 0.7866 GB, free: 10.75 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000687/0.202, allocations: 0.5486 MB / 0.7871 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.2021, allocations: 12.03 kB / 0.7871 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.2022, allocations: 20.69 kB / 0.7871 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.2024, allocations: 236.2 kB / 0.7874 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.2025, allocations: 12.31 kB / 0.7874 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.2025, allocations: 12.38 kB / 0.7874 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.2028, allocations: 113.7 kB / 0.7875 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.2028, allocations: 7.938 kB / 0.7875 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.2028, allocations: 8 kB / 0.7875 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.2028, allocations: 3.984 kB / 0.7875 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.203, allocations: 59.95 kB / 0.7876 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006431/0.2037, allocations: 424.6 kB / 0.788 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.2039, allocations: 86.53 kB / 0.7881 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.204, allocations: 72.81 kB / 0.7881 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.2041, allocations: 8.031 kB / 0.7881 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.2043, allocations: 182.7 kB / 0.7883 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.2043, allocations: 0 / 0.7883 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0007087/0.2051, allocations: 352.8 kB / 0.7886 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.785e-05/0.2052, allocations: 170.2 kB / 0.7888 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.2053, allocations: 170.6 kB / 0.789 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.2054, allocations: 33.7 kB / 0.789 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.282e-05/0.2054, allocations: 112.3 kB / 0.7891 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.2055, allocations: 27.66 kB / 0.7891 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.749e-05/0.2056, allocations: 41.7 kB / 0.7892 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2057, allocations: 330.8 kB / 0.7895 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.2058, allocations: 55.95 kB / 0.7895 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.206, allocations: 98.83 kB / 0.7896 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.2063, allocations: 313.2 kB / 0.7899 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2063, allocations: 0 / 0.7899 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005169/0.2069, allocations: 352 kB / 0.7903 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.519e-05/0.207, allocations: 123 kB / 0.7904 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.207, allocations: 4 kB / 0.7904 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.207, allocations: 0 / 0.7904 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2071, allocations: 15.98 kB / 0.7904 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.2071, allocations: 11.92 kB / 0.7904 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.675e-05/0.2072, allocations: 12 kB / 0.7904 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.2073, allocations: 8 kB / 0.7904 GB, free: 6.355 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.2074, allocations: 196.8 kB / 0.7906 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.341e-05/0.2075, allocations: 15.81 kB / 0.7906 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.742e-05/0.2075, allocations: 25.39 kB / 0.7907 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2075, allocations: 4 kB / 0.7907 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2075, allocations: 3.938 kB / 0.7907 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2075, allocations: 0 / 0.7907 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006882/0.2082, allocations: 0.5836 MB / 0.7912 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2082, allocations: 0 / 0.7912 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.069e-05/0.2083, allocations: 12 kB / 0.7913 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2083, allocations: 7.984 kB / 0.7913 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.2083, allocations: 4 kB / 0.7913 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2083, allocations: 3.938 kB / 0.7913 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2083, allocations: 3.938 kB / 0.7913 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005193/0.2089, allocations: 398.7 kB / 0.7916 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.2089, allocations: 84.92 kB / 0.7917 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.209, allocations: 11.98 kB / 0.7917 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.2091, allocations: 12 kB / 0.7918 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.2091, allocations: 15.91 kB / 0.7918 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.2092, allocations: 8 kB / 0.7918 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001124/0.2093, allocations: 137 kB / 0.7919 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2093, allocations: 0 / 0.7919 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002874/0.2096, allocations: 36 kB / 0.7919 GB, free: 4.676 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002317/0.2098, allocations: 122.4 kB / 0.7921 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004988/0.2103, allocations: 373.4 kB / 0.7924 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2103, allocations: 0 / 0.7924 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.2106, allocations: 211.2 kB / 0.7926 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.2109, allocations: 22.95 kB / 0.7926 GB, free: 3.887 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005913/0.2115, allocations: 349.6 kB / 0.793 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2118, allocations: 0.7079 MB / 0.7937 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.885e-05/0.2118, allocations: 23.42 kB / 0.7937 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2118, allocations: 0 / 0.7937 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of Templates: time 0.003713/0.2155, allocations: 2.164 MB / 0.7958 GB, free: 0.6016 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.o OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp In file included from OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterFree.c:25:16: error: assigning to 'char *' from incompatible type 'void *' origString = malloc(fsize + 1); ^~~~~~~~~~~~~~~~~ In file included from OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterFunctions.cpp:7: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterInit.c:12: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:26:23: error: assigning to 'char **' from incompatible type 'void *' FileWriterNames = malloc(sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:27:21: error: assigning to 'char **' from incompatible type 'void *' InstanceNames = malloc(sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:39:23: error: assigning to 'char **' from incompatible type 'void *' FileWriterNames = realloc(FileWriterNames, (FileWriterNames_n+1) * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:40:21: error: assigning to 'char **' from incompatible type 'void *' InstanceNames = realloc(InstanceNames, (FileWriterNames_n+1) * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:45:40: error: assigning to 'char *' from incompatible type 'void *' FileWriterNames[FileWriterNames_n] = malloc((strlen(fileName)+1) * sizeof(char)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:46:38: error: assigning to 'char *' from incompatible type 'void *' InstanceNames[FileWriterNames_n] = malloc((strlen(instanceName)+1) * sizeof(char)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:58:24: error: assigning to 'char *' from incompatible type 'void *' ID->fileWriterName = malloc((strlen(fileName)+1) * sizeof(char)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:63:22: error: assigning to 'char *' from incompatible type 'void *' ID->instanceName = malloc((strlen(instanceName)+1) * sizeof(char)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 errors generated. make: *** [: OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.o] Error 1