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.001382/0.001382, allocations: 107.5 kB / 16.27 MB, free: 5.941 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.001314/0.001314, allocations: 189.2 kB / 17.19 MB, free: 5.582 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.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7937/0.7937, allocations: 135.1 MB / 426.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 67.89 kB / 0.506 GB, free: 8.426 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3501, allocations: 80.9 MB / 0.585 GB, free: 25.21 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002582/0.3527, allocations: 1.633 MB / 0.5866 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007508/0.3535, allocations: 0.5439 MB / 0.5871 GB, free: 23.51 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.414e-05/0.3536, allocations: 3.531 kB / 0.5871 GB, free: 23.51 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.3537, allocations: 26.25 kB / 0.5872 GB, free: 23.49 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.354, allocations: 57.06 kB / 0.5872 GB, free: 23.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.3541, allocations: 70.81 kB / 0.5873 GB, free: 23.39 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.3543, allocations: 131.3 kB / 0.5874 GB, free: 23.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.3544, allocations: 49.33 kB / 0.5875 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3545, allocations: 61.73 kB / 0.5875 GB, free: 23.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.559e-05/0.3547, allocations: 64.7 kB / 0.5876 GB, free: 23.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.3547, allocations: 9.344 kB / 0.5876 GB, free: 23.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.588e-05/0.3547, allocations: 14.38 kB / 0.5876 GB, free: 23.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.427e-05/0.3548, allocations: 45.05 kB / 0.5876 GB, free: 23.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.554e-05/0.3549, allocations: 60.52 kB / 0.5877 GB, free: 23.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.3551, allocations: 149.7 kB / 0.5878 GB, free: 23.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3551, allocations: 0 / 0.5878 GB, free: 23.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3551, allocations: 0.5 kB / 0.5878 GB, free: 23.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3551, allocations: 0.5 kB / 0.5878 GB, free: 23.03 MB / 446.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.0005197/0.3556, allocations: 462.4 kB / 0.5883 GB, free: 22.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.3557, allocations: 10.8 kB / 0.5883 GB, free: 22.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.3557, allocations: 20.84 kB / 0.5883 GB, free: 22.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.3559, allocations: 243.4 kB / 0.5885 GB, free: 22.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.3559, allocations: 2.938 kB / 0.5885 GB, free: 22.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.356, allocations: 4.25 kB / 0.5885 GB, free: 22.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.3562, allocations: 114.2 kB / 0.5887 GB, free: 22.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.3562, allocations: 0 / 0.5887 GB, free: 22.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.3563, allocations: 1.625 kB / 0.5887 GB, free: 22.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3563, allocations: 1.938 kB / 0.5887 GB, free: 22.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.3565, allocations: 64.31 kB / 0.5887 GB, free: 22.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005025/0.357, allocations: 382.6 kB / 0.5891 GB, free: 21.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.3572, allocations: 46.92 kB / 0.5891 GB, free: 21.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.3573, allocations: 30.95 kB / 0.5892 GB, free: 21.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.3573, allocations: 1.125 kB / 0.5892 GB, free: 21.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.3575, allocations: 95.14 kB / 0.5893 GB, free: 21.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.793e-06/0.3576, allocations: 5.047 kB / 0.5893 GB, free: 21.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004295/0.358, allocations: 130.4 kB / 0.5894 GB, free: 21.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.358, allocations: 77.11 kB / 0.5895 GB, free: 21.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3582, allocations: 258.8 kB / 0.5897 GB, free: 21.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.3583, allocations: 25.7 kB / 0.5897 GB, free: 21.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.817e-05/0.3583, allocations: 121.3 kB / 0.5898 GB, free: 21.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.3583, allocations: 14.48 kB / 0.5899 GB, free: 21.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.3584, allocations: 12.53 kB / 0.5899 GB, free: 21.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.67e-05/0.3584, allocations: 328.6 kB / 0.5902 GB, free: 20.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3586, allocations: 27 kB / 0.5902 GB, free: 20.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.3587, allocations: 47.97 kB / 0.5903 GB, free: 20.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.3589, allocations: 70.91 kB / 0.5903 GB, free: 20.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3589, allocations: 0 / 0.5903 GB, free: 20.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002711/0.3592, allocations: 104.2 kB / 0.5904 GB, free: 20.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3592, allocations: 6.844 kB / 0.5904 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3592, allocations: 3.938 kB / 0.5904 GB, free: 20.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3592, allocations: 9.516 kB / 0.5904 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3594, allocations: 16.36 kB / 0.5905 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3594, allocations: 5.328 kB / 0.5905 GB, free: 20.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.77e-05/0.3595, allocations: 17.28 kB / 0.5905 GB, free: 20.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.3595, allocations: 5.078 kB / 0.5905 GB, free: 20.66 MB / 446.1 MB 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 7.623e-05/0.3596, allocations: 121.1 kB / 0.5906 GB, free: 20.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.3596, allocations: 21.67 kB / 0.5906 GB, free: 20.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.3596, allocations: 18.97 kB / 0.5906 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3597, allocations: 5.031 kB / 0.5906 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3597, allocations: 0 / 0.5906 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3597, allocations: 1.156 kB / 0.5906 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.3598, allocations: 217.5 kB / 0.5908 GB, free: 20.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3598, allocations: 4 kB / 0.5909 GB, free: 20.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.189e-05/0.3599, allocations: 14.83 kB / 0.5909 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3599, allocations: 4.438 kB / 0.5909 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.3599, allocations: 0 / 0.5909 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3599, allocations: 5.125 kB / 0.5909 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3599, allocations: 0 / 0.5909 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.3602, allocations: 117 kB / 0.591 GB, free: 20.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.739e-05/0.3602, allocations: 92.91 kB / 0.5911 GB, free: 20.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.3603, allocations: 8.531 kB / 0.5911 GB, free: 20.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.56e-05/0.3603, allocations: 14.92 kB / 0.5911 GB, free: 20.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.3604, allocations: 4 kB / 0.5911 GB, free: 20.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.3604, allocations: 4 kB / 0.5911 GB, free: 20 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.3605, allocations: 188.5 kB / 0.5913 GB, free: 19.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3606, allocations: 4 kB / 0.5913 GB, free: 19.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000221/0.3608, allocations: 20.03 kB / 0.5913 GB, free: 19.8 MB / 446.1 MB 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.0001906/0.361, allocations: 127 kB / 0.5914 GB, free: 19.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000278/0.3613, allocations: 61.02 kB / 0.5915 GB, free: 19.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3613, allocations: 5.703 kB / 0.5915 GB, free: 19.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.3614, allocations: 31.91 kB / 0.5915 GB, free: 19.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.3617, allocations: 55.53 kB / 0.5916 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004254/0.3621, allocations: 309.7 kB / 0.5919 GB, free: 19.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.3622, allocations: 0.7183 MB / 0.5926 GB, free: 18.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.792e-05/0.3623, allocations: 19.44 kB / 0.5926 GB, free: 18.44 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3623, allocations: 0 / 0.5926 GB, free: 18.44 MB / 446.1 MB Notification: Performance of Templates: time 0.003181/0.3655, allocations: 2.105 MB / 0.5946 GB, free: 16.39 MB / 446.1 MB 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