Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.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.001478/0.001478, allocations: 112.5 kB / 16.41 MB, free: 6.477 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.001429/0.00143, allocations: 183 kB / 17.34 MB, free: 5.754 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.566/2.566, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.89 kB / 1.055 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8908/0.8921, allocations: 157.4 MB / 1.208 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003284/0.8954, allocations: 1.648 MB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.8964, allocations: 0.5339 MB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.8966, allocations: 7.938 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.8968, allocations: 27.78 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.8971, allocations: 67.67 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002006/0.8973, allocations: 67.84 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.8976, allocations: 127.5 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.8977, allocations: 45.48 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.8979, allocations: 55.77 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.898, allocations: 63.7 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.8981, allocations: 8 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.035e-05/0.8982, allocations: 23.97 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.8983, allocations: 43.84 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.572e-05/0.8984, allocations: 59.59 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003226/0.8987, allocations: 155.2 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.8987, allocations: 3.938 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.995e-06/0.8987, allocations: 0 / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.088e-05/0.8988, allocations: 4 kB / 1.211 GB, free: 10.62 MB / 0.9356 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.0009167/0.8997, allocations: 460.5 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.8997, allocations: 8.031 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.48e-05/0.8998, allocations: 24.69 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.9003, allocations: 236.8 kB / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.9003, allocations: 4.375 kB / 1.212 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.9003, allocations: 8.375 kB / 1.212 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.9007, allocations: 109.9 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.9007, allocations: 0 / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.9007, allocations: 7.938 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.9008, allocations: 4 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.901, allocations: 63.88 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.9018, allocations: 388.4 kB / 1.213 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.902, allocations: 38.56 kB / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.9021, allocations: 28.89 kB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.9022, allocations: 8 kB / 1.213 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.9025, allocations: 93.08 kB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.9025, allocations: 0 / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005321/0.903, allocations: 125.3 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.9031, allocations: 85.09 kB / 1.213 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.9035, allocations: 245 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.9035, allocations: 29.7 kB / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.9036, allocations: 132 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.9037, allocations: 3.906 kB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.9037, allocations: 13.72 kB / 1.213 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.9039, allocations: 334.8 kB / 1.214 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.904, allocations: 27.98 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.9042, allocations: 47.41 kB / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.9044, allocations: 74.48 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.9044, allocations: 0 / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003095/0.9047, allocations: 101.4 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.9048, allocations: 4 kB / 1.214 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.9048, allocations: 4 kB / 1.214 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.9048, allocations: 8.031 kB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.905, allocations: 11.98 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.905, allocations: 0 / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.9051, allocations: 19.83 kB / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.9051, allocations: 0 / 1.214 GB, free: 7.672 MB / 0.9356 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.0001599/0.9053, allocations: 133.8 kB / 1.214 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.9053, allocations: 15.81 kB / 1.214 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.028e-05/0.9054, allocations: 25.17 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.9054, allocations: 7.938 kB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/0.9054, allocations: 0 / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.9054, allocations: 3.938 kB / 1.214 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.9057, allocations: 213.6 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.9057, allocations: 4 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.207e-05/0.9058, allocations: 7.984 kB / 1.214 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.9058, allocations: 0 / 1.214 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.9058, allocations: 4.281 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.9058, allocations: 3.938 kB / 1.214 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.9058, allocations: 0 / 1.214 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.9061, allocations: 132.9 kB / 1.214 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.507e-05/0.9062, allocations: 88.92 kB / 1.214 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.9062, allocations: 3.938 kB / 1.215 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.9063, allocations: 11.92 kB / 1.215 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.9064, allocations: 7.984 kB / 1.215 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.9064, allocations: 8 kB / 1.215 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001921/0.9066, allocations: 192.5 kB / 1.215 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9066, allocations: 0 / 1.215 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000245/0.9069, allocations: 20.12 kB / 1.215 GB, free: 6.707 MB / 0.9356 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.0002715/0.9072, allocations: 126.4 kB / 1.215 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.9075, allocations: 51.94 kB / 1.215 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.9075, allocations: 0 / 1.215 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.9076, allocations: 31.91 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.908, allocations: 46.03 kB / 1.215 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005913/0.9086, allocations: 313.9 kB / 1.215 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.9089, allocations: 0.7197 MB / 1.216 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.909, allocations: 15.42 kB / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of SimCode: time 6.41e-07/0.909, allocations: 0 / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of Templates: time 0.004711/0.9137, allocations: 2.124 MB / 1.218 GB, free: 3.25 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_latest_Buildings.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/Buildings 11.0.1-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/Buildings 11.0.1-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_latest_Buildings.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/Buildings 11.0.1-master/Resources/C-Sources/jsonWriterInit.c:19:7: note: candidate function not viable: no known conversion from 'CStrArray' to 'char **' for 5th argument void* jsonWriterInit( ^ 1 error generated. make: *** [: OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1