Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001525/0.001525, allocations: 105.3 kB / 15.98 MB, free: 6.355 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.001502/0.001502, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.39/1.39, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.632/2.632, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 68.33 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3159, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003312/0.3193, allocations: 1.712 MB / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.3202, allocations: 0.5495 MB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.48e-05/0.3203, allocations: 0 / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.3205, allocations: 23.86 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.3208, allocations: 55.75 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.321, allocations: 59.92 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.3211, allocations: 127.6 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.3213, allocations: 45.48 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.3214, allocations: 59.7 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.3216, allocations: 67.69 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.3216, allocations: 8 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.802e-05/0.3217, allocations: 23.98 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.233e-05/0.3218, allocations: 43.91 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.802e-05/0.3218, allocations: 63.53 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.322, allocations: 100.1 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.322, allocations: 3.938 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.052e-06/0.322, allocations: 0 / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.322, allocations: 0 / 1.067 GB, free: 12.18 MB / 0.8419 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.0006472/0.3227, allocations: 462.7 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.3227, allocations: 8.031 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.3228, allocations: 16.75 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.3231, allocations: 248.7 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3231, allocations: 4.375 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.3231, allocations: 4.375 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.3234, allocations: 113.9 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.3234, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.3234, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3235, allocations: 7.984 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.3237, allocations: 67.94 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006121/0.3243, allocations: 388.4 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3244, allocations: 38.55 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.3246, allocations: 28.84 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.3246, allocations: 4 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.3249, allocations: 101 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3249, allocations: 0 / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004303/0.3253, allocations: 125.4 kB / 1.069 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.3254, allocations: 77.11 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002731/0.3256, allocations: 257 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.3257, allocations: 29.64 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3258, allocations: 128 kB / 1.069 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.3258, allocations: 3.906 kB / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/0.3259, allocations: 25.7 kB / 1.069 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.326, allocations: 326.8 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.3261, allocations: 23.97 kB / 1.069 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.3263, allocations: 47.41 kB / 1.069 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.3265, allocations: 70.5 kB / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3265, allocations: 0 / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000272/0.3268, allocations: 105.4 kB / 1.07 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3268, allocations: 8 kB / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3268, allocations: 0 / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3268, allocations: 7.875 kB / 1.07 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3269, allocations: 11.98 kB / 1.07 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.3269, allocations: 0 / 1.07 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.327, allocations: 11.98 kB / 1.07 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.327, allocations: 0 / 1.07 GB, free: 9.23 MB / 0.8419 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.0001128/0.3272, allocations: 135.6 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.3272, allocations: 19.72 kB / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.3272, allocations: 21.23 kB / 1.07 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3272, allocations: 3.938 kB / 1.07 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3273, allocations: 0 / 1.07 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3273, allocations: 0 / 1.07 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.3275, allocations: 217.6 kB / 1.07 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3275, allocations: 4 kB / 1.07 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.78e-05/0.3276, allocations: 7.984 kB / 1.07 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3276, allocations: 4 kB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.3276, allocations: 4 kB / 1.07 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.3276, allocations: 11.88 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3276, allocations: 288 / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.3279, allocations: 120.9 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.328, allocations: 92.86 kB / 1.07 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.328, allocations: 0 / 1.07 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.281e-05/0.3281, allocations: 19.92 kB / 1.07 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.3281, allocations: 7.984 kB / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3282, allocations: 7.938 kB / 1.07 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001891/0.3283, allocations: 188.5 kB / 1.07 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3284, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002143/0.3286, allocations: 20 kB / 1.07 GB, free: 8.266 MB / 0.8419 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.0002241/0.3288, allocations: 126.1 kB / 1.071 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002795/0.3291, allocations: 59.88 kB / 1.071 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3291, allocations: 0 / 1.071 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.3292, allocations: 28.17 kB / 1.071 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3295, allocations: 45.86 kB / 1.071 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005707/0.3301, allocations: 357.9 kB / 1.071 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3305, allocations: 0.7158 MB / 1.072 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.424e-05/0.3305, allocations: 15.44 kB / 1.072 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3305, allocations: 0 / 1.072 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of Templates: time 0.00434/0.3349, allocations: 2.122 MB / 1.074 GB, free: 4.766 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_11_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.1.0-maint.11.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 11.1.0-maint.11.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_11_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.1.0-maint.11.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_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1