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.001547/0.001547, allocations: 106.7 kB / 16.27 MB, free: 6.418 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.001506/0.001506, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.351/1.351, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8258/0.8258, allocations: 135.2 MB / 426.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.89 kB / 0.506 GB, free: 8.348 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3329, allocations: 80.93 MB / 0.5851 GB, free: 25.11 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002708/0.3356, allocations: 1.627 MB / 0.5867 GB, free: 23.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007626/0.3364, allocations: 0.5392 MB / 0.5872 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.898e-05/0.3365, allocations: 8.469 kB / 0.5872 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.3367, allocations: 22.52 kB / 0.5872 GB, free: 23.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.3369, allocations: 64.36 kB / 0.5873 GB, free: 23.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.3371, allocations: 67.84 kB / 0.5873 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.3372, allocations: 126.4 kB / 0.5875 GB, free: 23.22 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.3374, allocations: 54.11 kB / 0.5875 GB, free: 23.19 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.3375, allocations: 57.38 kB / 0.5876 GB, free: 23.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.655e-05/0.3376, allocations: 65.34 kB / 0.5876 GB, free: 23.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.3376, allocations: 7.719 kB / 0.5876 GB, free: 23.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.946e-05/0.3377, allocations: 20.56 kB / 0.5877 GB, free: 23.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-05/0.3378, allocations: 48.97 kB / 0.5877 GB, free: 23.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.3378, allocations: 60.33 kB / 0.5878 GB, free: 23.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.338, allocations: 143.7 kB / 0.5879 GB, free: 22.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.338, allocations: 1.781 kB / 0.5879 GB, free: 22.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.338, allocations: 0 / 0.5879 GB, free: 22.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.338, allocations: 0.9062 kB / 0.5879 GB, free: 22.93 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.0005212/0.3386, allocations: 463.5 kB / 0.5883 GB, free: 22.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3386, allocations: 10.7 kB / 0.5883 GB, free: 22.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.3387, allocations: 25.91 kB / 0.5884 GB, free: 22.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.3389, allocations: 237.7 kB / 0.5886 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.3389, allocations: 8.062 kB / 0.5886 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.3389, allocations: 4.344 kB / 0.5886 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.3392, allocations: 109.7 kB / 0.5887 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3392, allocations: 0.6875 kB / 0.5887 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.3392, allocations: 1.219 kB / 0.5887 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3392, allocations: 6.797 kB / 0.5887 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/0.3395, allocations: 64.47 kB / 0.5888 GB, free: 22.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004944/0.34, allocations: 386.1 kB / 0.5892 GB, free: 21.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.3401, allocations: 38.38 kB / 0.5892 GB, free: 21.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3402, allocations: 30.95 kB / 0.5892 GB, free: 21.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.3402, allocations: 0.875 kB / 0.5892 GB, free: 21.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.3405, allocations: 102.2 kB / 0.5893 GB, free: 21.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3405, allocations: 0 / 0.5893 GB, free: 21.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004072/0.3409, allocations: 120.2 kB / 0.5894 GB, free: 21.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.3409, allocations: 82.2 kB / 0.5895 GB, free: 21.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.3411, allocations: 252.4 kB / 0.5898 GB, free: 21.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.3412, allocations: 27.8 kB / 0.5898 GB, free: 21.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.3412, allocations: 126.1 kB / 0.5899 GB, free: 21.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.3412, allocations: 9.344 kB / 0.5899 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.3413, allocations: 17.09 kB / 0.5899 GB, free: 21.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.3413, allocations: 332.4 kB / 0.5902 GB, free: 20.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.3414, allocations: 25.75 kB / 0.5903 GB, free: 20.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.3416, allocations: 48.22 kB / 0.5903 GB, free: 20.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.3418, allocations: 62.72 kB / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3418, allocations: 1.156 kB / 0.5904 GB, free: 20.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002585/0.3421, allocations: 108 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3421, allocations: 10.25 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3421, allocations: 1.312 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3421, allocations: 3.938 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.3422, allocations: 14.05 kB / 0.5905 GB, free: 20.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3422, allocations: 1.281 kB / 0.5905 GB, free: 20.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.699e-05/0.3423, allocations: 22.7 kB / 0.5905 GB, free: 20.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3424, allocations: 2.25 kB / 0.5905 GB, free: 20.57 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 6.88e-05/0.3424, allocations: 124.9 kB / 0.5906 GB, free: 20.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.3425, allocations: 16.19 kB / 0.5907 GB, free: 20.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.3425, allocations: 24.23 kB / 0.5907 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3425, allocations: 5.25 kB / 0.5907 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3425, allocations: 0 / 0.5907 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.3425, allocations: 1.469 kB / 0.5907 GB, free: 20.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001135/0.3426, allocations: 212.5 kB / 0.5909 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3426, allocations: 9.062 kB / 0.5909 GB, free: 20.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.628e-05/0.3427, allocations: 11.08 kB / 0.5909 GB, free: 20.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3427, allocations: 1.062 kB / 0.5909 GB, free: 20.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.3427, allocations: 0 / 0.5909 GB, free: 20.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3428, allocations: 9.922 kB / 0.5909 GB, free: 20.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3428, allocations: 0 / 0.5909 GB, free: 20.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.343, allocations: 123.8 kB / 0.591 GB, free: 20.06 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.594e-05/0.3431, allocations: 88.92 kB / 0.5911 GB, free: 19.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.3431, allocations: 0 / 0.5911 GB, free: 19.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.962e-05/0.3432, allocations: 20.8 kB / 0.5911 GB, free: 19.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.3432, allocations: 5.375 kB / 0.5912 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3432, allocations: 4 kB / 0.5912 GB, free: 19.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001174/0.3434, allocations: 194 kB / 0.5913 GB, free: 19.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3434, allocations: 0 / 0.5913 GB, free: 19.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002123/0.3436, allocations: 24.03 kB / 0.5914 GB, free: 19.71 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.0001935/0.3438, allocations: 129.4 kB / 0.5915 GB, free: 19.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002727/0.3441, allocations: 55.89 kB / 0.5915 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3441, allocations: 0 / 0.5915 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3442, allocations: 31.91 kB / 0.5916 GB, free: 19.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.3445, allocations: 44.58 kB / 0.5916 GB, free: 19.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.3449, allocations: 320.2 kB / 0.5919 GB, free: 19.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.345, allocations: 0.7142 MB / 0.5926 GB, free: 18.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.763e-05/0.3451, allocations: 27.36 kB / 0.5926 GB, free: 18.36 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3451, allocations: 0 / 0.5926 GB, free: 18.36 MB / 446.1 MB Notification: Performance of Templates: time 0.003222/0.3483, allocations: 2.107 MB / 0.5947 GB, free: 16.31 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