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.001429/0.001429, allocations: 109.4 kB / 15.99 MB, free: 6.359 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.001066/0.001066, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.314/1.314, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.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.727/1.727, allocations: 292.3 MB / 0.5492 GB, free: 13.67 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.001425/0.001425, allocations: 69.91 kB / 0.6716 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2756, allocations: 114.5 MB / 0.7835 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003174/0.2788, allocations: 1.702 MB / 0.7852 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009179/0.2798, allocations: 0.5816 MB / 0.7857 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.41e-05/0.2799, allocations: 0 / 0.7857 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.2801, allocations: 23.84 kB / 0.7858 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.2804, allocations: 63.02 kB / 0.7858 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.2805, allocations: 51.94 kB / 0.7859 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.2807, allocations: 135.5 kB / 0.786 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.2809, allocations: 45.48 kB / 0.786 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.281, allocations: 55.72 kB / 0.7861 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.2811, allocations: 63.69 kB / 0.7862 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.2811, allocations: 8 kB / 0.7862 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.942e-05/0.2812, allocations: 24 kB / 0.7862 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.793e-05/0.2813, allocations: 47.88 kB / 0.7862 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.2814, allocations: 63.55 kB / 0.7863 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.2816, allocations: 104 kB / 0.7864 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.2816, allocations: 8 kB / 0.7864 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2816, allocations: 0 / 0.7864 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.2816, allocations: 0 / 0.7864 GB, free: 10.96 MB / 0.6075 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.0006455/0.2823, allocations: 465 kB / 0.7868 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2823, allocations: 8.031 kB / 0.7869 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.2824, allocations: 20.75 kB / 0.7869 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.2827, allocations: 232.8 kB / 0.7871 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.2827, allocations: 8.375 kB / 0.7871 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.2827, allocations: 4.375 kB / 0.7871 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.283, allocations: 117.9 kB / 0.7872 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.283, allocations: 3.984 kB / 0.7872 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.2831, allocations: 0 / 0.7872 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2831, allocations: 0 / 0.7872 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.2833, allocations: 67.94 kB / 0.7873 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.2839, allocations: 384.4 kB / 0.7877 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.284, allocations: 46.55 kB / 0.7877 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.2841, allocations: 20.91 kB / 0.7877 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.2842, allocations: 3.938 kB / 0.7877 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.2845, allocations: 101.1 kB / 0.7878 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2845, allocations: 0 / 0.7878 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004208/0.2849, allocations: 121.4 kB / 0.7879 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.285, allocations: 81.11 kB / 0.788 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.2852, allocations: 253 kB / 0.7883 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2853, allocations: 33.69 kB / 0.7883 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.2854, allocations: 128 kB / 0.7884 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.2854, allocations: 11.84 kB / 0.7884 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.2854, allocations: 21.7 kB / 0.7884 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2856, allocations: 326.8 kB / 0.7887 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.2857, allocations: 19.97 kB / 0.7888 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.2858, allocations: 51.41 kB / 0.7888 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.286, allocations: 70.5 kB / 0.7889 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.286, allocations: 0 / 0.7889 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002731/0.2863, allocations: 109.4 kB / 0.789 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2863, allocations: 6.188 kB / 0.789 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2863, allocations: 7.984 kB / 0.789 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2863, allocations: 3.938 kB / 0.789 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.2865, allocations: 11.98 kB / 0.789 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2865, allocations: 0 / 0.789 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.807e-05/0.2866, allocations: 15.89 kB / 0.789 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.2866, allocations: 0 / 0.789 GB, free: 8.008 MB / 0.6075 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.0001106/0.2867, allocations: 133.9 kB / 0.7892 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.2867, allocations: 15.81 kB / 0.7892 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.2868, allocations: 21.23 kB / 0.7892 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2868, allocations: 7.938 kB / 0.7892 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2868, allocations: 288 / 0.7892 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2868, allocations: 0 / 0.7892 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.287, allocations: 217.5 kB / 0.7894 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.287, allocations: 0 / 0.7894 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.317e-05/0.2871, allocations: 15.97 kB / 0.7894 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2871, allocations: 7.984 kB / 0.7894 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.2871, allocations: 3.938 kB / 0.7894 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2871, allocations: 11.88 kB / 0.7894 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2871, allocations: 0 / 0.7894 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.2874, allocations: 116.9 kB / 0.7896 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.531e-05/0.2874, allocations: 88.92 kB / 0.7896 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.2875, allocations: 4 kB / 0.7896 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.2876, allocations: 15.92 kB / 0.7897 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.2876, allocations: 7.984 kB / 0.7897 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.2877, allocations: 4 kB / 0.7897 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001594/0.2878, allocations: 188.5 kB / 0.7899 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.763e-06/0.2878, allocations: 0 / 0.7899 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000222/0.2881, allocations: 27.84 kB / 0.7899 GB, free: 7.047 MB / 0.6075 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.0002325/0.2883, allocations: 119.4 kB / 0.79 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002714/0.2886, allocations: 55.89 kB / 0.79 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2886, allocations: 0 / 0.79 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.2887, allocations: 32.16 kB / 0.7901 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.289, allocations: 45.34 kB / 0.7901 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.2896, allocations: 361.8 kB / 0.7905 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.2899, allocations: 0.7233 MB / 0.7912 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/0.29, allocations: 15.44 kB / 0.7912 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.29, allocations: 4 kB / 0.7912 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of Templates: time 0.004323/0.2943, allocations: 2.111 MB / 0.7933 GB, free: 3.543 MB / 0.6075 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++14 -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