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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00163/0.00163, allocations: 100.1 kB / 15.88 MB, free: 12 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.002036/0.002036, allocations: 199.6 kB / 16.79 MB, free: 6.809 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.404/1.404, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.835/2.835, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 62.31 kB / 0.899 GB, free: 36.89 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2995, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003326/0.3029, allocations: 1.7 MB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009237/0.3038, allocations: 0.5493 MB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.304, allocations: 11.88 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.3042, allocations: 23.86 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.3045, allocations: 54.31 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.3047, allocations: 63.88 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.3049, allocations: 123.5 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.3051, allocations: 49.47 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3052, allocations: 47.78 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.3053, allocations: 55.75 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.3054, allocations: 8 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.325e-05/0.3055, allocations: 23.94 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.161e-05/0.3056, allocations: 43.83 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.3056, allocations: 51.61 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3058, allocations: 112 kB / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3058, allocations: 4 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3058, allocations: 4 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.3058, allocations: 0 / 1.056 GB, free: 5.398 MB / 0.8106 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.0006778/0.3065, allocations: 458.7 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3066, allocations: 8.031 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.637e-05/0.3066, allocations: 20.69 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.3069, allocations: 236.8 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.3069, allocations: 4.375 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.3069, allocations: 8.375 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.3072, allocations: 110 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3072, allocations: 3.938 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3073, allocations: 0 / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3073, allocations: 7.969 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.3075, allocations: 67.88 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006134/0.3081, allocations: 392.5 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.3083, allocations: 38.56 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3084, allocations: 28.89 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.3084, allocations: 4 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.3087, allocations: 101 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3087, allocations: 0 / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004378/0.3092, allocations: 129.3 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3092, allocations: 81.11 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.3095, allocations: 245 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.3095, allocations: 29.7 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/0.3096, allocations: 132 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.3096, allocations: 7.906 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.3096, allocations: 13.72 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3098, allocations: 330.8 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.3099, allocations: 27.97 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.31, allocations: 47.41 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.3102, allocations: 74.5 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3102, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002982/0.3105, allocations: 97.39 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3106, allocations: 4 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3106, allocations: 0 / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3106, allocations: 12.03 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.3107, allocations: 15.98 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3107, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.941e-05/0.3108, allocations: 15.92 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.627e-06/0.3109, allocations: 0 / 1.058 GB, free: 2.449 MB / 0.8106 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.0001129/0.311, allocations: 129.8 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.311, allocations: 23.72 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.3111, allocations: 17.23 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3111, allocations: 11.94 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3111, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3111, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.3113, allocations: 209.6 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3113, allocations: 0 / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-05/0.3114, allocations: 11.98 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3114, allocations: 0 / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.3114, allocations: 0 / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.3114, allocations: 11.92 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3114, allocations: 4.219 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.3117, allocations: 124.9 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.3118, allocations: 92.86 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.3118, allocations: 7.938 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.3119, allocations: 11.92 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.312, allocations: 7.984 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.312, allocations: 12 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000183/0.3122, allocations: 192.5 kB / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3122, allocations: 0 / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002261/0.3124, allocations: 16 kB / 1.059 GB, free: 1.488 MB / 0.8106 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.0003034/0.3127, allocations: 123.6 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00029/0.313, allocations: 47.95 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.313, allocations: 4 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.3132, allocations: 31.91 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.3135, allocations: 35.75 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000616/0.3141, allocations: 359.7 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.3145, allocations: 0.716 MB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.3145, allocations: 15.44 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3146, allocations: 0 / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of Templates: time 0.004752/0.3193, allocations: 2.112 MB / 1.062 GB, free: 14 MB / 0.8262 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++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 11.0.0-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.0-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.0-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