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.001352/0.001352, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.001399/0.001399, allocations: 189.4 kB / 17.34 MB, free: 5.762 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.458/2.458, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 68.11 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8579/0.8593, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003351/0.8627, allocations: 1.651 MB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009542/0.8637, allocations: 0.5416 MB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.539e-05/0.8638, allocations: 4 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.864, allocations: 27.78 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.8644, allocations: 70.73 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.8646, allocations: 63.86 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.8648, allocations: 131.5 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.865, allocations: 57.44 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.8652, allocations: 47.78 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.8653, allocations: 67.69 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.8653, allocations: 12 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.25e-05/0.8654, allocations: 16 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.8655, allocations: 47.83 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.8656, allocations: 59.55 kB / 1.211 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.8659, allocations: 151.2 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.8659, allocations: 0 / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8659, allocations: 0 / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.8659, allocations: 4 kB / 1.211 GB, free: 10.68 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.0007401/0.8667, allocations: 464.5 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.8667, allocations: 12.03 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/0.8668, allocations: 20.73 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.8672, allocations: 236.8 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.8672, allocations: 4.375 kB / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.8672, allocations: 8.312 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.8676, allocations: 113.9 kB / 1.212 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.8676, allocations: 0 / 1.212 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.8677, allocations: 11.94 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.8677, allocations: 0 / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.8679, allocations: 59.94 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.8685, allocations: 384.4 kB / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.8687, allocations: 38.55 kB / 1.213 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.8688, allocations: 32.84 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.8688, allocations: 0 / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.869, allocations: 97.08 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.8691, allocations: 0 / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004587/0.8695, allocations: 129.3 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.8696, allocations: 77.11 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.87, allocations: 253 kB / 1.213 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.87, allocations: 29.7 kB / 1.213 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.221e-05/0.8701, allocations: 128 kB / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.8701, allocations: 7.906 kB / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.8702, allocations: 13.7 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.8703, allocations: 334.8 kB / 1.214 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.8705, allocations: 23.97 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.8706, allocations: 51.41 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.8709, allocations: 66.47 kB / 1.214 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8709, allocations: 0 / 1.214 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002775/0.8712, allocations: 105.4 kB / 1.214 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.8712, allocations: 8 kB / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.8712, allocations: 0 / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.8713, allocations: 3.938 kB / 1.214 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.8714, allocations: 15.98 kB / 1.214 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.8714, allocations: 4 kB / 1.214 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.29e-05/0.8715, allocations: 23.86 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.8715, allocations: 4 kB / 1.214 GB, free: 7.715 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.0001127/0.8716, allocations: 125.8 kB / 1.214 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.8717, allocations: 16.09 kB / 1.214 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.463e-05/0.8717, allocations: 25.17 kB / 1.214 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.8717, allocations: 7.922 kB / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8717, allocations: 0 / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.8717, allocations: 0 / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.8719, allocations: 217.6 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8719, allocations: 4 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.872, allocations: 11.98 kB / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.872, allocations: 0 / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.872, allocations: 0 / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.872, allocations: 3.938 kB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8721, allocations: 0 / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.8725, allocations: 128.8 kB / 1.214 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.8725, allocations: 88.92 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.8726, allocations: 0 / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.091e-05/0.8727, allocations: 15.92 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.8727, allocations: 3.984 kB / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.8728, allocations: 7.938 kB / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001858/0.8729, allocations: 192.5 kB / 1.215 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.873, allocations: 0 / 1.215 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002321/0.8732, allocations: 28.12 kB / 1.215 GB, free: 6.758 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.00025/0.8734, allocations: 120.5 kB / 1.215 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003028/0.8738, allocations: 59.94 kB / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8738, allocations: 0 / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.8739, allocations: 23.98 kB / 1.215 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.8742, allocations: 48.75 kB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000617/0.8748, allocations: 309.7 kB / 1.215 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.8753, allocations: 0.7237 MB / 1.216 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.8753, allocations: 15.44 kB / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.8753, allocations: 0 / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of Templates: time 0.004272/0.8796, allocations: 2.126 MB / 1.218 GB, free: 3.301 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