Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001165/0.001165, allocations: 109.5 kB / 16.41 MB, free: 6.453 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.001111/0.001111, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.33/1.33, 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/package.mo): time 0.7811/0.7811, allocations: 132.2 MB / 423.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 72.28 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1421, allocations: 80.22 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002686/0.1448, allocations: 1.624 MB / 0.6619 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008726/0.1457, allocations: 0.5416 MB / 0.6624 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.845e-05/0.1458, allocations: 7.938 kB / 0.6624 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.146, allocations: 31.78 kB / 0.6625 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1462, allocations: 71.66 kB / 0.6625 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.1464, allocations: 67.8 kB / 0.6626 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000178/0.1466, allocations: 127.5 kB / 0.6627 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.1467, allocations: 45.45 kB / 0.6628 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1468, allocations: 67.75 kB / 0.6628 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.147, allocations: 59.72 kB / 0.6629 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.147, allocations: 8 kB / 0.6629 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.274e-05/0.1471, allocations: 23.97 kB / 0.6629 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.882e-05/0.1471, allocations: 43.84 kB / 0.663 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.397e-05/0.1472, allocations: 59.59 kB / 0.663 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.1474, allocations: 151.3 kB / 0.6632 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1474, allocations: 0 / 0.6632 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.41e-07/0.1474, allocations: 0 / 0.6632 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.1475, allocations: 0 / 0.6632 GB, free: 7.363 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.0006381/0.1481, allocations: 470.7 kB / 0.6636 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1481, allocations: 12.03 kB / 0.6636 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/0.1482, allocations: 16.75 kB / 0.6636 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.1485, allocations: 240.8 kB / 0.6639 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1485, allocations: 4.312 kB / 0.6639 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.1485, allocations: 8.375 kB / 0.6639 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.1488, allocations: 110 kB / 0.664 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1488, allocations: 0 / 0.664 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.1488, allocations: 3.984 kB / 0.664 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1488, allocations: 4 kB / 0.664 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002183/0.1491, allocations: 67.88 kB / 0.6641 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.1496, allocations: 384.5 kB / 0.6644 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.1498, allocations: 38.5 kB / 0.6645 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.1499, allocations: 32.89 kB / 0.6645 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.1499, allocations: 0 / 0.6645 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.1501, allocations: 101.1 kB / 0.6646 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1501, allocations: 0 / 0.6646 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000414/0.1506, allocations: 129.3 kB / 0.6647 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.1506, allocations: 81.11 kB / 0.6648 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.1509, allocations: 249 kB / 0.665 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.1509, allocations: 25.7 kB / 0.665 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.151, allocations: 132 kB / 0.6652 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.151, allocations: 7.906 kB / 0.6652 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.151, allocations: 13.72 kB / 0.6652 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1511, allocations: 330.8 kB / 0.6655 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1512, allocations: 31.97 kB / 0.6655 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.1514, allocations: 47.41 kB / 0.6656 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.1516, allocations: 70.5 kB / 0.6656 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1516, allocations: 3.938 kB / 0.6657 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002576/0.1518, allocations: 97.39 kB / 0.6657 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.1519, allocations: 8 kB / 0.6658 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1519, allocations: 0 / 0.6658 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1519, allocations: 4.031 kB / 0.6658 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.152, allocations: 19.98 kB / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.152, allocations: 0 / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.134e-05/0.1521, allocations: 11.98 kB / 0.6658 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.1521, allocations: 4 kB / 0.6658 GB, free: 4.398 MB / 0.4981 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.0001025/0.1522, allocations: 129.7 kB / 0.6659 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1523, allocations: 27.59 kB / 0.6659 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.506e-05/0.1523, allocations: 25.23 kB / 0.666 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1523, allocations: 7.938 kB / 0.666 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1523, allocations: 0 / 0.666 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1523, allocations: 0 / 0.666 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.1525, allocations: 213.6 kB / 0.6662 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1525, allocations: 0 / 0.6662 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.671e-05/0.1526, allocations: 15.98 kB / 0.6662 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1526, allocations: 0 / 0.6662 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.1526, allocations: 3.984 kB / 0.6662 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1526, allocations: 3.938 kB / 0.6662 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1526, allocations: 0 / 0.6662 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.1529, allocations: 120.9 kB / 0.6663 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.1529, allocations: 88.92 kB / 0.6664 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.153, allocations: 4 kB / 0.6664 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.353e-05/0.1531, allocations: 15.92 kB / 0.6664 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.1531, allocations: 3.984 kB / 0.6664 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1531, allocations: 7.938 kB / 0.6664 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001493/0.1533, allocations: 196.5 kB / 0.6666 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1533, allocations: 0 / 0.6666 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000218/0.1535, allocations: 20 kB / 0.6666 GB, free: 3.438 MB / 0.4981 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.0001946/0.1537, allocations: 118.2 kB / 0.6667 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.154, allocations: 55.95 kB / 0.6668 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.154, allocations: 4 kB / 0.6668 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.1541, allocations: 31.91 kB / 0.6668 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.1544, allocations: 47.27 kB / 0.6669 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004989/0.1549, allocations: 313.9 kB / 0.6672 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.1552, allocations: 0.7119 MB / 0.6679 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.1552, allocations: 23.42 kB / 0.6679 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1552, allocations: 0 / 0.6679 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of Templates: time 0.00363/0.1589, allocations: 2.131 MB / 0.67 GB, free: 15.97 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f IDEAS_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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Resources/C-Sources/jsonWriterInit.c:9: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/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/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/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/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/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/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/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_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriterFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/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/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_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppIDEAS_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/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_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1