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.554/1.554, allocations: 252 MB / 267.6 MB, free: 10.97 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.001608/0.001608, allocations: 187.5 kB / 327.3 MB, free: 2.215 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.718/1.718, allocations: 205.4 MB / 0.5783 GB, free: 20.27 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.0008167/0.0008168, allocations: 80.44 kB / 0.6829 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 8.344 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2418, allocations: 106.3 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002006/0.2438, allocations: 1.344 MB / 0.9021 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007695/0.2446, allocations: 0.5581 MB / 0.9027 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.503e-05/0.2447, allocations: 4 kB / 0.9027 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.2449, allocations: 23.86 kB / 0.9027 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002357/0.2451, allocations: 62.25 kB / 0.9028 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001272/0.2453, allocations: 55.92 kB / 0.9028 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.2454, allocations: 119.6 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2456, allocations: 33.47 kB / 0.903 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2457, allocations: 47.77 kB / 0.903 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.174e-05/0.2458, allocations: 51.69 kB / 0.9031 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.2459, allocations: 4 kB / 0.9031 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.2459, allocations: 24 kB / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.216e-05/0.246, allocations: 31.89 kB / 0.9031 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.246, allocations: 49.58 kB / 0.9032 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.2462, allocations: 87.83 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2462, allocations: 0 / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2462, allocations: 4 kB / 0.9032 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.2462, allocations: 0 / 0.9032 GB, free: 61.38 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.0005735/0.2468, allocations: 454.8 kB / 0.9037 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2468, allocations: 12.03 kB / 0.9037 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.2469, allocations: 15.81 kB / 0.9037 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.2471, allocations: 231.6 kB / 0.9039 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.2471, allocations: 8 kB / 0.9039 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.2472, allocations: 4 kB / 0.9039 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.2475, allocations: 117.6 kB / 0.9041 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2475, allocations: 0 / 0.9041 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.2475, allocations: 4 kB / 0.9041 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2475, allocations: 4 kB / 0.9041 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.2478, allocations: 83.94 kB / 0.9041 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.2483, allocations: 388.4 kB / 0.9045 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.2485, allocations: 58.44 kB / 0.9046 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.2486, allocations: 28.91 kB / 0.9046 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.2486, allocations: 4 kB / 0.9046 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/0.2489, allocations: 105.1 kB / 0.9047 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.2489, allocations: 0 / 0.9047 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004332/0.2493, allocations: 145.4 kB / 0.9048 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.2493, allocations: 81.11 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.2496, allocations: 256.9 kB / 0.9052 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2496, allocations: 25.7 kB / 0.9052 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.2496, allocations: 128.1 kB / 0.9053 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.2497, allocations: 7.891 kB / 0.9053 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.2497, allocations: 0 / 0.9053 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.65e-05/0.2498, allocations: 334.8 kB / 0.9056 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.2499, allocations: 31.98 kB / 0.9057 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.25, allocations: 55.41 kB / 0.9057 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2501, allocations: 36 kB / 0.9058 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2501, allocations: 0 / 0.9058 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002692/0.2504, allocations: 125.3 kB / 0.9059 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2504, allocations: 4 kB / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2504, allocations: 0 / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2504, allocations: 4.281 kB / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.2506, allocations: 16.02 kB / 0.9059 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2506, allocations: 8 kB / 0.9059 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.942e-05/0.2507, allocations: 23.83 kB / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.2507, allocations: 0 / 0.9059 GB, free: 58.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.574e-05/0.2508, allocations: 133.8 kB / 0.9061 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.12e-05/0.2508, allocations: 19.77 kB / 0.9061 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.2508, allocations: 17.23 kB / 0.9061 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2508, allocations: 0 / 0.9061 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2509, allocations: 4 kB / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2509, allocations: 0 / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.251, allocations: 217.6 kB / 0.9063 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.251, allocations: 0 / 0.9063 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.008e-05/0.2511, allocations: 15.98 kB / 0.9063 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2511, allocations: 3.953 kB / 0.9063 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.2511, allocations: 0 / 0.9063 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2511, allocations: 0 / 0.9063 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2511, allocations: 0 / 0.9063 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.2514, allocations: 140.8 kB / 0.9065 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.812e-05/0.2514, allocations: 104.8 kB / 0.9066 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.2515, allocations: 3.953 kB / 0.9066 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.2516, allocations: 15.98 kB / 0.9066 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.2516, allocations: 7.984 kB / 0.9066 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.2516, allocations: 4 kB / 0.9066 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001234/0.2518, allocations: 184.5 kB / 0.9068 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2518, allocations: 3.938 kB / 0.9068 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001981/0.252, allocations: 24 kB / 0.9068 GB, free: 57.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002136/0.2522, allocations: 115.9 kB / 0.9069 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.2525, allocations: 75.88 kB / 0.907 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2525, allocations: 4 kB / 0.907 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.2526, allocations: 36.16 kB / 0.907 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.2529, allocations: 43.16 kB / 0.907 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000457/0.2533, allocations: 347.2 kB / 0.9074 GB, free: 56.77 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2535, allocations: 0.7201 MB / 0.9081 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.952e-05/0.2535, allocations: 15.44 kB / 0.9081 GB, free: 56 MB / 0.6042 GB Notification: Performance of SimCode: time 7.01e-07/0.2536, allocations: 0 / 0.9081 GB, free: 56 MB / 0.6042 GB Notification: Performance of Templates: time 0.003336/0.2569, allocations: 2.093 MB / 0.9101 GB, free: 53.92 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++ -Winvalid-pch -O0 -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/c/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