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.001139/0.001139, allocations: 108.6 kB / 16.41 MB, free: 6.512 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.001127/0.001127, allocations: 187 kB / 17.34 MB, free: 5.742 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7545/0.7545, allocations: 135.1 MB / 426.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 60.84 kB / 0.5862 GB, free: 21.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1421, allocations: 80.93 MB / 0.6653 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00264/0.1448, allocations: 1.631 MB / 0.6669 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008094/0.1456, allocations: 0.5454 MB / 0.6674 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.792e-05/0.1457, allocations: 4 kB / 0.6674 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.1459, allocations: 27.73 kB / 0.6674 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1461, allocations: 67.66 kB / 0.6675 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.1463, allocations: 63.92 kB / 0.6676 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.1465, allocations: 135.5 kB / 0.6677 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1466, allocations: 49.45 kB / 0.6677 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.1467, allocations: 55.84 kB / 0.6678 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.1468, allocations: 63.62 kB / 0.6678 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.1469, allocations: 12 kB / 0.6679 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.267e-05/0.1469, allocations: 19.98 kB / 0.6679 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.346e-05/0.147, allocations: 47.83 kB / 0.6679 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.991e-05/0.1471, allocations: 55.61 kB / 0.668 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.1473, allocations: 151.3 kB / 0.6681 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1473, allocations: 0 / 0.6681 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1473, allocations: 0 / 0.6681 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.1473, allocations: 0 / 0.6681 GB, free: 2.922 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.0005767/0.1479, allocations: 474.7 kB / 0.6686 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.1479, allocations: 9.109 kB / 0.6686 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.148, allocations: 16.75 kB / 0.6686 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.1482, allocations: 244.8 kB / 0.6688 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.295e-06/0.1483, allocations: 384 / 0.6688 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1483, allocations: 8.375 kB / 0.6688 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.1486, allocations: 110 kB / 0.6689 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.1486, allocations: 3.938 kB / 0.6689 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.1486, allocations: 4 kB / 0.669 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1486, allocations: 7.984 kB / 0.669 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/0.1488, allocations: 55.94 kB / 0.669 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005397/0.1494, allocations: 384.5 kB / 0.6694 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.1495, allocations: 42.5 kB / 0.6694 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1497, allocations: 28.89 kB / 0.6694 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.1497, allocations: 0 / 0.6694 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.1499, allocations: 105 kB / 0.6695 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1499, allocations: 0 / 0.6695 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000413/0.1503, allocations: 121.4 kB / 0.6697 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.1504, allocations: 89.05 kB / 0.6697 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.1506, allocations: 245 kB / 0.67 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1507, allocations: 37.64 kB / 0.67 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/0.1508, allocations: 132 kB / 0.6701 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.1508, allocations: 3.906 kB / 0.6701 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.1508, allocations: 17.72 kB / 0.6702 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1509, allocations: 326.8 kB / 0.6705 GB, free: 284 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.1511, allocations: 27.97 kB / 0.6705 GB, free: 256 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1512, allocations: 47.41 kB / 0.6705 GB, free: 196 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.1514, allocations: 74.5 kB / 0.6706 GB, free: 112 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1514, allocations: 0 / 0.6706 GB, free: 112 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002616/0.1517, allocations: 101.4 kB / 0.6707 GB, free: 4 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.1517, allocations: 4 kB / 0.6707 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.644e-05/0.1517, allocations: 4.047 kB / 0.6707 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1518, allocations: 3.938 kB / 0.6707 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.1519, allocations: 16.03 kB / 0.6707 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1519, allocations: 0 / 0.6707 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.666e-05/0.152, allocations: 11.98 kB / 0.6708 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.152, allocations: 0 / 0.6708 GB, free: 15.96 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 9.686e-05/0.1521, allocations: 133.8 kB / 0.6709 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.1521, allocations: 19.72 kB / 0.6709 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.1522, allocations: 17.23 kB / 0.6709 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1522, allocations: 7.938 kB / 0.6709 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.1522, allocations: 3.938 kB / 0.6709 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1522, allocations: 4 kB / 0.6709 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.1523, allocations: 213.6 kB / 0.6711 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1524, allocations: 0 / 0.6711 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.864e-05/0.1524, allocations: 15.92 kB / 0.6711 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.1525, allocations: 4 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.1525, allocations: 7.984 kB / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1525, allocations: 3.938 kB / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1525, allocations: 0 / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.1528, allocations: 124.9 kB / 0.6713 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.1528, allocations: 88.92 kB / 0.6714 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.1528, allocations: 336 / 0.6714 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.32e-05/0.1529, allocations: 11.92 kB / 0.6714 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.153, allocations: 11.98 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.153, allocations: 4 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001631/0.1532, allocations: 192.5 kB / 0.6716 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1532, allocations: 0 / 0.6716 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002164/0.1534, allocations: 16 kB / 0.6716 GB, free: 15 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.0001925/0.1536, allocations: 133.4 kB / 0.6717 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002716/0.1539, allocations: 51.95 kB / 0.6718 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1539, allocations: 0 / 0.6718 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.154, allocations: 31.97 kB / 0.6718 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.1543, allocations: 33.97 kB / 0.6718 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.1548, allocations: 321.8 kB / 0.6721 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.1551, allocations: 0.7158 MB / 0.6728 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.294e-05/0.1551, allocations: 19.42 kB / 0.6729 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.1551, allocations: 0 / 0.6729 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.003639/0.1588, allocations: 2.119 MB / 0.6749 GB, free: 11.54 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