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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001353/0.001353, allocations: 105.9 kB / 16.41 MB, free: 6.461 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.001431/0.001431, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.346/2.346, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8412/0.8425, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002896/0.8454, allocations: 1.646 MB / 1.169 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008656/0.8463, allocations: 0.5416 MB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.523e-05/0.8464, allocations: 4 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.8466, allocations: 27.8 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.8469, allocations: 67.67 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.847, allocations: 67.84 kB / 1.17 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.8472, allocations: 131.5 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.8474, allocations: 45.47 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.8475, allocations: 59.77 kB / 1.17 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.8476, allocations: 63.7 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.8477, allocations: 8 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.8477, allocations: 19.98 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.323e-05/0.8478, allocations: 51.77 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.185e-05/0.8479, allocations: 55.61 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.8481, allocations: 151.2 kB / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.8481, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8481, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.8482, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 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.0006826/0.8488, allocations: 464.5 kB / 1.171 GB, free: 396 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.8489, allocations: 12.92 kB / 1.171 GB, free: 384 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.455e-05/0.849, allocations: 16.75 kB / 1.171 GB, free: 368 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.8493, allocations: 240.8 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.8494, allocations: 4.312 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.8494, allocations: 12.38 kB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.8497, allocations: 115.4 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.8498, allocations: 3.938 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.8498, allocations: 0 / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.8498, allocations: 4 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.85, allocations: 63.94 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.8507, allocations: 384.4 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.8509, allocations: 38.55 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.851, allocations: 32.89 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.851, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.8513, allocations: 105 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.8513, allocations: 0 / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.0004706/0.8518, allocations: 121.4 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.8519, allocations: 81.11 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.8521, allocations: 253 kB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.8522, allocations: 25.7 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.8522, allocations: 128 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.8523, allocations: 7.906 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.8523, allocations: 13.72 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.8524, allocations: 330.8 kB / 1.172 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.8526, allocations: 31.97 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.8527, allocations: 51.34 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.8529, allocations: 70.55 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8529, allocations: 0 / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000262/0.8532, allocations: 93.41 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.8532, allocations: 11.98 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.8532, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.8532, allocations: 3.938 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.8534, allocations: 20.08 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.8534, allocations: 3.938 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.8535, allocations: 19.83 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.8535, allocations: 8 kB / 1.173 GB, free: 13.92 MB / 0.9044 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.000104/0.8536, allocations: 121.8 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.8536, allocations: 20.09 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.8537, allocations: 17.25 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.8537, allocations: 11.91 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.8537, allocations: 7.938 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.8537, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.8539, allocations: 213.6 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8539, allocations: 0 / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.928e-05/0.854, allocations: 11.98 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.854, allocations: 3.938 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.854, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.854, allocations: 3.938 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.854, allocations: 0 / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.8543, allocations: 124.8 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.802e-05/0.8544, allocations: 96.91 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.8544, allocations: 0 / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.353e-05/0.8545, allocations: 15.92 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.8545, allocations: 0 / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.8546, allocations: 7.984 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001609/0.8547, allocations: 192.5 kB / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8547, allocations: 0 / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002182/0.855, allocations: 20 kB / 1.174 GB, free: 12.97 MB / 0.9044 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.0002455/0.8552, allocations: 114 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.8555, allocations: 63.88 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8555, allocations: 0 / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.8556, allocations: 27.97 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.8559, allocations: 58.84 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005264/0.8565, allocations: 313.9 kB / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.8567, allocations: 0.7158 MB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.8568, allocations: 19.44 kB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.8568, allocations: 0 / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.003834/0.8606, allocations: 2.128 MB / 1.177 GB, free: 9.5 MB / 0.9044 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++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 10.1.1-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.1-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.1-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