Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001029/0.001029, allocations: 80.48 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.0008268/0.0008268, 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.868/0.868, allocations: 177.1 MB / 203.5 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.777/1.777, allocations: 389 MB / 0.6338 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 3.938 kB / 1.001 GB, free: 13.06 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.146e-05, allocations: 9.234 kB / 1.001 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002113/0.002145, allocations: 1.643 MB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007497/0.002894, allocations: 0.5727 MB / 1.003 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.002976, allocations: 3.938 kB / 1.003 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.003164, allocations: 35.66 kB / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.003395, allocations: 67.67 kB / 1.003 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.003591, allocations: 75.78 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000159/0.00375, allocations: 143.4 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.003899, allocations: 33.66 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.004065, allocations: 75.86 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.004151, allocations: 51.81 kB / 1.004 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.004176, allocations: 8 kB / 1.004 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.979e-05/0.004236, allocations: 27.92 kB / 1.004 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.004309, allocations: 51.83 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.815e-05/0.004347, allocations: 31.86 kB / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.004546, allocations: 151.4 kB / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.004548, allocations: 0 / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.82e-07/0.004549, allocations: 0 / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.004554, allocations: 0 / 1.004 GB, free: 10.07 MB / 0.9636 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.000463/0.005017, allocations: 405.2 kB / 1.004 GB, free: 9.645 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.005057, allocations: 12.75 kB / 1.004 GB, free: 9.633 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.005205, allocations: 28.83 kB / 1.004 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.005439, allocations: 181.4 kB / 1.004 GB, free: 9.402 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.005449, allocations: 4.375 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.005459, allocations: 4.375 kB / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.005666, allocations: 161.6 kB / 1.005 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.005673, allocations: 192 / 1.005 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.005686, allocations: 4.375 kB / 1.005 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.005693, allocations: 11.94 kB / 1.005 GB, free: 9.203 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.00581, allocations: 67.86 kB / 1.005 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.006176, allocations: 304.2 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.882e-05/0.006255, allocations: 46.48 kB / 1.005 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.375e-05/0.006309, allocations: 28.91 kB / 1.005 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.006322, allocations: 0 / 1.005 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.006485, allocations: 152.5 kB / 1.005 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 6.71e-07/0.006485, allocations: 0 / 1.005 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0002449/0.00673, allocations: 121.5 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.006766, allocations: 81.11 kB / 1.005 GB, free: 8.32 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.006925, allocations: 240.1 kB / 1.006 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.006938, allocations: 29.64 kB / 1.006 GB, free: 8.039 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.172e-05/0.007, allocations: 136 kB / 1.006 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.007017, allocations: 7.891 kB / 1.006 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.007047, allocations: 17.72 kB / 1.006 GB, free: 7.871 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.633e-05/0.007133, allocations: 326.8 kB / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.589e-05/0.007189, allocations: 27.97 kB / 1.006 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.748e-05/0.007256, allocations: 73.11 kB / 1.006 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.007369, allocations: 74.48 kB / 1.006 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.007371, allocations: 0 / 1.006 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001408/0.007512, allocations: 101.6 kB / 1.006 GB, free: 7.238 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.007525, allocations: 14.02 kB / 1.006 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.00753, allocations: 0 / 1.006 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.007541, allocations: 0 / 1.006 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.522e-05/0.007607, allocations: 11.98 kB / 1.006 GB, free: 7.215 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.007612, allocations: 4 kB / 1.006 GB, free: 7.211 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.027e-05/0.007652, allocations: 7.984 kB / 1.006 GB, free: 7.203 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-06/0.00766, allocations: 7.938 kB / 1.006 GB, free: 7.195 MB / 0.9636 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 7.4e-05/0.007734, allocations: 129.8 kB / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.00775, allocations: 23.89 kB / 1.006 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.007773, allocations: 17.03 kB / 1.006 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.007775, allocations: 3.938 kB / 1.007 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.007779, allocations: 0 / 1.007 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.007783, allocations: 3.984 kB / 1.007 GB, free: 7.012 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.848e-05/0.007871, allocations: 149.2 kB / 1.007 GB, free: 6.836 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.007872, allocations: 0 / 1.007 GB, free: 6.836 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.123e-05/0.007903, allocations: 11.98 kB / 1.007 GB, free: 6.824 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.007904, allocations: 0 / 1.007 GB, free: 6.824 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.007912, allocations: 0 / 1.007 GB, free: 6.824 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.007913, allocations: 4 kB / 1.007 GB, free: 6.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.007914, allocations: 4 kB / 1.007 GB, free: 6.816 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.00806, allocations: 125.2 kB / 1.007 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.008073, allocations: 15.91 kB / 1.007 GB, free: 6.66 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.008087, allocations: 0 / 1.007 GB, free: 6.66 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.259e-05/0.008119, allocations: 8.031 kB / 1.007 GB, free: 6.652 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/0.008156, allocations: 7.984 kB / 1.007 GB, free: 6.645 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.008173, allocations: 7.984 kB / 1.007 GB, free: 6.637 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001047/0.008278, allocations: 177.8 kB / 1.007 GB, free: 6.465 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008278, allocations: 4 kB / 1.007 GB, free: 6.461 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001426/0.008421, allocations: 23.94 kB / 1.007 GB, free: 6.438 MB / 0.9636 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.000172/0.008593, allocations: 133.9 kB / 1.007 GB, free: 6.301 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001918/0.008784, allocations: 59.88 kB / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.008786, allocations: 0 / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.428e-05/0.00885, allocations: 27.92 kB / 1.007 GB, free: 6.215 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.009045, allocations: 43.02 kB / 1.007 GB, free: 6.172 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000397/0.009442, allocations: 312.3 kB / 1.008 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.189e-05/0.009514, allocations: 110.4 kB / 1.008 GB, free: 5.703 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.009546, allocations: 16.5 kB / 1.008 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of SimCode: time 8.02e-07/0.009546, allocations: 0 / 1.008 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of Templates: time 0.002696/0.01224, allocations: 2.127 MB / 1.01 GB, free: 3.57 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_latest_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 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/Buildings master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_latest_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 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: *** [: OMCppBuildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.8209281004965305] Failed to read output from testmodel.py, exit status != 0: 0.017584791406989098 0.028129192 0.021972007 Calling exit ...