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.585/1.585, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.001273/0.001273, allocations: 178.8 kB / 326.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.174/2.174, allocations: 205 MB / 0.5766 GB, free: 21 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.0008879/0.0008878, allocations: 92.81 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.000341, allocations: 8.5 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2233, allocations: 105.4 MB / 0.8967 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002054/0.2254, allocations: 1.364 MB / 0.8981 GB, free: 66.81 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008106/0.2262, allocations: 0.5889 MB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.063e-05/0.2263, allocations: 3.938 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.2266, allocations: 19.86 kB / 0.8987 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.2268, allocations: 66.86 kB / 0.8987 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001352/0.2269, allocations: 59.88 kB / 0.8988 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.2271, allocations: 123.5 kB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.2273, allocations: 53.41 kB / 0.899 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.2274, allocations: 43.78 kB / 0.899 GB, free: 65.85 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.336e-05/0.2275, allocations: 55.69 kB / 0.8991 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.2276, allocations: 4 kB / 0.8991 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.219e-05/0.2276, allocations: 12 kB / 0.8991 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.346e-05/0.2277, allocations: 51.77 kB / 0.8991 GB, free: 65.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.2278, allocations: 47.61 kB / 0.8992 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.2279, allocations: 95.83 kB / 0.8993 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2279, allocations: 0 / 0.8993 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2279, allocations: 3.938 kB / 0.8993 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.229e-06/0.2279, allocations: 0 / 0.8993 GB, free: 65.58 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.0005634/0.2285, allocations: 450.8 kB / 0.8997 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2286, allocations: 12.03 kB / 0.8997 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.2286, allocations: 16.75 kB / 0.8997 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.2288, allocations: 236.8 kB / 0.8999 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.2289, allocations: 4.375 kB / 0.8999 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.2289, allocations: 8.375 kB / 0.9 GB, free: 64.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.2292, allocations: 117.9 kB / 0.9001 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2292, allocations: 0 / 0.9001 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.2292, allocations: 0 / 0.9001 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2292, allocations: 4 kB / 0.9001 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.2295, allocations: 87.88 kB / 0.9002 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.23, allocations: 388.5 kB / 0.9005 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.2301, allocations: 54.48 kB / 0.9006 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.2303, allocations: 36.89 kB / 0.9006 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2303, allocations: 0 / 0.9006 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.2305, allocations: 105.1 kB / 0.9007 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2305, allocations: 0 / 0.9007 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004199/0.231, allocations: 153.3 kB / 0.9009 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.231, allocations: 77.11 kB / 0.9009 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.2312, allocations: 260.9 kB / 0.9012 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.2312, allocations: 25.7 kB / 0.9012 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.733e-05/0.2313, allocations: 124 kB / 0.9013 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.2313, allocations: 11.91 kB / 0.9013 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.2314, allocations: 13.7 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.224e-05/0.2314, allocations: 326.8 kB / 0.9017 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.2315, allocations: 35.97 kB / 0.9017 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2317, allocations: 55.41 kB / 0.9017 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.2319, allocations: 82.44 kB / 0.9018 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2319, allocations: 4 kB / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002497/0.2321, allocations: 117.4 kB / 0.9019 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2322, allocations: 4 kB / 0.9019 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2322, allocations: 12.09 kB / 0.902 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2322, allocations: 3.938 kB / 0.902 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.2323, allocations: 15.98 kB / 0.902 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.2323, allocations: 0 / 0.902 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.504e-05/0.2324, allocations: 27.83 kB / 0.902 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.2324, allocations: 0 / 0.902 GB, free: 62.51 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 8.526e-05/0.2325, allocations: 130.5 kB / 0.9021 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.2326, allocations: 15.81 kB / 0.9021 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.2326, allocations: 21.23 kB / 0.9022 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2326, allocations: 3.938 kB / 0.9022 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2326, allocations: 4 kB / 0.9022 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2326, allocations: 3.938 kB / 0.9022 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.2328, allocations: 209.6 kB / 0.9024 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2328, allocations: 3.938 kB / 0.9024 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.857e-05/0.2329, allocations: 19.98 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2329, allocations: 3.984 kB / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2329, allocations: 0 / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2329, allocations: 3.938 kB / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2329, allocations: 0 / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.2332, allocations: 136.9 kB / 0.9025 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.2332, allocations: 88.92 kB / 0.9026 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.2332, allocations: 0 / 0.9026 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.22e-05/0.2333, allocations: 19.92 kB / 0.9026 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.2334, allocations: 7.984 kB / 0.9026 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.2334, allocations: 8 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001395/0.2336, allocations: 188.5 kB / 0.9028 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.292e-06/0.2336, allocations: 0 / 0.9028 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002053/0.2338, allocations: 23.94 kB / 0.9029 GB, free: 61.54 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.0002813/0.2341, allocations: 132.9 kB / 0.903 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002856/0.2344, allocations: 63.95 kB / 0.903 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2344, allocations: 192 / 0.903 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.2345, allocations: 43.91 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.2348, allocations: 35.12 kB / 0.9031 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005211/0.2353, allocations: 359.5 kB / 0.9035 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.2355, allocations: 0.7238 MB / 0.9042 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.2355, allocations: 19.38 kB / 0.9042 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of SimCode: time 3.2e-07/0.2356, allocations: 0 / 0.9042 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of Templates: time 0.003439/0.239, allocations: 2.074 MB / 0.9062 GB, free: 58.05 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