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.0008124/0.0008124, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007598/0.0007598, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8264/0.8264, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.001344/0.001344, allocations: 232.7 kB / 260.2 MB, free: 13.02 MB / 250.7 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 0.6797/0.6797, allocations: 138.4 MB / 455.1 MB, free: 1.598 MB / 362.7 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: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.6475 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.718e-05, allocations: 2.281 kB / 0.6475 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001726/0.001743, allocations: 1.65 MB / 0.6491 GB, free: 27.57 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0006316/0.002374, allocations: 0.5774 MB / 0.6497 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.066e-05/0.002445, allocations: 2.75 kB / 0.6497 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.0026, allocations: 30.17 kB / 0.6497 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.002805, allocations: 76.34 kB / 0.6498 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.002966, allocations: 75.25 kB / 0.6498 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.003103, allocations: 137.7 kB / 0.65 GB, free: 26.9 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.003232, allocations: 30.27 kB / 0.65 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.003382, allocations: 79.52 kB / 0.6501 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.003456, allocations: 50.58 kB / 0.6501 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.00348, allocations: 9.5 kB / 0.6501 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 5.551e-05/0.003536, allocations: 28.91 kB / 0.6502 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 6.695e-05/0.003603, allocations: 48.3 kB / 0.6502 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.003639, allocations: 37.44 kB / 0.6503 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0001761/0.003815, allocations: 154 kB / 0.6504 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.003818, allocations: 0 / 0.6504 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of FrontEnd: time 9.02e-07/0.003819, allocations: 0 / 0.6504 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.003823, allocations: 1.438 kB / 0.6504 GB, free: 26.63 MB / 0.5105 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.0003902/0.004213, allocations: 396 kB / 0.6508 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.004247, allocations: 10.41 kB / 0.6508 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.004356, allocations: 30.34 kB / 0.6508 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.004536, allocations: 191.7 kB / 0.651 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.004546, allocations: 2.094 kB / 0.651 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.004558, allocations: 8.031 kB / 0.651 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.004744, allocations: 156.5 kB / 0.6512 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.004752, allocations: 9.078 kB / 0.6512 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.004764, allocations: 5.625 kB / 0.6512 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.004769, allocations: 5.156 kB / 0.6512 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.004882, allocations: 64.5 kB / 0.6512 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.005206, allocations: 307.3 kB / 0.6515 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.871e-05/0.005284, allocations: 43.64 kB / 0.6516 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.476e-05/0.005339, allocations: 26.36 kB / 0.6516 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.005352, allocations: 5.188 kB / 0.6516 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.005488, allocations: 150.1 kB / 0.6517 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.005489, allocations: 3.938 kB / 0.6517 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0002414/0.00573, allocations: 111.8 kB / 0.6519 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.005752, allocations: 78.45 kB / 0.6519 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.005889, allocations: 240.7 kB / 0.6522 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.626e-06/0.005898, allocations: 34.81 kB / 0.6522 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.192e-05/0.00594, allocations: 129 kB / 0.6523 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.005956, allocations: 14.27 kB / 0.6523 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.00598, allocations: 16.61 kB / 0.6523 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 3.898e-05/0.006019, allocations: 331.7 kB / 0.6527 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.189e-05/0.006071, allocations: 25.72 kB / 0.6527 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.588e-05/0.006127, allocations: 77.95 kB / 0.6528 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.622e-05/0.006223, allocations: 71.69 kB / 0.6528 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.006225, allocations: 0 / 0.6528 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001274/0.006352, allocations: 102 kB / 0.6529 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.006363, allocations: 7.312 kB / 0.6529 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.006368, allocations: 5.5 kB / 0.6529 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.006381, allocations: 1.438 kB / 0.6529 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.582e-05/0.006446, allocations: 15.03 kB / 0.653 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.006453, allocations: 5.344 kB / 0.653 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.115e-05/0.006494, allocations: 14.86 kB / 0.653 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.006502, allocations: 5.25 kB / 0.653 GB, free: 24.31 MB / 0.5105 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 5.971e-05/0.006562, allocations: 129.3 kB / 0.6531 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.006575, allocations: 15.91 kB / 0.6531 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.242e-05/0.006598, allocations: 22.61 kB / 0.6531 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.006599, allocations: 0 / 0.6531 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.006604, allocations: 3.938 kB / 0.6531 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.006606, allocations: 1.719 kB / 0.6531 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.465e-05/0.006681, allocations: 153 kB / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.006682, allocations: 0 / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.958e-05/0.006711, allocations: 12.08 kB / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.01e-07/0.006712, allocations: 0 / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.006718, allocations: 1.094 kB / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.006719, allocations: 0 / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.00672, allocations: 1.125 kB / 0.6533 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.006848, allocations: 133.2 kB / 0.6534 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-06/0.006858, allocations: 11.41 kB / 0.6534 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.006871, allocations: 1.156 kB / 0.6534 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.121e-05/0.006902, allocations: 17.11 kB / 0.6535 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.482e-05/0.006937, allocations: 7.391 kB / 0.6535 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.006952, allocations: 3.406 kB / 0.6535 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.343e-05/0.007035, allocations: 175.8 kB / 0.6536 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.007035, allocations: 4 kB / 0.6536 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001398/0.007175, allocations: 21.23 kB / 0.6537 GB, free: 23.74 MB / 0.5105 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.0001398/0.007315, allocations: 109.6 kB / 0.6538 GB, free: 23.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001497/0.007465, allocations: 67.53 kB / 0.6538 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.007466, allocations: 0 / 0.6538 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 5.045e-05/0.007517, allocations: 28.69 kB / 0.6539 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001845/0.007701, allocations: 38.75 kB / 0.6539 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003313/0.008033, allocations: 312.3 kB / 0.6542 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.521e-05/0.008088, allocations: 115 kB / 0.6543 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.008118, allocations: 21.77 kB / 0.6543 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of SimCode: time 2.7e-07/0.008119, allocations: 3.938 kB / 0.6543 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of Templates: time 0.00248/0.0106, allocations: 2.135 MB / 0.6564 GB, free: 22.12 MB / 0.5105 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/jenkins/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/jenkins/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' 115 | 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 19 | void* jsonWriterInit( | ^ 20 | const char* instanceName, 21 | const char* fileName, 22 | const int dumpAtDestruction, 23 | const int numKeys, 24 | char** varKeys){ | ~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 3.4208792690187693] Failed to read output from testmodel.py, exit status != 0: 0.014792639762163162 0.020316024000000002 0.015289334000000002 Calling exit ...