Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.0008446/0.0008447, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 180.2 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9641/0.9641, allocations: 135.3 MB / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003871, allocations: 8 kB / 0.5082 GB, free: 4.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1553, allocations: 82.32 MB / 0.5886 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001912/0.1573, allocations: 1.309 MB / 0.5899 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.1583, allocations: 0.6197 MB / 0.5905 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.51e-05/0.1584, allocations: 4 kB / 0.5905 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.1586, allocations: 15.88 kB / 0.5905 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1588, allocations: 31.83 kB / 0.5906 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.1592, allocations: 103.9 kB / 0.5907 GB, free: 496 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.1594, allocations: 159.6 kB / 0.5908 GB, free: 336 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.1596, allocations: 29.09 kB / 0.5908 GB, free: 304 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.1597, allocations: 79.75 kB / 0.5909 GB, free: 224 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.1599, allocations: 71.73 kB / 0.591 GB, free: 152 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.1599, allocations: 4 kB / 0.591 GB, free: 148 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.011e-05/0.16, allocations: 27.92 kB / 0.591 GB, free: 120 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.716e-05/0.1601, allocations: 27.91 kB / 0.591 GB, free: 92 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1602, allocations: 89.48 kB / 0.5911 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.1604, allocations: 115.9 kB / 0.5912 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1604, allocations: 0 / 0.5912 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1604, allocations: 0 / 0.5912 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.1604, allocations: 4 kB / 0.5912 GB, free: 15.88 MB / 0.4981 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.0006271/0.1611, allocations: 0.5213 MB / 0.5917 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1611, allocations: 15.97 kB / 0.5918 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/0.1612, allocations: 20.75 kB / 0.5918 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.1615, allocations: 237.6 kB / 0.592 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1615, allocations: 8.375 kB / 0.592 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.1615, allocations: 16.31 kB / 0.592 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.1618, allocations: 121.7 kB / 0.5921 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1618, allocations: 0 / 0.5921 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.1618, allocations: 0 / 0.5921 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1619, allocations: 8 kB / 0.5922 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.1621, allocations: 75.89 kB / 0.5922 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006619/0.1627, allocations: 424.6 kB / 0.5926 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.163, allocations: 94.56 kB / 0.5927 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1631, allocations: 80.81 kB / 0.5928 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1632, allocations: 4 kB / 0.5928 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.1635, allocations: 178.9 kB / 0.593 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1635, allocations: 0 / 0.593 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007372/0.1642, allocations: 368.7 kB / 0.5933 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.981e-05/0.1643, allocations: 166.2 kB / 0.5935 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1645, allocations: 184.1 kB / 0.5937 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.1645, allocations: 33.7 kB / 0.5937 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.1646, allocations: 104.4 kB / 0.5938 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.1646, allocations: 23.7 kB / 0.5938 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.1647, allocations: 21.72 kB / 0.5938 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1648, allocations: 330.8 kB / 0.5941 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.1649, allocations: 51.97 kB / 0.5942 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.1651, allocations: 119 kB / 0.5943 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1655, allocations: 320.9 kB / 0.5946 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1655, allocations: 0 / 0.5946 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005409/0.166, allocations: 356 kB / 0.595 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.27e-05/0.1661, allocations: 122.8 kB / 0.5951 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1661, allocations: 0 / 0.5951 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1662, allocations: 4 kB / 0.5951 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.1663, allocations: 20.17 kB / 0.5951 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1663, allocations: 8 kB / 0.5951 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.951e-05/0.1664, allocations: 15.94 kB / 0.5951 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1664, allocations: 15.98 kB / 0.5951 GB, free: 11.45 MB / 0.4981 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.0001532/0.1666, allocations: 197.1 kB / 0.5953 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.1666, allocations: 19.81 kB / 0.5953 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.1667, allocations: 21.34 kB / 0.5954 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1667, allocations: 0 / 0.5954 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1667, allocations: 4 kB / 0.5954 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1667, allocations: 3.984 kB / 0.5954 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007298/0.1675, allocations: 0.5953 MB / 0.596 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1675, allocations: 0 / 0.596 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.714e-05/0.1675, allocations: 15.98 kB / 0.596 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1675, allocations: 4 kB / 0.596 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1676, allocations: 4 kB / 0.596 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1676, allocations: 4 kB / 0.596 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.1676, allocations: 7.922 kB / 0.596 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.1681, allocations: 410.7 kB / 0.5964 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.1682, allocations: 88.92 kB / 0.5965 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.1682, allocations: 8 kB / 0.5965 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.1684, allocations: 11.98 kB / 0.5965 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.1684, allocations: 7.938 kB / 0.5965 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.1684, allocations: 15.98 kB / 0.5965 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.251e-05/0.1685, allocations: 124.3 kB / 0.5966 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1685, allocations: 0 / 0.5966 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002904/0.1688, allocations: 40 kB / 0.5967 GB, free: 9.738 MB / 0.4981 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.0002108/0.1691, allocations: 116.9 kB / 0.5968 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000492/0.1696, allocations: 377.4 kB / 0.5971 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1696, allocations: 0 / 0.5971 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.1698, allocations: 207 kB / 0.5973 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.1701, allocations: 23.98 kB / 0.5974 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005841/0.1707, allocations: 364.1 kB / 0.5977 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.171, allocations: 0.7083 MB / 0.5984 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.1711, allocations: 11.44 kB / 0.5984 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1711, allocations: 0 / 0.5984 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of Templates: time 0.003876/0.1749, allocations: 2.145 MB / 0.6005 GB, free: 5.703 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile make -j1 -f IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/fileWriterFree.c:25:16: error: assigning to 'char *' from incompatible type 'void *' origString = malloc(fsize + 1); ^~~~~~~~~~~~~~~~~ In file included from OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterFunctions.cpp:7: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/fileWriterInit.c:12: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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: *** [: OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriterCalcHelperMain.o] Error 1