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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 219 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.21/3.21, allocations: 0.505 GB / 0.8108 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 71.89 kB / 1.178 GB, free: 16.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3418, allocations: 180.2 MB / 1.354 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003197/0.345, allocations: 1.685 MB / 1.356 GB, free: 6.234 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.3462, allocations: 0.62 MB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.247e-05/0.3463, allocations: 8 kB / 1.356 GB, free: 5.602 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.3465, allocations: 31.72 kB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.3467, allocations: 67.67 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.347, allocations: 71.84 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.3472, allocations: 131.5 kB / 1.357 GB, free: 5.305 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.3473, allocations: 41.53 kB / 1.357 GB, free: 5.262 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.3475, allocations: 63.78 kB / 1.357 GB, free: 5.199 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3476, allocations: 67.69 kB / 1.357 GB, free: 5.133 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.3476, allocations: 12 kB / 1.357 GB, free: 5.121 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.3477, allocations: 27.92 kB / 1.357 GB, free: 5.094 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.805e-05/0.3478, allocations: 51.83 kB / 1.357 GB, free: 5.043 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.368e-05/0.3479, allocations: 55.61 kB / 1.357 GB, free: 4.988 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.3481, allocations: 147.3 kB / 1.357 GB, free: 4.844 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3481, allocations: 3.938 kB / 1.357 GB, free: 4.84 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3481, allocations: 0 / 1.357 GB, free: 4.84 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3481, allocations: 0 / 1.357 GB, free: 4.84 MB / 1.045 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.0006584/0.3488, allocations: 401.3 kB / 1.357 GB, free: 4.418 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3488, allocations: 8.031 kB / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.349, allocations: 32.78 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3494, allocations: 186 kB / 1.358 GB, free: 4.172 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3494, allocations: 12.38 kB / 1.358 GB, free: 4.16 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.3494, allocations: 4.375 kB / 1.358 GB, free: 4.156 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.3497, allocations: 114.8 kB / 1.358 GB, free: 4.039 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3497, allocations: 0 / 1.358 GB, free: 4.039 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.3497, allocations: 7.984 kB / 1.358 GB, free: 4.031 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3497, allocations: 0 / 1.358 GB, free: 4.031 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.35, allocations: 63.94 kB / 1.358 GB, free: 3.969 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006075/0.3506, allocations: 355.6 kB / 1.358 GB, free: 3.578 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.3507, allocations: 42.55 kB / 1.358 GB, free: 3.527 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3508, allocations: 24.89 kB / 1.358 GB, free: 3.5 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.3508, allocations: 0 / 1.358 GB, free: 3.5 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.351, allocations: 101 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3511, allocations: 0 / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0004293/0.3515, allocations: 121.5 kB / 1.358 GB, free: 3.258 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.3515, allocations: 77.11 kB / 1.359 GB, free: 3.164 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.3518, allocations: 260.9 kB / 1.359 GB, free: 2.898 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.3518, allocations: 33.64 kB / 1.359 GB, free: 2.859 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.903e-05/0.3519, allocations: 128.1 kB / 1.359 GB, free: 2.73 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.352, allocations: 3.953 kB / 1.359 GB, free: 2.727 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.352, allocations: 17.72 kB / 1.359 GB, free: 2.703 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3521, allocations: 326.8 kB / 1.359 GB, free: 2.375 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.3523, allocations: 27.97 kB / 1.359 GB, free: 2.348 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.3524, allocations: 47.59 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.3526, allocations: 70.45 kB / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3526, allocations: 4.031 kB / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002832/0.3529, allocations: 101.5 kB / 1.36 GB, free: 2.102 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3529, allocations: 11.92 kB / 1.36 GB, free: 2.09 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3529, allocations: 4 kB / 1.36 GB, free: 2.086 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3529, allocations: 7.922 kB / 1.36 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.353, allocations: 11.98 kB / 1.36 GB, free: 2.066 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.353, allocations: 4.094 kB / 1.36 GB, free: 2.062 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.804e-05/0.3531, allocations: 23.86 kB / 1.36 GB, free: 2.039 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.3531, allocations: 0 / 1.36 GB, free: 2.039 MB / 1.045 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.0001187/0.3532, allocations: 133.7 kB / 1.36 GB, free: 1.898 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.3533, allocations: 19.86 kB / 1.36 GB, free: 1.879 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.3533, allocations: 21.34 kB / 1.36 GB, free: 1.855 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3533, allocations: 3.938 kB / 1.36 GB, free: 1.852 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3533, allocations: 3.984 kB / 1.36 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3533, allocations: 4 kB / 1.36 GB, free: 1.844 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.3535, allocations: 184.7 kB / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3535, allocations: 0 / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.3536, allocations: 11.98 kB / 1.36 GB, free: 1.609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3536, allocations: 0 / 1.36 GB, free: 1.609 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.3536, allocations: 0 / 1.36 GB, free: 1.609 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.3536, allocations: 7.875 kB / 1.36 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3536, allocations: 0 / 1.36 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.3539, allocations: 121 kB / 1.36 GB, free: 1.465 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.3539, allocations: 19.89 kB / 1.36 GB, free: 1.445 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.3539, allocations: 4 kB / 1.36 GB, free: 1.441 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.363e-05/0.354, allocations: 15.92 kB / 1.36 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.3541, allocations: 0 / 1.36 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.3541, allocations: 7.984 kB / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001896/0.3543, allocations: 188.5 kB / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3543, allocations: 4 kB / 1.36 GB, free: 1.227 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002271/0.3545, allocations: 27.94 kB / 1.36 GB, free: 1.199 MB / 1.045 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.0002501/0.3548, allocations: 119.1 kB / 1.36 GB, free: 1.078 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000285/0.355, allocations: 63.88 kB / 1.361 GB, free: 1.016 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.355, allocations: 0 / 1.361 GB, free: 1.016 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3552, allocations: 27.97 kB / 1.361 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.3555, allocations: 43.7 kB / 1.361 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005832/0.356, allocations: 318.5 kB / 1.361 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.3564, allocations: 0.7277 MB / 1.362 GB, free: 15.85 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.3565, allocations: 19.42 kB / 1.362 GB, free: 15.83 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3565, allocations: 3.938 kB / 1.362 GB, free: 15.82 MB / 1.061 GB Notification: Performance of Templates: time 0.004374/0.3608, allocations: 2.129 MB / 1.364 GB, free: 13.7 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] 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 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 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 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 [Calling os._exit(0), Time elapsed: 8.094681544986088] Failed to read output from testmodel.py, exit status != 0: 0.36912716599181294 0.383512458 0.032274733 Calling exit ...