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.001471/0.001471, allocations: 106.4 kB / 16.41 MB, free: 6.465 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.001562/0.001562, allocations: 187 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.1 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.376/2.376, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 64.36 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8355/0.8368, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003151/0.84, allocations: 1.656 MB / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009647/0.841, allocations: 0.5378 MB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.833e-05/0.8411, allocations: 4 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.8413, allocations: 35.73 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002588/0.8416, allocations: 60.73 kB / 1.17 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.8417, allocations: 63.84 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.8419, allocations: 143.5 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.8421, allocations: 49.47 kB / 1.17 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.8422, allocations: 55.77 kB / 1.17 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.8424, allocations: 55.77 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.8424, allocations: 8 kB / 1.17 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.052e-05/0.8425, allocations: 27.92 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.691e-05/0.8426, allocations: 43.83 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.772e-05/0.8426, allocations: 55.61 kB / 1.17 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.8429, allocations: 147.8 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.05e-05/0.8429, allocations: 8 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.113e-06/0.8429, allocations: 0 / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.8429, allocations: 0 / 1.17 GB, free: 0.918 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.0006288/0.8436, allocations: 474.4 kB / 1.171 GB, free: 416 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.8436, allocations: 12.86 kB / 1.171 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.8437, allocations: 20.8 kB / 1.171 GB, free: 384 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.844, allocations: 248.9 kB / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.8441, allocations: 4.375 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.8441, allocations: 12.31 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.8444, allocations: 106 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.8444, allocations: 0 / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.8444, allocations: 8 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.8444, allocations: 0 / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.8446, allocations: 63.94 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.8452, allocations: 380.6 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.8453, allocations: 34.56 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.8454, allocations: 36.89 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.8455, allocations: 0 / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.8457, allocations: 101 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.8457, allocations: 0 / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.0004016/0.8461, allocations: 125.5 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.8462, allocations: 81.09 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.8464, allocations: 249 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.8465, allocations: 25.7 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.59e-05/0.8465, allocations: 140 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.8466, allocations: 7.953 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.8466, allocations: 17.72 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8468, allocations: 334.8 kB / 1.173 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.841e-05/0.8469, allocations: 23.92 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.847, allocations: 47.41 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.8472, allocations: 70.55 kB / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8472, allocations: 0 / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000248/0.8474, allocations: 105.5 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.8475, allocations: 8.094 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.8475, allocations: 3.938 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.8475, allocations: 3.938 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.8476, allocations: 11.98 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.8476, allocations: 4 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.197e-05/0.8477, allocations: 12.22 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.8477, allocations: 7.938 kB / 1.173 GB, free: 13.94 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.0001161/0.8478, allocations: 129.8 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/0.8479, allocations: 27.89 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.724e-05/0.8479, allocations: 17.23 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.8479, allocations: 3.938 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.8479, allocations: 0 / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.848, allocations: 0 / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.8481, allocations: 217.5 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.8481, allocations: 0 / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.8482, allocations: 11.98 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.8482, allocations: 0 / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.8482, allocations: 0 / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.8483, allocations: 7.938 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.8483, allocations: 0 / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.8485, allocations: 132.9 kB / 1.173 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/0.8486, allocations: 89.02 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.8486, allocations: 0 / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.992e-05/0.8487, allocations: 19.92 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.8488, allocations: 0 / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.8488, allocations: 19.98 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001696/0.849, allocations: 180.5 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.849, allocations: 0 / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002153/0.8492, allocations: 23.98 kB / 1.174 GB, free: 12.98 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.0002283/0.8494, allocations: 116.4 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000263/0.8497, allocations: 55.88 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.8497, allocations: 0 / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.8498, allocations: 31.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.0002679/0.8501, allocations: 38.09 kB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005228/0.8506, allocations: 317.5 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.8509, allocations: 0.7196 MB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.3e-05/0.851, allocations: 19.42 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of SimCode: time 1.513e-06/0.851, allocations: 0 / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of Templates: time 0.003854/0.8548, allocations: 2.13 MB / 1.177 GB, free: 9.512 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