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.001092/0.001092, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.0009696/0.0009696, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.25/1.25, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002059/0.00206, allocations: 294.6 kB / 291.3 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8879/0.8879, allocations: 169.3 MB / 0.4988 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 99.81 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1635, allocations: 86.98 MB / 0.6808 GB, free: 8.176 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002796/0.1664, allocations: 1.626 MB / 0.6824 GB, free: 6.531 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008225/0.1672, allocations: 0.5462 MB / 0.683 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.632e-05/0.1673, allocations: 0 / 0.683 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.1675, allocations: 23.8 kB / 0.683 GB, free: 5.957 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1677, allocations: 67.67 kB / 0.6831 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.1678, allocations: 67.84 kB / 0.6831 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.168, allocations: 127.6 kB / 0.6832 GB, free: 5.699 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1682, allocations: 53.73 kB / 0.6833 GB, free: 5.645 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.1683, allocations: 63.7 kB / 0.6833 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1684, allocations: 55.75 kB / 0.6834 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.891e-05/0.1685, allocations: 8 kB / 0.6834 GB, free: 5.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.1685, allocations: 27.98 kB / 0.6834 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.1686, allocations: 47.83 kB / 0.6835 GB, free: 5.445 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.009e-05/0.1687, allocations: 59.55 kB / 0.6835 GB, free: 5.387 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.1689, allocations: 139.4 kB / 0.6837 GB, free: 5.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1689, allocations: 4 kB / 0.6837 GB, free: 5.246 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1689, allocations: 0 / 0.6837 GB, free: 5.246 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1689, allocations: 4 kB / 0.6837 GB, free: 5.242 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.0005813/0.1695, allocations: 462.6 kB / 0.6841 GB, free: 4.742 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.1695, allocations: 12.03 kB / 0.6841 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.1696, allocations: 20.75 kB / 0.6842 GB, free: 4.711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.1698, allocations: 236.7 kB / 0.6844 GB, free: 4.441 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.108e-06/0.1698, allocations: 4.375 kB / 0.6844 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1699, allocations: 8.375 kB / 0.6844 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.1701, allocations: 113.9 kB / 0.6845 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1701, allocations: 0 / 0.6845 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1702, allocations: 4 kB / 0.6845 GB, free: 4.309 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1702, allocations: 0 / 0.6845 GB, free: 4.309 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.1704, allocations: 63.94 kB / 0.6846 GB, free: 4.246 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005372/0.1709, allocations: 380.5 kB / 0.6849 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.1711, allocations: 46.48 kB / 0.685 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1712, allocations: 28.84 kB / 0.685 GB, free: 3.738 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.1712, allocations: 0 / 0.685 GB, free: 3.738 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.1715, allocations: 101.1 kB / 0.6851 GB, free: 3.621 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1715, allocations: 0 / 0.6851 GB, free: 3.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000416/0.1719, allocations: 129.3 kB / 0.6852 GB, free: 3.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.172, allocations: 81.11 kB / 0.6853 GB, free: 3.391 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.1722, allocations: 253 kB / 0.6855 GB, free: 3.141 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1722, allocations: 29.7 kB / 0.6856 GB, free: 3.105 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.955e-05/0.1723, allocations: 132 kB / 0.6857 GB, free: 2.973 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.1723, allocations: 7.844 kB / 0.6857 GB, free: 2.965 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.1724, allocations: 17.7 kB / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1725, allocations: 326.8 kB / 0.686 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.1726, allocations: 27.97 kB / 0.6861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1727, allocations: 47.41 kB / 0.6861 GB, free: 2.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.1729, allocations: 74.5 kB / 0.6862 GB, free: 2.445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1729, allocations: 0 / 0.6862 GB, free: 2.445 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002658/0.1732, allocations: 101.4 kB / 0.6863 GB, free: 2.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.1732, allocations: 4 kB / 0.6863 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1733, allocations: 0 / 0.6863 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1733, allocations: 7.938 kB / 0.6863 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1734, allocations: 16.08 kB / 0.6863 GB, free: 2.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1734, allocations: 3.984 kB / 0.6863 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.572e-05/0.1735, allocations: 15.92 kB / 0.6863 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.1735, allocations: 0 / 0.6863 GB, free: 2.293 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 0.0001006/0.1736, allocations: 129.8 kB / 0.6864 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.1736, allocations: 19.72 kB / 0.6865 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.1737, allocations: 17.23 kB / 0.6865 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1737, allocations: 3.938 kB / 0.6865 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1737, allocations: 8 kB / 0.6865 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1737, allocations: 0 / 0.6865 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.1739, allocations: 217.5 kB / 0.6867 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.1739, allocations: 0 / 0.6867 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.754e-05/0.1739, allocations: 11.98 kB / 0.6867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.174, allocations: 0 / 0.6867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.174, allocations: 0 / 0.6867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.174, allocations: 11.88 kB / 0.6867 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.174, allocations: 4 kB / 0.6867 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002814/0.1743, allocations: 124.9 kB / 0.6868 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1743, allocations: 84.92 kB / 0.6869 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.1744, allocations: 4 kB / 0.6869 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.1744, allocations: 11.92 kB / 0.6869 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.1745, allocations: 7.984 kB / 0.6869 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.1745, allocations: 8 kB / 0.6869 GB, free: 1.543 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.1747, allocations: 192.5 kB / 0.6871 GB, free: 1.359 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1747, allocations: 0 / 0.6871 GB, free: 1.359 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.1749, allocations: 16 kB / 0.6871 GB, free: 1.344 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.0001899/0.1751, allocations: 132.3 kB / 0.6873 GB, free: 1.211 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.1754, allocations: 51.94 kB / 0.6873 GB, free: 1.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1754, allocations: 0 / 0.6873 GB, free: 1.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.1755, allocations: 35.84 kB / 0.6874 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1758, allocations: 45.11 kB / 0.6874 GB, free: 1.086 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004726/0.1763, allocations: 320.9 kB / 0.6877 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2488/0.4251, allocations: 0.7236 MB / 0.6884 GB, free: 17.49 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.239e-05/0.4252, allocations: 12.12 kB / 0.6884 GB, free: 17.48 MB / 494.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4252, allocations: 0 / 0.6884 GB, free: 17.48 MB / 494.1 MB Notification: Performance of Templates: time 0.004736/0.4299, allocations: 2.111 MB / 0.6905 GB, free: 17.36 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++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 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