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.001478/0.001478, allocations: 99.28 kB / 16.27 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.001536/0.001536, allocations: 190.2 kB / 17.2 MB, free: 5.613 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.514/1.514, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.889/1.889, allocations: 292.3 MB / 0.5495 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.00139/0.00139, allocations: 67.89 kB / 0.6722 GB, free: 6.547 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2328, allocations: 114.6 MB / 0.784 GB, free: 3.879 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003433/0.2362, allocations: 1.632 MB / 0.7856 GB, free: 2.227 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.2373, allocations: 0.597 MB / 0.7862 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2375, allocations: 4 kB / 0.7862 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.2377, allocations: 23.8 kB / 0.7862 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000286/0.238, allocations: 67.05 kB / 0.7863 GB, free: 1.531 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.2382, allocations: 67.84 kB / 0.7864 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.2385, allocations: 123.6 kB / 0.7865 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.2386, allocations: 45.45 kB / 0.7865 GB, free: 1.293 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.2388, allocations: 63.72 kB / 0.7866 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.2389, allocations: 71.69 kB / 0.7866 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.239, allocations: 8 kB / 0.7867 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.246e-05/0.2391, allocations: 23.92 kB / 0.7867 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.574e-05/0.2392, allocations: 47.83 kB / 0.7867 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.66e-05/0.2393, allocations: 55.61 kB / 0.7868 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.2395, allocations: 147.7 kB / 0.7869 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2395, allocations: 0 / 0.7869 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2395, allocations: 0 / 0.7869 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.2395, allocations: 0 / 0.7869 GB, free: 0.8828 MB / 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.0006794/0.2402, allocations: 466.7 kB / 0.7874 GB, free: 388 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.2402, allocations: 11.97 kB / 0.7874 GB, free: 376 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.2403, allocations: 16.75 kB / 0.7874 GB, free: 360 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.2406, allocations: 236.8 kB / 0.7876 GB, free: 84 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-06/0.2406, allocations: 384 / 0.7876 GB, free: 84 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.2406, allocations: 8.375 kB / 0.7876 GB, free: 76 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3775/0.6181, allocations: 106.9 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.6182, allocations: 0.8438 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.6182, allocations: 2.094 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.6182, allocations: 4 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.6185, allocations: 62.94 kB / 0.7878 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.6191, allocations: 383.4 kB / 0.7882 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.6193, allocations: 38.2 kB / 0.7882 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.6194, allocations: 31.77 kB / 0.7882 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.6194, allocations: 2.625 kB / 0.7882 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.6197, allocations: 100.7 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.994e-06/0.6197, allocations: 0 / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.00041/0.6201, allocations: 124.7 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.6202, allocations: 79.73 kB / 0.7885 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.6204, allocations: 250.9 kB / 0.7888 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.6204, allocations: 28.11 kB / 0.7888 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.6205, allocations: 134.7 kB / 0.7889 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.6205, allocations: 12.22 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.6205, allocations: 19.69 kB / 0.7889 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.6206, allocations: 328.8 kB / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.6207, allocations: 23.5 kB / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.6208, allocations: 47.34 kB / 0.7893 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.621, allocations: 76.89 kB / 0.7894 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.621, allocations: 0 / 0.7894 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002394/0.6212, allocations: 98.81 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.6213, allocations: 9.375 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.6213, allocations: 2.094 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.6213, allocations: 0.5 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.6214, allocations: 13.69 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.6214, allocations: 6.297 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.455e-05/0.6215, allocations: 11.88 kB / 0.7895 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.6215, allocations: 2.719 kB / 0.7895 GB, free: 47.64 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 7.652e-05/0.6216, allocations: 129.8 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.6217, allocations: 23.09 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.6217, allocations: 17.62 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.6217, allocations: 0.5312 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6217, allocations: 0.5625 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.6217, allocations: 5.875 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.6218, allocations: 218.8 kB / 0.7899 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.6218, allocations: 3.641 kB / 0.7899 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.307e-05/0.6219, allocations: 12.48 kB / 0.7899 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.6219, allocations: 6.562 kB / 0.7899 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.6219, allocations: 0 / 0.7899 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.6219, allocations: 0.5625 kB / 0.7899 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.622, allocations: 0.5312 kB / 0.7899 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.6222, allocations: 128.5 kB / 0.7901 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.345e-05/0.6223, allocations: 91.58 kB / 0.7901 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.6223, allocations: 8.141 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.111e-05/0.6224, allocations: 12.62 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.6224, allocations: 6.062 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.6225, allocations: 2.625 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001322/0.6226, allocations: 189.9 kB / 0.7904 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6226, allocations: 0 / 0.7904 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002127/0.6228, allocations: 19.53 kB / 0.7904 GB, free: 47.06 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.0002103/0.623, allocations: 116.7 kB / 0.7905 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002844/0.6233, allocations: 61.33 kB / 0.7905 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6233, allocations: 0 / 0.7905 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.6235, allocations: 31.02 kB / 0.7906 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.6238, allocations: 43.2 kB / 0.7906 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/0.6243, allocations: 307.7 kB / 0.7909 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.6244, allocations: 0.7331 MB / 0.7916 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.6245, allocations: 16.52 kB / 0.7916 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of SimCode: time 2.01e-07/0.6245, allocations: 0 / 0.7916 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of Templates: time 0.003573/0.628, allocations: 2.119 MB / 0.7937 GB, free: 45.93 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