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.001075/0.001076, allocations: 106.7 kB / 15.99 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.001092/0.001092, allocations: 192.9 kB / 16.91 MB, free: 6.191 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.289/1.289, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 469.4 MB / 0.7423 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 72.09 kB / 0.9083 GB, free: 14.49 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3497, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003371/0.3532, allocations: 1.7 MB / 1.065 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009817/0.3542, allocations: 0.5456 MB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.3543, allocations: 7.938 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.3545, allocations: 19.86 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.3549, allocations: 51.31 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001887/0.3551, allocations: 67.86 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.3553, allocations: 127.6 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.3554, allocations: 45.47 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.3556, allocations: 55.78 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.3557, allocations: 63.69 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.3558, allocations: 8 kB / 1.066 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.305e-05/0.3559, allocations: 35.92 kB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.858e-05/0.356, allocations: 43.89 kB / 1.066 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.404e-05/0.3561, allocations: 59.55 kB / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.3562, allocations: 104 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3562, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3563, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.3563, allocations: 0 / 1.067 GB, free: 12.43 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.000685/0.357, allocations: 462.7 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.357, allocations: 12.62 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.142e-05/0.3571, allocations: 16.75 kB / 1.067 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.3573, allocations: 244.7 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-06/0.3573, allocations: 384 / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.3574, allocations: 8.375 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.3577, allocations: 109.9 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3577, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.3577, allocations: 4 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.3577, allocations: 7.938 kB / 1.067 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.358, allocations: 67.88 kB / 1.067 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006652/0.3587, allocations: 384.5 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.3589, allocations: 46.48 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.359, allocations: 32.89 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.359, allocations: 0 / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.3593, allocations: 89.09 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.3593, allocations: 4 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004511/0.3598, allocations: 129.3 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.3598, allocations: 77.11 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.3601, allocations: 253 kB / 1.068 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3601, allocations: 25.7 kB / 1.068 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.196e-05/0.3602, allocations: 136 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.3602, allocations: 7.906 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.3603, allocations: 13.7 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.3604, allocations: 330.8 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3605, allocations: 23.97 kB / 1.069 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.3606, allocations: 51.41 kB / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.3609, allocations: 66.47 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3609, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002889/0.3612, allocations: 109.4 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3612, allocations: 10.5 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3612, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3612, allocations: 3.938 kB / 1.069 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3613, allocations: 11.98 kB / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3614, allocations: 3.984 kB / 1.069 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.069e-05/0.3615, allocations: 8 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.3615, allocations: 8.094 kB / 1.069 GB, free: 9.477 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.0001105/0.3616, allocations: 129.8 kB / 1.069 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.131e-05/0.3616, allocations: 23.98 kB / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/0.3617, allocations: 17.25 kB / 1.069 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3617, allocations: 7.922 kB / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3617, allocations: 0 / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3617, allocations: 0 / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.3619, allocations: 217.6 kB / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3619, allocations: 4 kB / 1.07 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.362, allocations: 15.98 kB / 1.07 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.362, allocations: 0 / 1.07 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.362, allocations: 0 / 1.07 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.362, allocations: 3.938 kB / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.362, allocations: 0 / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.3623, allocations: 120.9 kB / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/0.3624, allocations: 100.8 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.3624, allocations: 3.984 kB / 1.07 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.3625, allocations: 15.92 kB / 1.07 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.3626, allocations: 3.938 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.3626, allocations: 8 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001799/0.3628, allocations: 188.5 kB / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3628, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002329/0.363, allocations: 20 kB / 1.07 GB, free: 8.52 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.0002489/0.3633, allocations: 125.1 kB / 1.07 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002872/0.3636, allocations: 51.94 kB / 1.07 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3636, allocations: 8.125 kB / 1.07 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3637, allocations: 31.91 kB / 1.07 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.364, allocations: 40.78 kB / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.3647, allocations: 350 kB / 1.071 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.3649, allocations: 0.7197 MB / 1.071 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.365, allocations: 19.44 kB / 1.071 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.365, allocations: 0 / 1.071 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of Templates: time 0.004163/0.3692, allocations: 2.112 MB / 1.073 GB, free: 5.027 MB / 0.8419 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.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