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.001327/0.001327, allocations: 106.6 kB / 16.41 MB, free: 6.52 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.001298/0.001298, allocations: 187 kB / 17.34 MB, free: 5.734 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8522/0.8522, allocations: 135.2 MB / 426.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.38 kB / 0.5863 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1578, allocations: 80.92 MB / 0.6653 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002976/0.1608, allocations: 1.639 MB / 0.6669 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009529/0.1618, allocations: 0.5416 MB / 0.6675 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.117e-05/0.1618, allocations: 7.938 kB / 0.6675 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.162, allocations: 27.78 kB / 0.6675 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.1622, allocations: 63.67 kB / 0.6676 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.1624, allocations: 63.86 kB / 0.6676 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.1626, allocations: 135.5 kB / 0.6677 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1627, allocations: 41.47 kB / 0.6678 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1629, allocations: 59.77 kB / 0.6678 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.163, allocations: 63.7 kB / 0.6679 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.163, allocations: 8 kB / 0.6679 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.351e-05/0.1631, allocations: 24 kB / 0.6679 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.1632, allocations: 43.83 kB / 0.668 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.515e-05/0.1632, allocations: 59.55 kB / 0.668 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.1635, allocations: 147.2 kB / 0.6682 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1635, allocations: 0 / 0.6682 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1635, allocations: 0 / 0.6682 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.1635, allocations: 0 / 0.6682 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.0007056/0.1642, allocations: 482.4 kB / 0.6686 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1642, allocations: 17.09 kB / 0.6686 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.1643, allocations: 16.84 kB / 0.6687 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.1646, allocations: 240.9 kB / 0.6689 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1646, allocations: 4.375 kB / 0.6689 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.1646, allocations: 8.375 kB / 0.6689 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.1649, allocations: 117.4 kB / 0.669 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1649, allocations: 0 / 0.669 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.165, allocations: 7.938 kB / 0.669 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.165, allocations: 4 kB / 0.669 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.1652, allocations: 59.94 kB / 0.6691 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.1658, allocations: 384.5 kB / 0.6695 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.166, allocations: 38.55 kB / 0.6695 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1661, allocations: 24.91 kB / 0.6695 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.1661, allocations: 4 kB / 0.6695 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.1663, allocations: 101.1 kB / 0.6696 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1663, allocations: 0 / 0.6696 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004583/0.1668, allocations: 125.4 kB / 0.6697 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.1668, allocations: 85.05 kB / 0.6698 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.1671, allocations: 261 kB / 0.6701 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.1671, allocations: 29.7 kB / 0.6701 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.1672, allocations: 120.1 kB / 0.6702 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.1672, allocations: 11.84 kB / 0.6702 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.1673, allocations: 21.7 kB / 0.6702 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1674, allocations: 322.8 kB / 0.6705 GB, free: 268 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.1676, allocations: 27.97 kB / 0.6706 GB, free: 240 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.1677, allocations: 51.59 kB / 0.6706 GB, free: 176 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/0.1679, allocations: 70.5 kB / 0.6707 GB, free: 96 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1679, allocations: 0 / 0.6707 GB, free: 96 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003087/0.1682, allocations: 101.6 kB / 0.6708 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1682, allocations: 9.656 kB / 0.6708 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1682, allocations: 7.984 kB / 0.6708 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1683, allocations: 3.938 kB / 0.6708 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.1684, allocations: 11.94 kB / 0.6708 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1684, allocations: 4.094 kB / 0.6708 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.625e-05/0.1685, allocations: 15.92 kB / 0.6708 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1685, allocations: 0 / 0.6708 GB, free: 15.94 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 0.0001128/0.1686, allocations: 129.8 kB / 0.671 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.731e-05/0.1686, allocations: 19.86 kB / 0.671 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.1687, allocations: 21.23 kB / 0.671 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1687, allocations: 3.938 kB / 0.671 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1687, allocations: 0 / 0.671 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1687, allocations: 4 kB / 0.671 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.1689, allocations: 213.6 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1689, allocations: 4 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.007e-05/0.169, allocations: 7.984 kB / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.169, allocations: 4 kB / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.169, allocations: 0 / 0.6712 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.169, allocations: 3.938 kB / 0.6712 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.169, allocations: 0 / 0.6712 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.1693, allocations: 128.9 kB / 0.6714 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.203e-05/0.1693, allocations: 93.02 kB / 0.6714 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.1694, allocations: 3.984 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.484e-05/0.1695, allocations: 11.94 kB / 0.6715 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.1695, allocations: 7.984 kB / 0.6715 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1695, allocations: 4 kB / 0.6715 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001914/0.1697, allocations: 188.5 kB / 0.6717 GB, free: 15 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.1697, allocations: 4 kB / 0.6717 GB, free: 15 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002259/0.1699, allocations: 23.89 kB / 0.6717 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.0002366/0.1702, allocations: 115.2 kB / 0.6718 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002911/0.1705, allocations: 55.88 kB / 0.6718 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1705, allocations: 3.984 kB / 0.6718 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.1706, allocations: 27.92 kB / 0.6719 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.0002872/0.1709, allocations: 42.27 kB / 0.6719 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005771/0.1715, allocations: 321.9 kB / 0.6722 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.1718, allocations: 0.7275 MB / 0.6729 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.822e-05/0.1719, allocations: 15.44 kB / 0.6729 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of SimCode: time 4.71e-07/0.1719, allocations: 0 / 0.6729 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of Templates: time 0.004247/0.1761, allocations: 2.12 MB / 0.675 GB, free: 11.51 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