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.00128/0.00128, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001676/0.001676, allocations: 214.2 kB / 22.99 MB, free: 4.945 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.387/1.387, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.002465/0.002465, allocations: 302.1 kB / 313.5 MB, free: 2.594 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.14/1.14, allocations: 180.6 MB / 0.5377 GB, free: 14.46 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.002858/0.002858, allocations: 102.4 kB / 0.7407 GB, free: 27.97 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1752, allocations: 95.39 MB / 0.8339 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003319/0.1785, allocations: 1.636 MB / 0.8355 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.1796, allocations: 0.5845 MB / 0.836 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.511e-05/0.1797, allocations: 7.938 kB / 0.836 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.1799, allocations: 23.78 kB / 0.8361 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1802, allocations: 60.81 kB / 0.8361 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.1804, allocations: 83.78 kB / 0.8362 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.1806, allocations: 143.5 kB / 0.8363 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.1807, allocations: 29.67 kB / 0.8364 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1809, allocations: 59.83 kB / 0.8364 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.181, allocations: 71.61 kB / 0.8365 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.181, allocations: 12 kB / 0.8365 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.123e-05/0.1811, allocations: 20 kB / 0.8365 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.1812, allocations: 43.83 kB / 0.8366 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.03e-05/0.1813, allocations: 47.67 kB / 0.8366 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.1815, allocations: 163.2 kB / 0.8368 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1815, allocations: 0 / 0.8368 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1815, allocations: 0 / 0.8368 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.1815, allocations: 0 / 0.8368 GB, free: 4.852 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.0006298/0.1821, allocations: 401.3 kB / 0.8371 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1822, allocations: 13.94 kB / 0.8371 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.1823, allocations: 28.8 kB / 0.8372 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.1827, allocations: 185.9 kB / 0.8374 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1827, allocations: 4.375 kB / 0.8374 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1827, allocations: 16.31 kB / 0.8374 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.183, allocations: 161.3 kB / 0.8375 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.183, allocations: 0 / 0.8375 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.183, allocations: 4 kB / 0.8375 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.183, allocations: 4 kB / 0.8375 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.1833, allocations: 55.94 kB / 0.8376 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.1838, allocations: 312.2 kB / 0.8379 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.184, allocations: 46.48 kB / 0.8379 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.1841, allocations: 24.91 kB / 0.838 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.1841, allocations: 0 / 0.838 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.1843, allocations: 148.5 kB / 0.8381 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.1844, allocations: 0 / 0.8381 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004342/0.1848, allocations: 125.5 kB / 0.8382 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.1848, allocations: 85.05 kB / 0.8383 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1851, allocations: 237.1 kB / 0.8385 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.1851, allocations: 29.7 kB / 0.8386 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1852, allocations: 128.1 kB / 0.8387 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.1853, allocations: 11.84 kB / 0.8387 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.1853, allocations: 17.72 kB / 0.8387 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002244/0.1855, allocations: 322.8 kB / 0.839 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1856, allocations: 31.97 kB / 0.839 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.1858, allocations: 73.11 kB / 0.8391 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.186, allocations: 66.47 kB / 0.8392 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.186, allocations: 7.969 kB / 0.8392 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002673/0.1863, allocations: 101.5 kB / 0.8393 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.1863, allocations: 8 kB / 0.8393 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1863, allocations: 3.984 kB / 0.8393 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1863, allocations: 0 / 0.8393 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1864, allocations: 11.98 kB / 0.8393 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1864, allocations: 3.938 kB / 0.8393 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.205e-05/0.1865, allocations: 20.08 kB / 0.8393 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1865, allocations: 4 kB / 0.8393 GB, free: 1.977 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 0.0001124/0.1866, allocations: 126.5 kB / 0.8394 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.1866, allocations: 15.91 kB / 0.8395 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.1867, allocations: 17.31 kB / 0.8395 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1867, allocations: 3.938 kB / 0.8395 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.1867, allocations: 3.938 kB / 0.8395 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1867, allocations: 3.984 kB / 0.8395 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.1868, allocations: 157.2 kB / 0.8396 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1868, allocations: 4 kB / 0.8396 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.383e-05/0.1869, allocations: 11.98 kB / 0.8397 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1869, allocations: 0 / 0.8397 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.1869, allocations: 0 / 0.8397 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1869, allocations: 0 / 0.8397 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1869, allocations: 4 kB / 0.8397 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.1872, allocations: 132.9 kB / 0.8398 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.188e-05/0.1872, allocations: 11.91 kB / 0.8398 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.1873, allocations: 4 kB / 0.8398 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.684e-05/0.1873, allocations: 7.984 kB / 0.8398 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.1874, allocations: 11.94 kB / 0.8398 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.1874, allocations: 7.984 kB / 0.8398 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001801/0.1876, allocations: 169.8 kB / 0.84 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1876, allocations: 0 / 0.84 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002218/0.1878, allocations: 27.94 kB / 0.84 GB, free: 1.215 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.0002426/0.188, allocations: 122.7 kB / 0.8401 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002752/0.1883, allocations: 55.94 kB / 0.8402 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1883, allocations: 0 / 0.8402 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.1884, allocations: 32.11 kB / 0.8402 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.1887, allocations: 41.58 kB / 0.8403 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005749/0.1893, allocations: 326.6 kB / 0.8406 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.1894, allocations: 114.1 kB / 0.8407 GB, free: 500 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.1895, allocations: 11.44 kB / 0.8407 GB, free: 488 kB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/0.1895, allocations: 0 / 0.8407 GB, free: 488 kB / 0.5762 GB Notification: Performance of Templates: time 0.004365/0.1938, allocations: 2.137 MB / 0.8428 GB, free: 14.35 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 -DOMC_BUILD -DUSE_THREAD -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.254557566251606] Failed to read output from testmodel.py, exit status != 0: 0.2013633707538247 0.216949402 0.03241678 Calling exit ...