Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00138/0.00138, allocations: 102.3 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.001549/0.001549, allocations: 218.1 kB / 23.01 MB, free: 5.125 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.291/3.291, allocations: 0.49 GB / 0.7958 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002035/0.002035, allocations: 66.42 kB / 1.155 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.4013, allocations: 176.1 MB / 1.327 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003525/0.4049, allocations: 1.684 MB / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.4061, allocations: 0.6273 MB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.4062, allocations: 3.938 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.4064, allocations: 31.72 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.4067, allocations: 68.78 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.4069, allocations: 75.84 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.4072, allocations: 131.6 kB / 1.33 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.4074, allocations: 37.59 kB / 1.33 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.4075, allocations: 63.7 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.4077, allocations: 71.69 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.4077, allocations: 8 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.206e-05/0.4078, allocations: 28 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.4079, allocations: 55.75 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.395e-05/0.408, allocations: 55.61 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.4083, allocations: 151.3 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4083, allocations: 0 / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4083, allocations: 0 / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.134e-05/0.4083, allocations: 3.938 kB / 1.33 GB, free: 14.39 MB / 1.029 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.0006965/0.409, allocations: 409.2 kB / 1.331 GB, free: 13.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.409, allocations: 12.03 kB / 1.331 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.4092, allocations: 24.83 kB / 1.331 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.4096, allocations: 185.9 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.4096, allocations: 8.359 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.4096, allocations: 4.375 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.4099, allocations: 117.9 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.4099, allocations: 0 / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.4099, allocations: 0 / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.4099, allocations: 4 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.4102, allocations: 65.06 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006454/0.4108, allocations: 355.6 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.411, allocations: 42.55 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.4111, allocations: 20.91 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.4111, allocations: 0 / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.4113, allocations: 113 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.4113, allocations: 0 / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004472/0.4118, allocations: 117.5 kB / 1.332 GB, free: 12.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.4118, allocations: 81.11 kB / 1.332 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.4121, allocations: 260.9 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.4122, allocations: 25.7 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.4123, allocations: 124.1 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.4123, allocations: 7.953 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.4123, allocations: 17.7 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.4125, allocations: 326.8 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.4126, allocations: 31.91 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.4127, allocations: 55.34 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/0.4129, allocations: 62.56 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4129, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002884/0.4132, allocations: 105.4 kB / 1.333 GB, free: 11.64 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4132, allocations: 8 kB / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.4133, allocations: 0 / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4133, allocations: 3.938 kB / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4134, allocations: 20.02 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4134, allocations: 0 / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.173e-05/0.4135, allocations: 19.92 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.4135, allocations: 4 kB / 1.333 GB, free: 11.59 MB / 1.029 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.0001169/0.4136, allocations: 125.8 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.4137, allocations: 15.91 kB / 1.333 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.4137, allocations: 25.61 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.4137, allocations: 3.938 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4137, allocations: 7.922 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.4137, allocations: 4 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.4139, allocations: 192.6 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4139, allocations: 4 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.032e-05/0.414, allocations: 11.98 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.414, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.414, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.414, allocations: 3.938 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.414, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.4143, allocations: 124.9 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.4143, allocations: 15.91 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.4144, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.312e-05/0.4144, allocations: 11.92 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.4145, allocations: 7.984 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.4145, allocations: 4 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002084/0.4147, allocations: 196.5 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4147, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002207/0.4149, allocations: 19.95 kB / 1.333 GB, free: 10.75 MB / 1.029 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.0002972/0.4152, allocations: 139.5 kB / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002932/0.4155, allocations: 55.88 kB / 1.334 GB, free: 10.55 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4155, allocations: 0 / 1.334 GB, free: 10.55 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.4156, allocations: 27.97 kB / 1.334 GB, free: 10.53 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.416, allocations: 43.66 kB / 1.334 GB, free: 10.49 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006272/0.4166, allocations: 318.6 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.417, allocations: 0.7197 MB / 1.335 GB, free: 9.402 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.665e-05/0.417, allocations: 15.44 kB / 1.335 GB, free: 9.387 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.417, allocations: 0 / 1.335 GB, free: 9.387 MB / 1.029 GB Notification: Performance of Templates: time 0.004573/0.4216, allocations: 2.145 MB / 1.337 GB, free: 7.254 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_12_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 12.1.1-maint.12.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 12.1.1-maint.12.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_12_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 12.1.1-maint.12.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_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 8.682881609012838] Failed to read output from testmodel.py, exit status != 0: 0.4298054619866889 0.456241612 0.042969839 Calling exit ...