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.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.001233/0.001233, 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.00138/0.00138, allocations: 219.7 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.393/1.393, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.00241/0.00241, allocations: 289.4 kB / 313.5 MB, free: 2.84 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.19/1.19, allocations: 180.6 MB / 0.5377 GB, free: 13.1 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(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: NcDataReader2 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: BuildingSystems 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.002892/0.002892, allocations: 106.4 kB / 0.7408 GB, free: 27.81 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.178, allocations: 95.39 MB / 0.8339 GB, free: 8.152 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003461/0.1815, allocations: 1.688 MB / 0.8356 GB, free: 6.453 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1826, allocations: 0.6234 MB / 0.8362 GB, free: 5.824 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.853e-05/0.1827, allocations: 7.938 kB / 0.8362 GB, free: 5.816 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1828, allocations: 23.8 kB / 0.8362 GB, free: 5.793 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.1831, allocations: 67.67 kB / 0.8363 GB, free: 5.727 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002084/0.1833, allocations: 75.84 kB / 0.8364 GB, free: 5.652 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.1835, allocations: 139.5 kB / 0.8365 GB, free: 5.516 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1837, allocations: 33.67 kB / 0.8365 GB, free: 5.477 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.1839, allocations: 63.77 kB / 0.8366 GB, free: 5.414 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.184, allocations: 71.67 kB / 0.8367 GB, free: 5.344 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.184, allocations: 8 kB / 0.8367 GB, free: 5.336 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 6.676e-05/0.1841, allocations: 27.94 kB / 0.8367 GB, free: 5.309 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.1842, allocations: 39.89 kB / 0.8367 GB, free: 5.27 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 7.199e-05/0.1842, allocations: 63.55 kB / 0.8368 GB, free: 5.207 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.1845, allocations: 155.2 kB / 0.8369 GB, free: 5.055 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1845, allocations: 0 / 0.8369 GB, free: 5.055 MB / 0.5763 GB Notification: Performance of FrontEnd: time 3.176e-06/0.1845, allocations: 4 kB / 0.8369 GB, free: 5.051 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.1845, allocations: 0 / 0.8369 GB, free: 5.051 MB / 0.5763 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.0006759/0.1852, allocations: 397.3 kB / 0.8373 GB, free: 4.633 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.1852, allocations: 13.94 kB / 0.8373 GB, free: 4.621 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.1854, allocations: 32.78 kB / 0.8374 GB, free: 4.59 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.1857, allocations: 185.9 kB / 0.8375 GB, free: 4.383 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.1857, allocations: 4.375 kB / 0.8376 GB, free: 4.379 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.1857, allocations: 8.375 kB / 0.8376 GB, free: 4.371 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.186, allocations: 111.7 kB / 0.8377 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.186, allocations: 0 / 0.8377 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.186, allocations: 4 kB / 0.8377 GB, free: 4.254 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.186, allocations: 0 / 0.8377 GB, free: 4.254 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.1862, allocations: 63.94 kB / 0.8377 GB, free: 4.191 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.1868, allocations: 351.6 kB / 0.8381 GB, free: 3.805 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.1869, allocations: 38.56 kB / 0.8381 GB, free: 3.758 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.1871, allocations: 40.77 kB / 0.8381 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.1871, allocations: 0 / 0.8381 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.1873, allocations: 97.08 kB / 0.8382 GB, free: 3.602 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1873, allocations: 0 / 0.8382 GB, free: 3.602 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0004247/0.1877, allocations: 125.6 kB / 0.8384 GB, free: 3.473 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.1878, allocations: 81.05 kB / 0.8384 GB, free: 3.375 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.1881, allocations: 256.8 kB / 0.8387 GB, free: 3.113 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1881, allocations: 37.69 kB / 0.8387 GB, free: 3.07 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/0.1882, allocations: 132 kB / 0.8388 GB, free: 2.938 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.1882, allocations: 3.953 kB / 0.8388 GB, free: 2.934 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.1882, allocations: 21.7 kB / 0.8389 GB, free: 2.906 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1884, allocations: 322.8 kB / 0.8392 GB, free: 2.582 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.1885, allocations: 23.97 kB / 0.8392 GB, free: 2.559 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.1886, allocations: 55.39 kB / 0.8392 GB, free: 2.492 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1888, allocations: 66.47 kB / 0.8393 GB, free: 2.418 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1888, allocations: 4 kB / 0.8393 GB, free: 2.414 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002612/0.1891, allocations: 105.5 kB / 0.8394 GB, free: 2.305 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.1891, allocations: 4 kB / 0.8394 GB, free: 2.301 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1891, allocations: 0 / 0.8394 GB, free: 2.301 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.1891, allocations: 7.938 kB / 0.8394 GB, free: 2.293 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.1892, allocations: 11.98 kB / 0.8394 GB, free: 2.281 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1892, allocations: 0 / 0.8394 GB, free: 2.281 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.1893, allocations: 23.97 kB / 0.8395 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1893, allocations: 0 / 0.8395 GB, free: 2.258 MB / 0.5763 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.0001159/0.1894, allocations: 130.5 kB / 0.8396 GB, free: 2.121 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.1895, allocations: 15.91 kB / 0.8396 GB, free: 2.105 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.1895, allocations: 17.33 kB / 0.8396 GB, free: 2.086 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1895, allocations: 3.938 kB / 0.8396 GB, free: 2.082 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1895, allocations: 4 kB / 0.8396 GB, free: 2.078 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1895, allocations: 0 / 0.8396 GB, free: 2.078 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.1897, allocations: 184.7 kB / 0.8398 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1897, allocations: 4 kB / 0.8398 GB, free: 1.852 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.1898, allocations: 19.92 kB / 0.8398 GB, free: 1.832 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1898, allocations: 3.984 kB / 0.8398 GB, free: 1.828 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.1898, allocations: 4 kB / 0.8398 GB, free: 1.824 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.1898, allocations: 7.875 kB / 0.8398 GB, free: 1.816 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1898, allocations: 0 / 0.8398 GB, free: 1.816 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.1901, allocations: 124.9 kB / 0.84 GB, free: 1.676 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.1901, allocations: 11.91 kB / 0.84 GB, free: 1.664 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.1901, allocations: 0 / 0.84 GB, free: 1.664 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.1902, allocations: 15.92 kB / 0.84 GB, free: 1.648 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.1902, allocations: 7.984 kB / 0.84 GB, free: 1.641 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1903, allocations: 8 kB / 0.84 GB, free: 1.633 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.000179/0.1904, allocations: 188.5 kB / 0.8402 GB, free: 1.453 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1e-07/0.1904, allocations: 0 / 0.8402 GB, free: 1.453 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002173/0.1907, allocations: 28 kB / 0.8402 GB, free: 1.426 MB / 0.5763 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.0002335/0.1909, allocations: 114.1 kB / 0.8403 GB, free: 1.309 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.1912, allocations: 59.88 kB / 0.8404 GB, free: 1.25 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1912, allocations: 4 kB / 0.8404 GB, free: 1.246 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.1913, allocations: 23.98 kB / 0.8404 GB, free: 1.223 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.1916, allocations: 44.33 kB / 0.8404 GB, free: 1.184 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000568/0.1921, allocations: 334.7 kB / 0.8408 GB, free: 0.8242 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.1925, allocations: 0.7274 MB / 0.8415 GB, free: 72 kB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.413e-05/0.1925, allocations: 11.44 kB / 0.8415 GB, free: 60 kB / 0.5763 GB Notification: Performance of SimCode: time 2.9e-07/0.1925, allocations: 0 / 0.8415 GB, free: 60 kB / 0.5763 GB Notification: Performance of Templates: time 0.004204/0.1967, allocations: 2.147 MB / 0.8436 GB, free: 13.92 MB / 0.5919 GB " [Timeout remaining time 660] 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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 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/BuildingSystems 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 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.370927223004401] Failed to read output from testmodel.py, exit status != 0: 0.20436373678967357 0.218652393 0.031250675 Calling exit ...