Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.468/1.468, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001432/0.001432, allocations: 182.9 kB / 327.6 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.4 MB / 0.5786 GB, free: 20.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008578/0.0008578, allocations: 74.44 kB / 0.6832 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 8.875 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2668, allocations: 106.3 MB / 0.9014 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002987/0.2698, allocations: 1.351 MB / 0.9028 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2713, allocations: 0.585 MB / 0.9033 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.2714, allocations: 4 kB / 0.9033 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.2717, allocations: 27.84 kB / 0.9034 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003825/0.2721, allocations: 61.56 kB / 0.9034 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.2723, allocations: 55.88 kB / 0.9035 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2726, allocations: 131.5 kB / 0.9036 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.2728, allocations: 45.47 kB / 0.9036 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.273, allocations: 43.78 kB / 0.9037 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.2732, allocations: 51.77 kB / 0.9037 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.2733, allocations: 0 / 0.9037 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.635e-05/0.2734, allocations: 19.94 kB / 0.9038 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2735, allocations: 43.83 kB / 0.9038 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.554e-05/0.2736, allocations: 73.31 kB / 0.9039 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.2738, allocations: 99.75 kB / 0.904 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2738, allocations: 3.984 kB / 0.904 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2739, allocations: 0 / 0.904 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.2739, allocations: 0 / 0.904 GB, free: 60.9 MB / 0.6042 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.0007709/0.2747, allocations: 455 kB / 0.9044 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.2747, allocations: 8.031 kB / 0.9044 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.276e-05/0.2748, allocations: 16.75 kB / 0.9044 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.2752, allocations: 236.8 kB / 0.9047 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.2752, allocations: 4.312 kB / 0.9047 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.2752, allocations: 8.375 kB / 0.9047 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.2757, allocations: 121.9 kB / 0.9048 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2757, allocations: 4 kB / 0.9048 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.2758, allocations: 4 kB / 0.9048 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2758, allocations: 3.938 kB / 0.9048 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.2762, allocations: 79.94 kB / 0.9049 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008509/0.2771, allocations: 384.4 kB / 0.9052 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.2773, allocations: 54.55 kB / 0.9053 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.2775, allocations: 36.89 kB / 0.9053 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.2776, allocations: 0 / 0.9053 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004061/0.278, allocations: 101.1 kB / 0.9054 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 2.154e-06/0.278, allocations: 0 / 0.9054 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0007848/0.2788, allocations: 149.3 kB / 0.9056 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.2789, allocations: 81.11 kB / 0.9056 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003413/0.2792, allocations: 257 kB / 0.9059 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.2793, allocations: 25.7 kB / 0.9059 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 9.045e-05/0.2794, allocations: 128 kB / 0.906 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2794, allocations: 11.83 kB / 0.906 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.2794, allocations: 0 / 0.906 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.2795, allocations: 326.8 kB / 0.9064 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.2797, allocations: 35.97 kB / 0.9064 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.2799, allocations: 55.41 kB / 0.9064 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.2802, allocations: 86.44 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2802, allocations: 0 / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004899/0.2807, allocations: 117.4 kB / 0.9066 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.2808, allocations: 8 kB / 0.9066 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2808, allocations: 0 / 0.9066 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.2808, allocations: 8.312 kB / 0.9066 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.281, allocations: 15.98 kB / 0.9067 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.2811, allocations: 0 / 0.9067 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.2813, allocations: 19.89 kB / 0.9067 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.2813, allocations: 11.94 kB / 0.9067 GB, free: 57.85 MB / 0.6042 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 0.0001275/0.2814, allocations: 126.5 kB / 0.9068 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.2815, allocations: 27.75 kB / 0.9068 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.2815, allocations: 25.23 kB / 0.9069 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.2816, allocations: 3.938 kB / 0.9069 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2816, allocations: 0 / 0.9069 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2816, allocations: 0 / 0.9069 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.2818, allocations: 217.6 kB / 0.9071 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2818, allocations: 3.984 kB / 0.9071 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.282, allocations: 11.98 kB / 0.9071 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.282, allocations: 4 kB / 0.9071 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.282, allocations: 4 kB / 0.9071 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.282, allocations: 3.938 kB / 0.9071 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2821, allocations: 0 / 0.9071 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004942/0.2826, allocations: 136.8 kB / 0.9072 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.885e-05/0.2826, allocations: 96.91 kB / 0.9073 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.2827, allocations: 0 / 0.9073 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.2829, allocations: 19.92 kB / 0.9073 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.2829, allocations: 0 / 0.9073 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.962e-05/0.283, allocations: 11.98 kB / 0.9074 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002264/0.2832, allocations: 188.5 kB / 0.9075 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2833, allocations: 0 / 0.9075 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000389/0.2837, allocations: 27.89 kB / 0.9076 GB, free: 56.87 MB / 0.6042 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.0003182/0.284, allocations: 124.1 kB / 0.9077 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004571/0.2845, allocations: 71.94 kB / 0.9078 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2845, allocations: 3.938 kB / 0.9078 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.2847, allocations: 36.16 kB / 0.9078 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.2852, allocations: 36.41 kB / 0.9078 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007482/0.286, allocations: 367.8 kB / 0.9082 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.2862, allocations: 0.72 MB / 0.9089 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.056e-05/0.2863, allocations: 23.42 kB / 0.9089 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of SimCode: time 8.61e-07/0.2863, allocations: 0 / 0.9089 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of Templates: time 0.005911/0.2922, allocations: 2.085 MB / 0.9109 GB, free: 53.37 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++14 -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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/jsonWriterInit.c:9: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:24:23: error: assigning to 'char **' from incompatible type 'void *' FileWriterNames = malloc(sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:25:21: error: assigning to 'char **' from incompatible type 'void *' InstanceNames = malloc(sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:37: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 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:38: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 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:43: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 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:44: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 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:56: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 7.0.3-maint.7.0.x/Resources/C-Sources/fileWriterStructure.c:61:22: error: assigning to 'char *' from incompatible type 'void *' ID->instanceName = malloc((strlen(instanceName)+1) * sizeof(char)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/jsonWriterInit.c:27:18: error: assigning to 'char **' from incompatible type 'void *' ID-> varKeys = malloc(numKeys * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/jsonWriterInit.c:30:18: error: assigning to 'double *' from incompatible type 'void *' ID-> varVals = malloc(numKeys * sizeof(double)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/jsonWriterInit.c:36:23: error: assigning to 'char *' from incompatible type 'void *' ID-> varKeys[i] = malloc((strlen(varKeys[i])+1) * sizeof(char*)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_maint.7.0.x_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 7.0.3-maint.7.0.x/Resources/C-Sources/jsonWriterInit.c:11:7: note: candidate function not viable: no known conversion from 'CStrArray' to 'char **' for 5th argument void* jsonWriterInit( ^ 12 errors generated. make: *** [: OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1