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.001155/0.001155, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 182.9 kB / 16.92 MB, free: 6.672 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.359/1.359, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9267/0.9267, allocations: 135.3 MB / 427.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003323, allocations: 11.98 kB / 0.5082 GB, free: 4.801 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 82.31 MB / 0.5886 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001796/0.143, allocations: 1.34 MB / 0.5899 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007883/0.1438, allocations: 0.5262 MB / 0.5904 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.838e-05/0.1439, allocations: 3.938 kB / 0.5904 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.144, allocations: 23.91 kB / 0.5905 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.1443, allocations: 55.75 kB / 0.5905 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.1444, allocations: 55.88 kB / 0.5906 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.1446, allocations: 131.6 kB / 0.5907 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1447, allocations: 45.47 kB / 0.5907 GB, free: 468 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1449, allocations: 47.72 kB / 0.5908 GB, free: 420 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.09e-05/0.145, allocations: 51.7 kB / 0.5908 GB, free: 368 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.145, allocations: 4 kB / 0.5908 GB, free: 364 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.955e-05/0.145, allocations: 12 kB / 0.5909 GB, free: 352 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.1451, allocations: 39.83 kB / 0.5909 GB, free: 312 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.31e-05/0.1452, allocations: 85.25 kB / 0.591 GB, free: 220 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1453, allocations: 100 kB / 0.5911 GB, free: 120 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1454, allocations: 7.984 kB / 0.5911 GB, free: 112 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1454, allocations: 0 / 0.5911 GB, free: 112 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1454, allocations: 0 / 0.5911 GB, free: 112 kB / 494.1 MB 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.0005502/0.1459, allocations: 442.7 kB / 0.5915 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.146, allocations: 12.03 kB / 0.5915 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.146, allocations: 20.75 kB / 0.5915 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.1463, allocations: 236.8 kB / 0.5918 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1463, allocations: 8.375 kB / 0.5918 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1463, allocations: 4.375 kB / 0.5918 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.1466, allocations: 121.9 kB / 0.5919 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1466, allocations: 4 kB / 0.5919 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1466, allocations: 0 / 0.5919 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1466, allocations: 4 kB / 0.5919 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.1469, allocations: 75.94 kB / 0.592 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.1475, allocations: 388.5 kB / 0.5923 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.1476, allocations: 54.48 kB / 0.5924 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1478, allocations: 40.83 kB / 0.5924 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.1478, allocations: 0 / 0.5924 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.148, allocations: 105 kB / 0.5925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.148, allocations: 0 / 0.5925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004653/0.1485, allocations: 149.3 kB / 0.5927 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.1486, allocations: 81.11 kB / 0.5927 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.1488, allocations: 256.9 kB / 0.593 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.1489, allocations: 29.7 kB / 0.593 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.263e-05/0.1489, allocations: 128 kB / 0.5931 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.149, allocations: 15.89 kB / 0.5932 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.149, allocations: 9.719 kB / 0.5932 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1491, allocations: 326.8 kB / 0.5935 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1492, allocations: 27.97 kB / 0.5935 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1494, allocations: 59.41 kB / 0.5936 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.1496, allocations: 82.5 kB / 0.5936 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1496, allocations: 0 / 0.5936 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003033/0.1499, allocations: 121.4 kB / 0.5938 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.15, allocations: 5.719 kB / 0.5938 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.15, allocations: 0 / 0.5938 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.15, allocations: 7.938 kB / 0.5938 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.1501, allocations: 20.08 kB / 0.5938 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1501, allocations: 0 / 0.5938 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.239e-05/0.1502, allocations: 15.98 kB / 0.5938 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1502, allocations: 288 / 0.5938 GB, free: 13.05 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.0001041/0.1503, allocations: 129.8 kB / 0.5939 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.1504, allocations: 23.7 kB / 0.5939 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.1504, allocations: 21.23 kB / 0.594 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1504, allocations: 3.938 kB / 0.594 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1504, allocations: 0 / 0.594 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1504, allocations: 4 kB / 0.594 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.1506, allocations: 225.5 kB / 0.5942 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1506, allocations: 0 / 0.5942 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.482e-05/0.1507, allocations: 15.98 kB / 0.5942 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1507, allocations: 0 / 0.5942 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.1507, allocations: 4 kB / 0.5942 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1508, allocations: 3.938 kB / 0.5942 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1508, allocations: 0 / 0.5942 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.1511, allocations: 136.9 kB / 0.5943 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.1511, allocations: 96.91 kB / 0.5944 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.1512, allocations: 0 / 0.5944 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.781e-05/0.1513, allocations: 15.92 kB / 0.5945 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.1513, allocations: 7.938 kB / 0.5945 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.1513, allocations: 15.92 kB / 0.5945 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001673/0.1515, allocations: 192.5 kB / 0.5947 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1515, allocations: 0 / 0.5947 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002275/0.1518, allocations: 23.92 kB / 0.5947 GB, free: 12.05 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.0001947/0.152, allocations: 110 kB / 0.5948 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002904/0.1523, allocations: 75.94 kB / 0.5949 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1523, allocations: 0 / 0.5949 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.1524, allocations: 44.09 kB / 0.5949 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1527, allocations: 32.41 kB / 0.5949 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005263/0.1532, allocations: 363.7 kB / 0.5953 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.1535, allocations: 0.7121 MB / 0.596 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.1536, allocations: 23.42 kB / 0.596 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of SimCode: time 3.7e-07/0.1536, allocations: 4 kB / 0.596 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of Templates: time 0.003698/0.1573, allocations: 2.089 MB / 0.598 GB, free: 8.574 MB / 0.4981 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++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/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