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.001807/0.001807, allocations: 112.6 kB / 17.13 MB, free: 6.008 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.002017/0.002017, allocations: 212.7 kB / 20.1 MB, free: 3.055 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.57/1.57, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.034/3.034, allocations: 0.49 GB / 0.7923 GB, free: 1.355 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.002082/0.002082, allocations: 67.89 kB / 1.15 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.193/1.195, allocations: 176.1 MB / 1.322 GB, free: 25.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002933/1.198, allocations: 1.683 MB / 1.324 GB, free: 23.87 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009814/1.199, allocations: 0.614 MB / 1.324 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.925e-05/1.199, allocations: 6.688 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001931/1.2, allocations: 28.95 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000264/1.2, allocations: 71.55 kB / 1.324 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/1.2, allocations: 74 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001824/1.2, allocations: 133 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/1.2, allocations: 38.5 kB / 1.325 GB, free: 23.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/1.201, allocations: 60.48 kB / 1.325 GB, free: 23.23 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/1.201, allocations: 72.36 kB / 1.325 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/1.201, allocations: 8.281 kB / 1.325 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.361e-05/1.201, allocations: 30.12 kB / 1.325 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.056e-05/1.201, allocations: 46.19 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.367e-05/1.201, allocations: 55.61 kB / 1.325 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002156/1.201, allocations: 162.1 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/1.201, allocations: 0 / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.603e-06/1.201, allocations: 0 / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.503e-06/1.201, allocations: 0 / 1.325 GB, free: 23.05 MB / 1.061 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.0006159/1.202, allocations: 469.3 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/1.202, allocations: 12.8 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/1.202, allocations: 38.44 kB / 1.325 GB, free: 22.6 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/1.202, allocations: 258.5 kB / 1.326 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/1.202, allocations: 2.844 kB / 1.326 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/1.202, allocations: 7.062 kB / 1.326 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/1.203, allocations: 110.6 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/1.203, allocations: 4 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/1.203, allocations: 5.766 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/1.203, allocations: 2.594 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/1.203, allocations: 59.78 kB / 1.326 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/1.203, allocations: 388 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/1.204, allocations: 40.77 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/1.204, allocations: 32.92 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/1.204, allocations: 2.844 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/1.204, allocations: 95.14 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/1.204, allocations: 0 / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004236/1.204, allocations: 122 kB / 1.326 GB, free: 21.78 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/1.204, allocations: 83.86 kB / 1.327 GB, free: 21.68 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/1.205, allocations: 251.4 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/1.205, allocations: 32.2 kB / 1.327 GB, free: 21.51 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.124e-05/1.205, allocations: 130.7 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/1.205, allocations: 10.48 kB / 1.327 GB, free: 21.38 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/1.205, allocations: 16.06 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.235e-05/1.205, allocations: 327.9 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/1.205, allocations: 22.31 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/1.205, allocations: 54.08 kB / 1.327 GB, free: 21 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/1.205, allocations: 68.62 kB / 1.327 GB, free: 20.97 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/1.205, allocations: 3.938 kB / 1.327 GB, free: 20.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002644/1.205, allocations: 108.6 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/1.205, allocations: 5.5 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/1.205, allocations: 1.156 kB / 1.328 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/1.205, allocations: 4.438 kB / 1.328 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/1.206, allocations: 11.59 kB / 1.328 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/1.206, allocations: 1.031 kB / 1.328 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.012e-05/1.206, allocations: 15 kB / 1.328 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/1.206, allocations: 4.812 kB / 1.328 GB, free: 20.9 MB / 1.061 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 8.902e-05/1.206, allocations: 127.3 kB / 1.328 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/1.206, allocations: 20.14 kB / 1.328 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/1.206, allocations: 18.89 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/1.206, allocations: 4.438 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/1.206, allocations: 0.5625 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/1.206, allocations: 0 / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/1.206, allocations: 212 kB / 1.328 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/1.206, allocations: 4.875 kB / 1.328 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.071e-05/1.206, allocations: 21.66 kB / 1.328 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/1.206, allocations: 0.875 kB / 1.328 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/1.206, allocations: 0.5938 kB / 1.328 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/1.206, allocations: 4.688 kB / 1.328 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.206, allocations: 4 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/1.206, allocations: 130.4 kB / 1.328 GB, free: 20.43 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.082e-05/1.206, allocations: 88.05 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/1.206, allocations: 1.594 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/1.207, allocations: 13.27 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/1.207, allocations: 4.703 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/1.207, allocations: 9.031 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001894/1.207, allocations: 188.4 kB / 1.328 GB, free: 20.22 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.207, allocations: 0.8125 kB / 1.328 GB, free: 20.22 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002371/1.207, allocations: 29.92 kB / 1.328 GB, free: 20.21 MB / 1.061 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.000257/1.207, allocations: 115.5 kB / 1.329 GB, free: 20.11 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003077/1.208, allocations: 64.69 kB / 1.329 GB, free: 20.09 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.208, allocations: 0 / 1.329 GB, free: 20.09 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/1.208, allocations: 26.12 kB / 1.329 GB, free: 20.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/1.208, allocations: 46.03 kB / 1.329 GB, free: 20.08 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005996/1.209, allocations: 318.5 kB / 1.329 GB, free: 19.85 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/1.209, allocations: 0.733 MB / 1.33 GB, free: 19.14 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.852e-05/1.209, allocations: 14.41 kB / 1.33 GB, free: 19.13 MB / 1.061 GB Notification: Performance of SimCode: time 3.51e-07/1.209, allocations: 1.094 kB / 1.33 GB, free: 19.13 MB / 1.061 GB Notification: Performance of Templates: time 0.005698/1.215, allocations: 2.141 MB / 1.332 GB, free: 18.89 MB / 1.061 GB " [Timeout remaining time 299] 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: 9.359340811002767] Failed to read output from testmodel.py, exit status != 0: 1.223508380993735 1.23556529 0.031627549000000005 Calling exit ...