Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.0008204/0.0008204, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009041/0.0009041, allocations: 185 kB / 16.92 MB, free: 6.75 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.293/1.293, allocations: 223.3 MB / 241 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.654/2.654, allocations: 437.8 MB / 0.7128 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003891, allocations: 8.234 kB / 0.8735 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6822/0.6826, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001926/0.6846, allocations: 1.367 MB / 1.025 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008676/0.6855, allocations: 0.5223 MB / 1.026 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.822e-05/0.6856, allocations: 7.938 kB / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.6858, allocations: 19.91 kB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.686, allocations: 59.75 kB / 1.026 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.6862, allocations: 55.94 kB / 1.026 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000191/0.6864, allocations: 135.5 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.6866, allocations: 41.42 kB / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.6868, allocations: 51.72 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.6869, allocations: 47.77 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.6869, allocations: 0 / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.299e-05/0.687, allocations: 16 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.389e-05/0.6871, allocations: 39.83 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.244e-05/0.6872, allocations: 85.23 kB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.6873, allocations: 97.73 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6873, allocations: 0 / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6873, allocations: 0 / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.6873, allocations: 4 kB / 1.026 GB, free: 13.35 MB / 0.7794 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.0005959/0.6879, allocations: 450.8 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.688, allocations: 8.031 kB / 1.027 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.428e-05/0.6881, allocations: 16.75 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.6883, allocations: 240.7 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.6883, allocations: 4.375 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.6884, allocations: 16.3 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.6887, allocations: 125.8 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6887, allocations: 0 / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.6887, allocations: 4 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6887, allocations: 0 / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.689, allocations: 79.94 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006123/0.6896, allocations: 392.4 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.6898, allocations: 50.48 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.6899, allocations: 40.89 kB / 1.028 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.6899, allocations: 0 / 1.028 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.6902, allocations: 105.1 kB / 1.028 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.6902, allocations: 0 / 1.028 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004818/0.6907, allocations: 149.3 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.6908, allocations: 77.11 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.691, allocations: 253 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.691, allocations: 29.7 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.625e-05/0.6911, allocations: 124 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.6912, allocations: 11.88 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.6912, allocations: 13.72 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6913, allocations: 330.8 kB / 1.029 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.6914, allocations: 31.97 kB / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.6916, allocations: 55.41 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.6918, allocations: 90.5 kB / 1.029 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6918, allocations: 0 / 1.029 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003055/0.6922, allocations: 121.4 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6922, allocations: 4 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.6922, allocations: 3.938 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.6922, allocations: 3.938 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.6923, allocations: 15.98 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.6923, allocations: 4 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.672e-05/0.6924, allocations: 23.89 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.6925, allocations: 4 kB / 1.029 GB, free: 10.27 MB / 0.7794 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.0001025/0.6926, allocations: 125.8 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.6926, allocations: 15.81 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.6926, allocations: 25.17 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.6927, allocations: 4.219 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.6927, allocations: 0 / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.6927, allocations: 0 / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.6928, allocations: 221.6 kB / 1.029 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6929, allocations: 3.984 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.41e-05/0.6929, allocations: 19.92 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.693, allocations: 0 / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-06/0.693, allocations: 0 / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.693, allocations: 3.938 kB / 1.029 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.693, allocations: 0 / 1.029 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.6933, allocations: 136.9 kB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.6934, allocations: 92.91 kB / 1.03 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.6934, allocations: 4 kB / 1.03 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.6935, allocations: 23.92 kB / 1.03 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.177e-05/0.6936, allocations: 4 kB / 1.03 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.6936, allocations: 7.984 kB / 1.03 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001916/0.6938, allocations: 184.5 kB / 1.03 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6938, allocations: 0 / 1.03 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002494/0.6941, allocations: 28.02 kB / 1.03 GB, free: 9.297 MB / 0.7794 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.0002961/0.6944, allocations: 127.6 kB / 1.03 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.6947, allocations: 72 kB / 1.03 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6947, allocations: 0 / 1.03 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.6948, allocations: 35.97 kB / 1.03 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.6952, allocations: 41.86 kB / 1.03 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006635/0.6959, allocations: 367.8 kB / 1.03 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.6961, allocations: 0.716 MB / 1.031 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.875e-05/0.6962, allocations: 19.42 kB / 1.031 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.6962, allocations: 0 / 1.031 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of Templates: time 0.004144/0.7004, allocations: 2.077 MB / 1.033 GB, free: 5.801 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++14 -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 10.1.0-maint.10.0.x/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 10.1.0-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_10_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 10.1.0-maint.10.0.x/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_10_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1