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.001314/0.001314, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001444/0.001444, allocations: 217.8 kB / 23.01 MB, free: 4.566 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.227 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.8574/0.8574, allocations: 134 MB / 447.2 MB, free: 10.27 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.002026/0.002026, allocations: 62.47 kB / 0.6197 GB, free: 6.758 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1675, allocations: 85.91 MB / 0.7036 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00316/0.1706, allocations: 1.679 MB / 0.7053 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.1718, allocations: 0.6233 MB / 0.7059 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.1719, allocations: 3.938 kB / 0.7059 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.172, allocations: 35.72 kB / 0.7059 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.1723, allocations: 63.67 kB / 0.706 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.1725, allocations: 75.84 kB / 0.7061 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.1727, allocations: 131.6 kB / 0.7062 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.1729, allocations: 45.58 kB / 0.7062 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.1731, allocations: 63.72 kB / 0.7063 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.1732, allocations: 63.69 kB / 0.7064 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.1733, allocations: 8 kB / 0.7064 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.676e-05/0.1733, allocations: 27.98 kB / 0.7064 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1735, allocations: 51.77 kB / 0.7064 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.879e-05/0.1735, allocations: 55.61 kB / 0.7065 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002743/0.1738, allocations: 151.3 kB / 0.7066 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1738, allocations: 0 / 0.7066 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.683e-06/0.1738, allocations: 4 kB / 0.7066 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.1738, allocations: 0 / 0.7066 GB, free: 13.84 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.0007429/0.1746, allocations: 401.3 kB / 0.707 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1746, allocations: 15.97 kB / 0.707 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.1748, allocations: 28.78 kB / 0.7071 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.1752, allocations: 190.1 kB / 0.7072 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.1753, allocations: 4.375 kB / 0.7072 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.1753, allocations: 4.375 kB / 0.7073 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.1756, allocations: 117.9 kB / 0.7074 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1756, allocations: 0 / 0.7074 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.1756, allocations: 0 / 0.7074 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1756, allocations: 4 kB / 0.7074 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.1759, allocations: 74.8 kB / 0.7074 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.1766, allocations: 351.6 kB / 0.7078 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.1767, allocations: 38.55 kB / 0.7078 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1768, allocations: 28.89 kB / 0.7078 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1768, allocations: 4 kB / 0.7078 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.1771, allocations: 97.03 kB / 0.7079 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1771, allocations: 0 / 0.7079 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004318/0.1775, allocations: 121.5 kB / 0.7081 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.1776, allocations: 81.11 kB / 0.7081 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.1778, allocations: 260.9 kB / 0.7084 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.1779, allocations: 25.7 kB / 0.7084 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.905e-05/0.1779, allocations: 120.1 kB / 0.7085 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.178, allocations: 19.89 kB / 0.7085 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.178, allocations: 9.719 kB / 0.7085 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1782, allocations: 334.8 kB / 0.7089 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1783, allocations: 23.97 kB / 0.7089 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.1784, allocations: 51.34 kB / 0.7089 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.1786, allocations: 66.56 kB / 0.709 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1786, allocations: 0 / 0.709 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002782/0.1789, allocations: 97.48 kB / 0.7091 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.1789, allocations: 8.094 kB / 0.7091 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1789, allocations: 4 kB / 0.7091 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1789, allocations: 7.922 kB / 0.7091 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.179, allocations: 15.92 kB / 0.7091 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.179, allocations: 4 kB / 0.7091 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.26e-05/0.1791, allocations: 19.86 kB / 0.7092 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.1791, allocations: 4 kB / 0.7092 GB, free: 11.04 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.0001127/0.1792, allocations: 121.8 kB / 0.7093 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.1793, allocations: 19.86 kB / 0.7093 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.1793, allocations: 25.34 kB / 0.7093 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1793, allocations: 3.938 kB / 0.7093 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.1793, allocations: 0 / 0.7093 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1793, allocations: 3.984 kB / 0.7093 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.1795, allocations: 192.6 kB / 0.7095 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1795, allocations: 0 / 0.7095 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.181e-05/0.1796, allocations: 11.98 kB / 0.7095 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1796, allocations: 288 / 0.7095 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1796, allocations: 0 / 0.7095 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.1796, allocations: 3.938 kB / 0.7095 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1796, allocations: 4 kB / 0.7095 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002855/0.1799, allocations: 124.9 kB / 0.7096 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.531e-05/0.1799, allocations: 23.84 kB / 0.7097 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.1799, allocations: 4 kB / 0.7097 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.512e-05/0.18, allocations: 11.92 kB / 0.7097 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.1801, allocations: 8 kB / 0.7097 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.1801, allocations: 7.984 kB / 0.7097 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001787/0.1803, allocations: 188.5 kB / 0.7099 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1803, allocations: 0 / 0.7099 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002273/0.1805, allocations: 16 kB / 0.7099 GB, free: 10.22 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.0002383/0.1807, allocations: 129.7 kB / 0.71 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002834/0.181, allocations: 55.88 kB / 0.7101 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.181, allocations: 0 / 0.7101 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.1811, allocations: 27.97 kB / 0.7101 GB, free: 10 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.1814, allocations: 45.12 kB / 0.7101 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005715/0.182, allocations: 318.6 kB / 0.7104 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1824, allocations: 0.7273 MB / 0.7112 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.1824, allocations: 19.42 kB / 0.7112 GB, free: 8.84 MB / 0.5294 GB Notification: Performance of SimCode: time 3.5e-07/0.1824, allocations: 3.938 kB / 0.7112 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of Templates: time 0.004475/0.1869, allocations: 2.135 MB / 0.7133 GB, free: 6.711 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 -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/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: 5.018767542904243] Failed to read output from testmodel.py, exit status != 0: 0.19459114992059767 0.20977236899999996 0.03287927999999994 Calling exit ...