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.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/package.mo", uses=false) 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.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_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001071/0.001071, allocations: 108.7 kB / 16.41 MB, free: 6.488 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.001143/0.001143, allocations: 183 kB / 17.34 MB, free: 5.766 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7995/0.7995, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001887, allocations: 67.8 kB / 0.582 GB, free: 23.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1514, allocations: 80.21 MB / 0.6603 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00278/0.1542, allocations: 1.63 MB / 0.6619 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008703/0.1551, allocations: 0.5494 MB / 0.6624 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.1552, allocations: 0 / 0.6624 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.1554, allocations: 35.72 kB / 0.6625 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002546/0.1556, allocations: 63.67 kB / 0.6625 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.1558, allocations: 63.86 kB / 0.6626 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.156, allocations: 131.5 kB / 0.6627 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.1561, allocations: 61.42 kB / 0.6628 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.1562, allocations: 51.78 kB / 0.6628 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.1564, allocations: 63.69 kB / 0.6629 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.1564, allocations: 8 kB / 0.6629 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.682e-05/0.1565, allocations: 20 kB / 0.6629 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.991e-05/0.1566, allocations: 51.77 kB / 0.663 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.398e-05/0.1566, allocations: 59.61 kB / 0.663 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.1568, allocations: 147.4 kB / 0.6632 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1569, allocations: 0 / 0.6632 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.743e-06/0.1569, allocations: 0 / 0.6632 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.1569, allocations: 0 / 0.6632 GB, free: 7.336 MB / 0.4981 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.000629/0.1575, allocations: 470.6 kB / 0.6636 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1575, allocations: 12.03 kB / 0.6636 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.53e-05/0.1576, allocations: 24.73 kB / 0.6636 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.1579, allocations: 236.8 kB / 0.6639 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1579, allocations: 4.375 kB / 0.6639 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.1579, allocations: 8.375 kB / 0.6639 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.1582, allocations: 113.9 kB / 0.664 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1582, allocations: 4 kB / 0.664 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.1582, allocations: 4 kB / 0.664 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1582, allocations: 0 / 0.664 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.1585, allocations: 59.94 kB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005321/0.159, allocations: 380.4 kB / 0.6644 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.1592, allocations: 46.55 kB / 0.6645 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1593, allocations: 24.91 kB / 0.6645 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.1593, allocations: 0 / 0.6645 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.1595, allocations: 105 kB / 0.6646 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1595, allocations: 0 / 0.6646 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004276/0.16, allocations: 121.4 kB / 0.6647 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.16, allocations: 77.11 kB / 0.6648 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.1603, allocations: 253 kB / 0.665 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.1603, allocations: 25.7 kB / 0.665 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.1604, allocations: 140 kB / 0.6652 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.1604, allocations: 3.906 kB / 0.6652 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.1604, allocations: 17.7 kB / 0.6652 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1606, allocations: 326.8 kB / 0.6655 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1607, allocations: 23.97 kB / 0.6655 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1608, allocations: 59.28 kB / 0.6656 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.161, allocations: 66.53 kB / 0.6656 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.161, allocations: 0 / 0.6656 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002761/0.1613, allocations: 105.4 kB / 0.6658 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.1613, allocations: 4 kB / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1613, allocations: 0 / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1614, allocations: 7.938 kB / 0.6658 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1615, allocations: 11.98 kB / 0.6658 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.1615, allocations: 3.938 kB / 0.6658 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.886e-05/0.1616, allocations: 16.08 kB / 0.6658 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-06/0.1616, allocations: 4 kB / 0.6658 GB, free: 4.371 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 9.246e-05/0.1617, allocations: 141.9 kB / 0.6659 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.1617, allocations: 19.72 kB / 0.666 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.105e-05/0.1618, allocations: 21.22 kB / 0.666 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1618, allocations: 3.938 kB / 0.666 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1618, allocations: 4 kB / 0.666 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1618, allocations: 0 / 0.666 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.1619, allocations: 213.6 kB / 0.6662 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.162, allocations: 4 kB / 0.6662 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.162, allocations: 11.98 kB / 0.6662 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.162, allocations: 0 / 0.6662 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.1621, allocations: 0 / 0.6662 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1621, allocations: 3.938 kB / 0.6662 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1621, allocations: 4 kB / 0.6662 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.1624, allocations: 124.8 kB / 0.6663 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.1624, allocations: 88.92 kB / 0.6664 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.1625, allocations: 4 kB / 0.6664 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.73e-05/0.1626, allocations: 11.92 kB / 0.6664 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1626, allocations: 7.984 kB / 0.6664 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1626, allocations: 4 kB / 0.6664 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001614/0.1628, allocations: 192.5 kB / 0.6666 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1628, allocations: 0 / 0.6666 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002162/0.163, allocations: 16 kB / 0.6666 GB, free: 3.418 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.0001883/0.1632, allocations: 126.1 kB / 0.6668 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002867/0.1635, allocations: 59.94 kB / 0.6668 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1635, allocations: 0 / 0.6668 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.1636, allocations: 23.98 kB / 0.6668 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.1639, allocations: 46.36 kB / 0.6669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004774/0.1644, allocations: 305.7 kB / 0.6672 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.1647, allocations: 0.7237 MB / 0.6679 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.1647, allocations: 15.44 kB / 0.6679 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1647, allocations: 0 / 0.6679 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of Templates: time 0.003773/0.1685, allocations: 2.128 MB / 0.67 GB, free: 15.96 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile 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