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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 222.8 kB / 23 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8323/0.8323, allocations: 134 MB / 447.2 MB, free: 9.957 MB / 350.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 62.47 kB / 0.6197 GB, free: 6.445 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1595, allocations: 85.91 MB / 0.7036 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003047/0.1625, allocations: 1.638 MB / 0.7052 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.1636, allocations: 0.5844 MB / 0.7057 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.086e-05/0.1636, allocations: 3.938 kB / 0.7058 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1638, allocations: 35.72 kB / 0.7058 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.164, allocations: 55.75 kB / 0.7058 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.1643, allocations: 79.83 kB / 0.7059 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001985/0.1645, allocations: 139.5 kB / 0.706 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.1646, allocations: 33.61 kB / 0.7061 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1648, allocations: 63.7 kB / 0.7061 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.1649, allocations: 63.69 kB / 0.7062 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.1649, allocations: 8 kB / 0.7062 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.376e-05/0.165, allocations: 27.98 kB / 0.7062 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.118e-05/0.1651, allocations: 47.83 kB / 0.7063 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.632e-05/0.1651, allocations: 47.61 kB / 0.7063 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.1653, allocations: 151.4 kB / 0.7065 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1654, allocations: 0 / 0.7065 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1654, allocations: 4 kB / 0.7065 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.198e-06/0.1654, allocations: 0 / 0.7065 GB, free: 13.64 MB / 0.5294 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.0006225/0.166, allocations: 405.2 kB / 0.7069 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.166, allocations: 8.031 kB / 0.7069 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1662, allocations: 32.78 kB / 0.7069 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.1665, allocations: 182.2 kB / 0.7071 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1665, allocations: 8.312 kB / 0.7071 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.1665, allocations: 8.375 kB / 0.7071 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1668, allocations: 165.3 kB / 0.7072 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1668, allocations: 0 / 0.7072 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.1669, allocations: 3.938 kB / 0.7073 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1669, allocations: 0 / 0.7073 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.1671, allocations: 63.94 kB / 0.7073 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.1676, allocations: 308.3 kB / 0.7076 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.1678, allocations: 42.56 kB / 0.7076 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.1679, allocations: 24.89 kB / 0.7077 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.1679, allocations: 4 kB / 0.7077 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1682, allocations: 148.5 kB / 0.7078 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1682, allocations: 0 / 0.7078 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004247/0.1686, allocations: 125.4 kB / 0.7079 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.1686, allocations: 81.05 kB / 0.708 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.1689, allocations: 244 kB / 0.7082 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.1689, allocations: 25.7 kB / 0.7083 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.169, allocations: 128.1 kB / 0.7084 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.169, allocations: 19.81 kB / 0.7084 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.173e-05/0.1691, allocations: 17.72 kB / 0.7084 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1692, allocations: 326.8 kB / 0.7087 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.1693, allocations: 23.97 kB / 0.7088 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.1695, allocations: 81.11 kB / 0.7088 GB, free: 11 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.1697, allocations: 66.47 kB / 0.7089 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1697, allocations: 0 / 0.7089 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002753/0.17, allocations: 105.5 kB / 0.709 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.17, allocations: 4 kB / 0.709 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.17, allocations: 4 kB / 0.709 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.17, allocations: 0 / 0.709 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.1701, allocations: 11.98 kB / 0.709 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1701, allocations: 7.922 kB / 0.709 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.31e-05/0.1702, allocations: 11.94 kB / 0.709 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1702, allocations: 8.078 kB / 0.709 GB, free: 10.77 MB / 0.5294 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.0001349/0.1703, allocations: 125.8 kB / 0.7092 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.1704, allocations: 19.89 kB / 0.7092 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1704, allocations: 13.03 kB / 0.7092 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1704, allocations: 0 / 0.7092 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1704, allocations: 7.938 kB / 0.7092 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1704, allocations: 0 / 0.7092 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.1706, allocations: 149.3 kB / 0.7094 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1706, allocations: 0 / 0.7094 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.98e-05/0.1707, allocations: 11.98 kB / 0.7094 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1707, allocations: 7.938 kB / 0.7094 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.1707, allocations: 4 kB / 0.7094 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1707, allocations: 0 / 0.7094 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1707, allocations: 0 / 0.7094 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003198/0.171, allocations: 132.8 kB / 0.7095 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.171, allocations: 12.27 kB / 0.7095 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.1711, allocations: 4 kB / 0.7095 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.916e-05/0.1711, allocations: 7.984 kB / 0.7095 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.1712, allocations: 7.938 kB / 0.7095 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.053e-05/0.1712, allocations: 15.97 kB / 0.7095 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001922/0.1714, allocations: 177.6 kB / 0.7097 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.1714, allocations: 0 / 0.7097 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002469/0.1717, allocations: 27.89 kB / 0.7097 GB, free: 10 MB / 0.5294 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.0002916/0.172, allocations: 124.6 kB / 0.7099 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.1723, allocations: 51.89 kB / 0.7099 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1723, allocations: 0 / 0.7099 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.1724, allocations: 27.97 kB / 0.7099 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.1727, allocations: 41.5 kB / 0.71 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006493/0.1734, allocations: 326.7 kB / 0.7103 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.1735, allocations: 117.9 kB / 0.7104 GB, free: 9.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.69e-05/0.1735, allocations: 15.44 kB / 0.7104 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of SimCode: time 4.2e-07/0.1735, allocations: 0 / 0.7104 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of Templates: time 0.004168/0.1777, allocations: 2.119 MB / 0.7125 GB, free: 7.141 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] 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 -DOMC_BUILD -DUSE_THREAD -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 [Calling os._exit(0), Time elapsed: 4.777114603668451] Failed to read output from testmodel.py, exit status != 0: 0.18534834496676922 0.20123459300000002 0.032761746 Calling exit ...