Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001777/0.001777, allocations: 108.7 kB / 15.99 MB, free: 5.91 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.002248/0.002248, allocations: 192.2 kB / 16.91 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.578/1.578, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.2 MB / 0.665 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 62.59 kB / 0.8127 GB, free: 33.17 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2982, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003727/0.302, allocations: 1.706 MB / 0.9514 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3031, allocations: 0.5378 MB / 0.952 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.3033, allocations: 7.938 kB / 0.952 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002522/0.3036, allocations: 19.92 kB / 0.952 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003084/0.3039, allocations: 55.73 kB / 0.952 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.3041, allocations: 59.88 kB / 0.9521 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.3043, allocations: 131.6 kB / 0.9522 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3045, allocations: 53.44 kB / 0.9523 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.3047, allocations: 55.78 kB / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.3048, allocations: 67.69 kB / 0.9524 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.3049, allocations: 8 kB / 0.9524 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.26e-05/0.3049, allocations: 20 kB / 0.9524 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.924e-05/0.305, allocations: 47.83 kB / 0.9525 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.968e-05/0.3051, allocations: 59.55 kB / 0.9525 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.3054, allocations: 104 kB / 0.9526 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3054, allocations: 0 / 0.9526 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3054, allocations: 3.938 kB / 0.9526 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.3054, allocations: 0 / 0.9526 GB, free: 6.281 MB / 0.7325 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.0007027/0.3061, allocations: 479.9 kB / 0.9531 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3061, allocations: 11.97 kB / 0.9531 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.459e-05/0.3062, allocations: 16.75 kB / 0.9531 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.3065, allocations: 236.8 kB / 0.9533 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.3065, allocations: 384 / 0.9533 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.3065, allocations: 8.375 kB / 0.9533 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.3069, allocations: 109.9 kB / 0.9534 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3069, allocations: 0 / 0.9534 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.3069, allocations: 8 kB / 0.9534 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3069, allocations: 4 kB / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.3072, allocations: 63.88 kB / 0.9535 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.3079, allocations: 380.5 kB / 0.9539 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.308, allocations: 42.5 kB / 0.9539 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3082, allocations: 32.89 kB / 0.9539 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.3082, allocations: 0 / 0.9539 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.3085, allocations: 97.08 kB / 0.954 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3085, allocations: 0 / 0.954 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004621/0.309, allocations: 125.3 kB / 0.9542 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.3091, allocations: 81.09 kB / 0.9542 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.3094, allocations: 252.9 kB / 0.9545 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.3094, allocations: 29.7 kB / 0.9545 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.3095, allocations: 136 kB / 0.9546 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.3095, allocations: 3.906 kB / 0.9546 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.3096, allocations: 13.72 kB / 0.9547 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3097, allocations: 330.8 kB / 0.955 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.3099, allocations: 23.98 kB / 0.955 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.31, allocations: 51.41 kB / 0.955 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/0.3102, allocations: 70.45 kB / 0.9551 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3103, allocations: 4 kB / 0.9551 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003013/0.3106, allocations: 105.4 kB / 0.9552 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3106, allocations: 8 kB / 0.9552 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3106, allocations: 0 / 0.9552 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3106, allocations: 3.938 kB / 0.9552 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.3108, allocations: 11.98 kB / 0.9552 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.3108, allocations: 0 / 0.9552 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.939e-05/0.3109, allocations: 16.08 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3109, allocations: 4 kB / 0.9553 GB, free: 3.32 MB / 0.7325 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.0001319/0.311, allocations: 127.8 kB / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.3111, allocations: 15.81 kB / 0.9554 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.3111, allocations: 21.23 kB / 0.9554 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3111, allocations: 3.938 kB / 0.9554 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3111, allocations: 0 / 0.9554 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3111, allocations: 288 / 0.9554 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.3114, allocations: 221.5 kB / 0.9556 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3114, allocations: 7.938 kB / 0.9556 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.319e-05/0.3115, allocations: 11.98 kB / 0.9556 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.024e-06/0.3115, allocations: 3.984 kB / 0.9556 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.3115, allocations: 0 / 0.9556 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.176e-05/0.3115, allocations: 3.938 kB / 0.9557 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3115, allocations: 0 / 0.9557 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.3119, allocations: 132.8 kB / 0.9558 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.129e-05/0.312, allocations: 92.86 kB / 0.9559 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.312, allocations: 0 / 0.9559 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.448e-05/0.3121, allocations: 15.92 kB / 0.9559 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.3121, allocations: 0 / 0.9559 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3122, allocations: 7.984 kB / 0.9559 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002008/0.3124, allocations: 188.5 kB / 0.9561 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3124, allocations: 0 / 0.9561 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002472/0.3126, allocations: 27.98 kB / 0.9561 GB, free: 2.367 MB / 0.7325 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.000254/0.3129, allocations: 123.5 kB / 0.9562 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003049/0.3132, allocations: 60.12 kB / 0.9563 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3132, allocations: 0 / 0.9563 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.3134, allocations: 31.91 kB / 0.9563 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.3137, allocations: 36.41 kB / 0.9563 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006034/0.3143, allocations: 346.1 kB / 0.9567 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.3147, allocations: 0.7234 MB / 0.9574 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.3147, allocations: 19.42 kB / 0.9574 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.3147, allocations: 0 / 0.9574 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of Templates: time 0.004948/0.3197, allocations: 2.122 MB / 0.9595 GB, free: 14.86 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_9_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 9.1.3-maint.9.1.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 9.1.3-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_9_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 9.1.3-maint.9.1.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_9_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1