Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001001/0.001001, allocations: 107.9 kB / 16.41 MB, free: 6.473 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.001022/0.001023, allocations: 189.6 kB / 17.34 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7187/0.7187, allocations: 135.1 MB / 426.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 70.52 kB / 0.5862 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1227, allocations: 80.92 MB / 0.6653 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002487/0.1252, allocations: 1.636 MB / 0.6669 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00079/0.126, allocations: 0.5455 MB / 0.6674 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.556e-05/0.1261, allocations: 4 kB / 0.6674 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.1263, allocations: 35.72 kB / 0.6674 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.1265, allocations: 63.67 kB / 0.6675 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001294/0.1266, allocations: 59.92 kB / 0.6676 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1268, allocations: 135.5 kB / 0.6677 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.127, allocations: 53.45 kB / 0.6677 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1271, allocations: 43.84 kB / 0.6678 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.1272, allocations: 71.62 kB / 0.6678 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.1272, allocations: 8 kB / 0.6679 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.002e-05/0.1273, allocations: 16 kB / 0.6679 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.1274, allocations: 47.83 kB / 0.6679 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.598e-05/0.1274, allocations: 55.61 kB / 0.668 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.1276, allocations: 159.3 kB / 0.6681 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1276, allocations: 4 kB / 0.6681 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1276, allocations: 0 / 0.6681 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.1276, allocations: 0 / 0.6681 GB, free: 2.898 MB / 0.4981 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.0005374/0.1282, allocations: 462.7 kB / 0.6686 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.698e-05/0.1282, allocations: 9.109 kB / 0.6686 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.1283, allocations: 24.75 kB / 0.6686 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.1285, allocations: 244.8 kB / 0.6688 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.1285, allocations: 4.375 kB / 0.6688 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.1286, allocations: 8.375 kB / 0.6688 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1288, allocations: 113.8 kB / 0.6689 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1288, allocations: 4 kB / 0.669 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.1288, allocations: 4 kB / 0.669 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1289, allocations: 3.984 kB / 0.669 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.1291, allocations: 63.94 kB / 0.669 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.1296, allocations: 376.5 kB / 0.6694 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.1297, allocations: 42.55 kB / 0.6694 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.266e-05/0.1298, allocations: 32.84 kB / 0.6695 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.1298, allocations: 0 / 0.6695 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.13, allocations: 96.98 kB / 0.6695 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.13, allocations: 0 / 0.6695 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003734/0.1304, allocations: 129.4 kB / 0.6697 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.1305, allocations: 81.05 kB / 0.6697 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1307, allocations: 253 kB / 0.67 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.1307, allocations: 25.7 kB / 0.67 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.1308, allocations: 132 kB / 0.6701 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.1308, allocations: 7.906 kB / 0.6701 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.1309, allocations: 21.7 kB / 0.6702 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.131, allocations: 326.8 kB / 0.6705 GB, free: 260 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1311, allocations: 23.97 kB / 0.6705 GB, free: 236 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.1312, allocations: 47.41 kB / 0.6705 GB, free: 176 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.1314, allocations: 70.5 kB / 0.6706 GB, free: 96 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1314, allocations: 0 / 0.6706 GB, free: 96 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000248/0.1317, allocations: 109.5 kB / 0.6707 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.1317, allocations: 5.875 kB / 0.6707 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1317, allocations: 0 / 0.6707 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1317, allocations: 3.938 kB / 0.6707 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.496e-05/0.1318, allocations: 11.98 kB / 0.6707 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.1318, allocations: 4 kB / 0.6707 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.591e-05/0.1319, allocations: 11.98 kB / 0.6708 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.1319, allocations: 0 / 0.6708 GB, free: 15.95 MB / 0.5137 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.843e-05/0.132, allocations: 137.8 kB / 0.6709 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.132, allocations: 19.72 kB / 0.6709 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.1321, allocations: 17.23 kB / 0.6709 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1321, allocations: 7.875 kB / 0.6709 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1321, allocations: 0 / 0.6709 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1321, allocations: 0 / 0.6709 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.1322, allocations: 213.6 kB / 0.6711 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1323, allocations: 3.984 kB / 0.6711 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.226e-05/0.1323, allocations: 11.94 kB / 0.6711 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1324, allocations: 3.984 kB / 0.6711 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.1324, allocations: 4 kB / 0.6712 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1324, allocations: 7.875 kB / 0.6712 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1324, allocations: 4 kB / 0.6712 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.1326, allocations: 121.2 kB / 0.6713 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.1327, allocations: 92.95 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.1327, allocations: 0 / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.63e-05/0.1328, allocations: 19.92 kB / 0.6714 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.446e-05/0.1328, allocations: 3.984 kB / 0.6714 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1329, allocations: 8 kB / 0.6714 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000149/0.133, allocations: 188.5 kB / 0.6716 GB, free: 15 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 0.6716 GB, free: 15 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001984/0.1332, allocations: 20.12 kB / 0.6716 GB, free: 14.98 MB / 0.5137 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.0001768/0.1334, allocations: 128 kB / 0.6717 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000244/0.1337, allocations: 47.95 kB / 0.6718 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1337, allocations: 0 / 0.6718 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.1338, allocations: 32.16 kB / 0.6718 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.134, allocations: 41.09 kB / 0.6718 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/0.1345, allocations: 317.6 kB / 0.6721 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1348, allocations: 0.7197 MB / 0.6728 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.935e-05/0.1348, allocations: 15.44 kB / 0.6729 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1348, allocations: 4 kB / 0.6729 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of Templates: time 0.003494/0.1383, allocations: 2.136 MB / 0.6749 GB, free: 11.5 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/jsonWriterInit.c:9: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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 OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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/IDEAS 3.0.0-master/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 OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppIDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/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: *** [: OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1