Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001565, allocations: 114.6 kB / 16.37 MB, free: 6 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.001806/0.001806, allocations: 189.5 kB / 17.3 MB, free: 5.617 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.491/1.491, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.793/1.793, allocations: 292.3 MB / 0.5496 GB, free: 17.36 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.001535/0.001535, allocations: 68.12 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2287, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003196/0.2319, allocations: 1.651 MB / 0.7864 GB, free: 1.531 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009739/0.2329, allocations: 0.5893 MB / 0.787 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.904e-05/0.233, allocations: 4 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.2332, allocations: 27.73 kB / 0.787 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.2335, allocations: 59.67 kB / 0.7871 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.2336, allocations: 67.91 kB / 0.7871 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.2338, allocations: 135.5 kB / 0.7873 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.234, allocations: 49.41 kB / 0.7873 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.2341, allocations: 51.84 kB / 0.7874 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.2342, allocations: 59.69 kB / 0.7874 GB, free: 492 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.2343, allocations: 11.94 kB / 0.7874 GB, free: 480 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.2344, allocations: 27.98 kB / 0.7874 GB, free: 452 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/0.2344, allocations: 47.83 kB / 0.7875 GB, free: 404 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.569e-05/0.2345, allocations: 59.61 kB / 0.7876 GB, free: 344 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.2347, allocations: 143.4 kB / 0.7877 GB, free: 200 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.2348, allocations: 7.938 kB / 0.7877 GB, free: 192 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2348, allocations: 3.938 kB / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.2348, allocations: 0 / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.3505/0.5853, allocations: 454.1 kB / 0.7881 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5853, allocations: 8.688 kB / 0.7881 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/0.5854, allocations: 18 kB / 0.7882 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.5857, allocations: 247.2 kB / 0.7884 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.5858, allocations: 0.9688 kB / 0.7884 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.5858, allocations: 5.781 kB / 0.7884 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.5861, allocations: 110.6 kB / 0.7885 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5861, allocations: 0.5938 kB / 0.7885 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.5861, allocations: 4.656 kB / 0.7885 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5861, allocations: 5.797 kB / 0.7885 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.5863, allocations: 65.12 kB / 0.7886 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.5868, allocations: 384.8 kB / 0.7889 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.587, allocations: 39.92 kB / 0.789 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.5871, allocations: 36.41 kB / 0.789 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.5871, allocations: 2.031 kB / 0.789 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.5873, allocations: 95.56 kB / 0.7891 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.273e-06/0.5873, allocations: 0 / 0.7891 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003934/0.5877, allocations: 122.2 kB / 0.7892 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.5878, allocations: 82.98 kB / 0.7893 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.588, allocations: 255.2 kB / 0.7896 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.588, allocations: 25.7 kB / 0.7896 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.588, allocations: 134.6 kB / 0.7897 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.5881, allocations: 3.906 kB / 0.7897 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.5881, allocations: 15.34 kB / 0.7897 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.244e-05/0.5882, allocations: 333.3 kB / 0.79 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.5883, allocations: 25.55 kB / 0.7901 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.5884, allocations: 45.75 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.5886, allocations: 69.58 kB / 0.7902 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5886, allocations: 0 / 0.7902 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002425/0.5888, allocations: 100.8 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.5888, allocations: 9.203 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.5889, allocations: 3.531 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.5889, allocations: 2.141 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.589, allocations: 17.06 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.589, allocations: 4.875 kB / 0.7903 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-05/0.5891, allocations: 15.7 kB / 0.7903 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.5891, allocations: 0.625 kB / 0.7903 GB, free: 47.43 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.814e-05/0.5892, allocations: 126.3 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.5892, allocations: 16.84 kB / 0.7905 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.5893, allocations: 21.09 kB / 0.7905 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.5893, allocations: 2.062 kB / 0.7905 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5893, allocations: 8.219 kB / 0.7905 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.5893, allocations: 0.5 kB / 0.7905 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.5894, allocations: 214.1 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5894, allocations: 1.219 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.521e-05/0.5895, allocations: 10.16 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.5895, allocations: 4.938 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.5895, allocations: 4.562 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5895, allocations: 1.312 kB / 0.7907 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5895, allocations: 4.938 kB / 0.7907 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.5898, allocations: 126.1 kB / 0.7908 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.5898, allocations: 89.8 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.5898, allocations: 3.719 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-05/0.5899, allocations: 16.03 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.59, allocations: 7.875 kB / 0.791 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.59, allocations: 8.906 kB / 0.791 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001268/0.5901, allocations: 184.1 kB / 0.7911 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5901, allocations: 1.875 kB / 0.7911 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002127/0.5904, allocations: 29.03 kB / 0.7912 GB, free: 46.85 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0002063/0.5906, allocations: 119.8 kB / 0.7913 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002713/0.5908, allocations: 51.75 kB / 0.7913 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5909, allocations: 1 kB / 0.7913 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.591, allocations: 33.41 kB / 0.7914 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.5913, allocations: 47.59 kB / 0.7914 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004521/0.5917, allocations: 304.5 kB / 0.7917 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.5919, allocations: 0.7216 MB / 0.7924 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.5919, allocations: 19.06 kB / 0.7924 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of SimCode: time 6.91e-07/0.5919, allocations: 0 / 0.7924 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of Templates: time 0.003484/0.5954, allocations: 2.113 MB / 0.7945 GB, free: 45.74 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++17 -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.JSONWriterCalcHelperMain.o OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:8: /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)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:29:18: error: assigning to 'char **' from incompatible type 'void *' ID-> varKeys = malloc(numKeys * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:32:18: error: assigning to 'double *' from incompatible type 'void *' ID-> varVals = malloc(numKeys * sizeof(double)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:38:23: error: assigning to 'char *' from incompatible type 'void *' ID-> varKeys[i] = malloc((strlen(varKeys[i])+1) * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:115:21: error: no matching function for call to 'jsonWriterInit' jsonWriter__ext = jsonWriterInit(instanceName_.c_str(), fileName_.c_str(), dumpAtDestruction__ext, varKeys_.getDim(1), varKeys__ext); ^~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:13:7: note: candidate function not viable: no known conversion from 'CStrArray' to 'char **' for 5th argument void* jsonWriterInit( ^ 12 errors generated. make: *** [: OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1