Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 114.3 kB / 17.13 MB, free: 5.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 197.2 kB / 20.08 MB, free: 3 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 248.5 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002304/0.002304, allocations: 286.1 kB / 303.6 MB, free: 3.684 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 180.9 MB / 0.5268 GB, free: 2.703 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002837/0.002837, allocations: 103.8 kB / 0.7259 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5167/0.5195, allocations: 94.15 MB / 0.8178 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002639/0.5222, allocations: 1.657 MB / 0.8195 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0007786/0.5229, allocations: 0.5507 MB / 0.82 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.523, allocations: 2.844 kB / 0.82 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.5232, allocations: 33.11 kB / 0.82 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002306/0.5234, allocations: 66.53 kB / 0.8201 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001328/0.5235, allocations: 62.55 kB / 0.8202 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.5237, allocations: 132 kB / 0.8203 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.5239, allocations: 40.23 kB / 0.8203 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.524, allocations: 53.17 kB / 0.8204 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.5241, allocations: 68.11 kB / 0.8204 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.5241, allocations: 15.66 kB / 0.8204 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.89e-05/0.5242, allocations: 16.19 kB / 0.8205 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.606e-05/0.5242, allocations: 49.38 kB / 0.8205 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.5243, allocations: 55.94 kB / 0.8206 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.5245, allocations: 150.1 kB / 0.8207 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5245, allocations: 0.8438 kB / 0.8207 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5245, allocations: 0 / 0.8207 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.5245, allocations: 0 / 0.8207 GB, free: 5.551 MB / 0.5762 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.0005524/0.5251, allocations: 475 kB / 0.8212 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.5251, allocations: 12.38 kB / 0.8212 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/0.5251, allocations: 17.09 kB / 0.8212 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.5254, allocations: 238.9 kB / 0.8214 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.5254, allocations: 2.531 kB / 0.8214 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.5254, allocations: 8.906 kB / 0.8214 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.5257, allocations: 117.1 kB / 0.8215 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.5257, allocations: 0 / 0.8215 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.5257, allocations: 8.906 kB / 0.8215 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5257, allocations: 2.188 kB / 0.8216 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.5259, allocations: 60.98 kB / 0.8216 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.5264, allocations: 386.2 kB / 0.822 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.5265, allocations: 40.14 kB / 0.822 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.5266, allocations: 32.52 kB / 0.822 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.5267, allocations: 1.094 kB / 0.822 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.5269, allocations: 96.28 kB / 0.8221 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.5269, allocations: 0 / 0.8221 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004199/0.5273, allocations: 127.1 kB / 0.8223 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.5273, allocations: 82.5 kB / 0.8223 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.5276, allocations: 251.5 kB / 0.8226 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.5276, allocations: 30.58 kB / 0.8226 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.784e-05/0.5276, allocations: 134.5 kB / 0.8227 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.5276, allocations: 5.688 kB / 0.8227 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.354e-05/0.5277, allocations: 15.3 kB / 0.8228 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.5277, allocations: 332.5 kB / 0.8231 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.5278, allocations: 25.58 kB / 0.8231 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.528, allocations: 49.69 kB / 0.8231 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.5282, allocations: 69.89 kB / 0.8232 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5282, allocations: 4.031 kB / 0.8232 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002449/0.5284, allocations: 101.8 kB / 0.8233 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.5284, allocations: 6.094 kB / 0.8233 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5284, allocations: 2.625 kB / 0.8233 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.5284, allocations: 3.938 kB / 0.8233 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5285, allocations: 15.12 kB / 0.8233 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.5285, allocations: 3.438 kB / 0.8233 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.4e-05/0.5286, allocations: 18.03 kB / 0.8234 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.5286, allocations: 0.6562 kB / 0.8234 GB, free: 3.406 MB / 0.5762 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 7.592e-05/0.5287, allocations: 133 kB / 0.8235 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.5287, allocations: 16.58 kB / 0.8235 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.5288, allocations: 20.69 kB / 0.8235 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.5288, allocations: 7.219 kB / 0.8235 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5288, allocations: 0 / 0.8235 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.5288, allocations: 3.938 kB / 0.8235 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.5289, allocations: 218.3 kB / 0.8237 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.5289, allocations: 0 / 0.8237 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.529, allocations: 9.469 kB / 0.8238 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.529, allocations: 6.562 kB / 0.8238 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.529, allocations: 0.5625 kB / 0.8238 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.529, allocations: 3.938 kB / 0.8238 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.529, allocations: 0.75 kB / 0.8238 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.5293, allocations: 131 kB / 0.8239 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.5293, allocations: 88.34 kB / 0.824 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.5293, allocations: 0.7969 kB / 0.824 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.5294, allocations: 19.36 kB / 0.824 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.5294, allocations: 1.875 kB / 0.824 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.5295, allocations: 10.66 kB / 0.824 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001417/0.5296, allocations: 186.7 kB / 0.8242 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.5296, allocations: 4 kB / 0.8242 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002057/0.5298, allocations: 20.94 kB / 0.8242 GB, free: 2.719 MB / 0.5762 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.0002028/0.53, allocations: 126.9 kB / 0.8243 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.5303, allocations: 58.58 kB / 0.8244 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5303, allocations: 0 / 0.8244 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.5304, allocations: 27.02 kB / 0.8244 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.5307, allocations: 43.77 kB / 0.8244 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004477/0.5311, allocations: 323.9 kB / 0.8248 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.5313, allocations: 0.7179 MB / 0.8255 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.5313, allocations: 14.22 kB / 0.8255 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.5313, allocations: 1.344 kB / 0.8255 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of Templates: time 0.003958/0.5353, allocations: 2.128 MB / 0.8276 GB, free: 1.406 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] make -j1 -f BuildingSystems_BuildingSystems.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_2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-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: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 5.296919540967792] Failed to read output from testmodel.py, exit status != 0: 0.5426608629059047 0.5545616830000001 0.027449489 Calling exit ...