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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 105.4 kB / 15.98 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.001261, allocations: 197.6 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001945, allocations: 291.9 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8611/0.8611, allocations: 169.2 MB / 0.4985 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 96.16 kB / 0.5953 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1625, allocations: 86.97 MB / 0.6803 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003146/0.1657, allocations: 1.703 MB / 0.6819 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.1666, allocations: 0.5339 MB / 0.6825 GB, free: 6.359 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1667, allocations: 3.938 kB / 0.6825 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.1669, allocations: 19.86 kB / 0.6825 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.1672, allocations: 58.81 kB / 0.6825 GB, free: 6.281 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001641/0.1673, allocations: 67.86 kB / 0.6826 GB, free: 6.215 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.1676, allocations: 123.6 kB / 0.6827 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.1678, allocations: 57.73 kB / 0.6828 GB, free: 6.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.168, allocations: 55.7 kB / 0.6828 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1682, allocations: 63.75 kB / 0.6829 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.554e-05/0.1682, allocations: 8 kB / 0.6829 GB, free: 5.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.654e-05/0.1683, allocations: 19.98 kB / 0.6829 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.995e-05/0.1684, allocations: 51.77 kB / 0.683 GB, free: 5.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.389e-05/0.1685, allocations: 55.61 kB / 0.683 GB, free: 5.785 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000195/0.1687, allocations: 107.7 kB / 0.6831 GB, free: 5.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1687, allocations: 0 / 0.6831 GB, free: 5.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1687, allocations: 4 kB / 0.6831 GB, free: 5.676 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1687, allocations: 4 kB / 0.6831 GB, free: 5.672 MB / 494.1 MB 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.000789/0.1695, allocations: 462.7 kB / 0.6836 GB, free: 5.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1696, allocations: 12.03 kB / 0.6836 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.23e-05/0.1696, allocations: 16.75 kB / 0.6836 GB, free: 5.145 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.1699, allocations: 232.8 kB / 0.6838 GB, free: 4.879 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1699, allocations: 8.375 kB / 0.6838 GB, free: 4.871 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.17, allocations: 8.312 kB / 0.6838 GB, free: 4.863 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.1702, allocations: 117.9 kB / 0.6839 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.1703, allocations: 0 / 0.6839 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1703, allocations: 0 / 0.6839 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1703, allocations: 0 / 0.6839 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.1705, allocations: 67.88 kB / 0.684 GB, free: 4.676 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.1711, allocations: 384.5 kB / 0.6844 GB, free: 4.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.1712, allocations: 46.48 kB / 0.6844 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.741e-05/0.1713, allocations: 20.91 kB / 0.6844 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.1714, allocations: 3.984 kB / 0.6844 GB, free: 4.168 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.1716, allocations: 105.1 kB / 0.6845 GB, free: 4.047 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.1716, allocations: 0 / 0.6845 GB, free: 4.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004189/0.1721, allocations: 121.3 kB / 0.6847 GB, free: 3.922 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.1721, allocations: 81.11 kB / 0.6847 GB, free: 3.824 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.1724, allocations: 257 kB / 0.685 GB, free: 3.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1724, allocations: 25.7 kB / 0.685 GB, free: 3.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.498e-05/0.1725, allocations: 132 kB / 0.6851 GB, free: 3.406 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.1725, allocations: 3.906 kB / 0.6851 GB, free: 3.402 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.1725, allocations: 21.7 kB / 0.6852 GB, free: 3.375 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1727, allocations: 326.8 kB / 0.6855 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1728, allocations: 23.97 kB / 0.6855 GB, free: 3.023 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.1729, allocations: 47.41 kB / 0.6855 GB, free: 2.965 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.1731, allocations: 74.5 kB / 0.6856 GB, free: 2.883 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1731, allocations: 0 / 0.6856 GB, free: 2.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002594/0.1734, allocations: 101.4 kB / 0.6857 GB, free: 2.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1734, allocations: 5.875 kB / 0.6857 GB, free: 2.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1734, allocations: 0 / 0.6857 GB, free: 2.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1734, allocations: 7.938 kB / 0.6857 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1735, allocations: 16.08 kB / 0.6857 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1735, allocations: 4 kB / 0.6857 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.859e-05/0.1736, allocations: 15.92 kB / 0.6857 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1736, allocations: 0 / 0.6857 GB, free: 2.73 MB / 494.1 MB 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 9.933e-05/0.1737, allocations: 129.8 kB / 0.6859 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.1738, allocations: 19.72 kB / 0.6859 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.1738, allocations: 21.17 kB / 0.6859 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.1738, allocations: 7.875 kB / 0.6859 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1738, allocations: 8 kB / 0.6859 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1738, allocations: 0 / 0.6859 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.174, allocations: 217.6 kB / 0.6861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.174, allocations: 0 / 0.6861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.1741, allocations: 11.98 kB / 0.6861 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1741, allocations: 0 / 0.6861 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1741, allocations: 0 / 0.6861 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.1741, allocations: 7.938 kB / 0.6862 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1741, allocations: 0 / 0.6862 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.1744, allocations: 120.9 kB / 0.6863 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.1745, allocations: 84.92 kB / 0.6863 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.1745, allocations: 7.984 kB / 0.6864 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.708e-05/0.1746, allocations: 11.88 kB / 0.6864 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.204e-05/0.1746, allocations: 11.98 kB / 0.6864 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.1747, allocations: 4 kB / 0.6864 GB, free: 1.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001604/0.1748, allocations: 196.4 kB / 0.6866 GB, free: 1.793 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1748, allocations: 0 / 0.6866 GB, free: 1.793 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.1751, allocations: 20 kB / 0.6866 GB, free: 1.773 MB / 494.1 MB 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.0002166/0.1753, allocations: 132.4 kB / 0.6867 GB, free: 1.641 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.1756, allocations: 55.94 kB / 0.6868 GB, free: 1.586 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1756, allocations: 0 / 0.6868 GB, free: 1.586 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1757, allocations: 27.92 kB / 0.6868 GB, free: 1.559 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.176, allocations: 39.91 kB / 0.6868 GB, free: 1.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005263/0.1765, allocations: 358.2 kB / 0.6872 GB, free: 1.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.1768, allocations: 0.7158 MB / 0.6879 GB, free: 404 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.1768, allocations: 15.44 kB / 0.6879 GB, free: 392 kB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1768, allocations: 0 / 0.6879 GB, free: 392 kB / 494.1 MB Notification: Performance of Templates: time 0.2511/0.4279, allocations: 2.108 MB / 0.6899 GB, free: 17.38 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++14 -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 2.0.0-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 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:13: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