Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.0008181/0.0008181, allocations: 72.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.0008318/0.0008318, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9132/0.9132, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.75/1.75, allocations: 377.8 MB / 0.6229 GB, free: 8.629 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.9822 GB, free: 2.133 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.3e-05, allocations: 9.234 kB / 0.9822 GB, free: 2.125 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001995/0.002018, allocations: 1.654 MB / 0.9838 GB, free: 472 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007561/0.002774, allocations: 0.5805 MB / 0.9844 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.861e-05/0.002843, allocations: 3.938 kB / 0.9844 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.002998, allocations: 23.73 kB / 0.9844 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.003204, allocations: 73.84 kB / 0.9845 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.003362, allocations: 79.78 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.003508, allocations: 131.5 kB / 0.9847 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.003636, allocations: 37.64 kB / 0.9847 GB, free: 15.53 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.003782, allocations: 83.8 kB / 0.9848 GB, free: 15.45 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.675e-05/0.003859, allocations: 51.81 kB / 0.9848 GB, free: 15.4 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.00388, allocations: 8 kB / 0.9848 GB, free: 15.39 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.601e-05/0.003936, allocations: 23.94 kB / 0.9848 GB, free: 15.37 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.264e-05/0.004009, allocations: 47.83 kB / 0.9849 GB, free: 15.32 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.004044, allocations: 27.92 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.004217, allocations: 159.3 kB / 0.9851 GB, free: 15.14 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.004219, allocations: 3.938 kB / 0.9851 GB, free: 15.13 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.022e-06/0.00422, allocations: 0 / 0.9851 GB, free: 15.13 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.004224, allocations: 0 / 0.9851 GB, free: 15.13 MB / 0.948 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.0004352/0.004659, allocations: 401.3 kB / 0.9855 GB, free: 14.71 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.004692, allocations: 12.03 kB / 0.9855 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.004807, allocations: 28.78 kB / 0.9855 GB, free: 14.67 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.005017, allocations: 193.1 kB / 0.9857 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.005026, allocations: 4.375 kB / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.005035, allocations: 4.375 kB / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.005237, allocations: 169.6 kB / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.005243, allocations: 192 / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.005254, allocations: 384 / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.00526, allocations: 7.938 kB / 0.9859 GB, free: 14.26 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.005376, allocations: 67.88 kB / 0.9859 GB, free: 14.19 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003577/0.005734, allocations: 296.3 kB / 0.9862 GB, free: 13.87 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.75e-05/0.005811, allocations: 46.5 kB / 0.9863 GB, free: 13.82 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.424e-05/0.005865, allocations: 28.89 kB / 0.9863 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.005878, allocations: 0 / 0.9863 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.006028, allocations: 152.4 kB / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 7.32e-07/0.006029, allocations: 0 / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0002429/0.006272, allocations: 121.5 kB / 0.9865 GB, free: 13.48 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.006305, allocations: 85.09 kB / 0.9866 GB, free: 13.38 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.006463, allocations: 236.1 kB / 0.9868 GB, free: 13.14 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.006476, allocations: 25.7 kB / 0.9869 GB, free: 13.11 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.89e-05/0.006535, allocations: 128 kB / 0.987 GB, free: 12.98 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.006551, allocations: 7.906 kB / 0.987 GB, free: 12.97 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.00658, allocations: 21.7 kB / 0.987 GB, free: 12.95 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001897/0.00677, allocations: 330.8 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.761e-05/0.006827, allocations: 27.97 kB / 0.9874 GB, free: 12.59 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.045e-05/0.006898, allocations: 73.3 kB / 0.9874 GB, free: 12.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.007009, allocations: 66.47 kB / 0.9875 GB, free: 12.42 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.007011, allocations: 0 / 0.9875 GB, free: 12.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000145/0.007156, allocations: 105.5 kB / 0.9876 GB, free: 12.31 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.007173, allocations: 8 kB / 0.9876 GB, free: 12.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.007178, allocations: 96 / 0.9876 GB, free: 12.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.007193, allocations: 3.984 kB / 0.9876 GB, free: 12.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.217e-05/0.007265, allocations: 11.98 kB / 0.9876 GB, free: 12.29 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.00727, allocations: 4 kB / 0.9876 GB, free: 12.29 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.115e-05/0.007311, allocations: 12.08 kB / 0.9876 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.007321, allocations: 11.88 kB / 0.9876 GB, free: 12.26 MB / 0.948 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 8.937e-05/0.00741, allocations: 130.3 kB / 0.9878 GB, free: 12.12 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.007425, allocations: 19.84 kB / 0.9878 GB, free: 12.11 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.007463, allocations: 24.95 kB / 0.9878 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.007465, allocations: 0 / 0.9878 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.007469, allocations: 0 / 0.9878 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.007472, allocations: 0 / 0.9878 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.007576, allocations: 153.2 kB / 0.988 GB, free: 11.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.22e-07/0.007577, allocations: 0 / 0.988 GB, free: 11.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.385e-05/0.007611, allocations: 19.98 kB / 0.988 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.007612, allocations: 0 / 0.988 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.00762, allocations: 4 kB / 0.988 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.007622, allocations: 4 kB / 0.988 GB, free: 11.87 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.007623, allocations: 0 / 0.988 GB, free: 11.87 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.007772, allocations: 124.9 kB / 0.9881 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.007782, allocations: 7.953 kB / 0.9881 GB, free: 11.72 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.007797, allocations: 3.984 kB / 0.9881 GB, free: 11.72 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.138e-05/0.007828, allocations: 8 kB / 0.9881 GB, free: 11.71 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.007865, allocations: 7.984 kB / 0.9881 GB, free: 11.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.007883, allocations: 11.94 kB / 0.9881 GB, free: 11.69 MB / 0.948 GB Notification: Performance of sorting global known variables: time 9.997e-05/0.007983, allocations: 177.6 kB / 0.9883 GB, free: 11.52 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007983, allocations: 0 / 0.9883 GB, free: 11.52 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001456/0.008129, allocations: 27.95 kB / 0.9883 GB, free: 11.49 MB / 0.948 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.0001611/0.00829, allocations: 128.5 kB / 0.9885 GB, free: 11.36 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.008446, allocations: 55.89 kB / 0.9885 GB, free: 11.31 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.008448, allocations: 0 / 0.9885 GB, free: 11.31 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.08e-05/0.008499, allocations: 27.91 kB / 0.9885 GB, free: 11.28 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.00868, allocations: 41.67 kB / 0.9886 GB, free: 11.24 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003756/0.009056, allocations: 320.5 kB / 0.9889 GB, free: 10.89 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.96e-05/0.009125, allocations: 110.2 kB / 0.989 GB, free: 10.77 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.009158, allocations: 20.48 kB / 0.989 GB, free: 10.75 MB / 0.948 GB Notification: Performance of SimCode: time 5.11e-07/0.009159, allocations: 0 / 0.989 GB, free: 10.75 MB / 0.948 GB Notification: Performance of Templates: time 0.002528/0.01169, allocations: 2.135 MB / 0.9911 GB, free: 8.625 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_12_Buildings.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/Buildings 12.1.2-maint.12.x/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/Buildings 12.1.2-maint.12.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_12_Buildings.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/Buildings 12.1.2-maint.12.x/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: *** [: OMCppBuildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.716425506398082] Failed to read output from testmodel.py, exit status != 0: 0.01589515618979931 0.023495662 0.017734660000000003 Calling exit ...