Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0007985/0.0007985, 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.0007888/0.0007888, 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.8581/0.8581, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.626/1.626, allocations: 359 MB / 0.6044 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.9517 GB, free: 3.023 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.728e-05/1.86e-05, allocations: 6.281 kB / 0.9517 GB, free: 3.016 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001854/0.001873, allocations: 1.646 MB / 0.9533 GB, free: 1.352 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0006584/0.002531, allocations: 0.5843 MB / 0.9539 GB, free: 0.7617 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.552e-05/0.002597, allocations: 7.938 kB / 0.9539 GB, free: 0.7539 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.002742, allocations: 23.78 kB / 0.9539 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.002937, allocations: 59.67 kB / 0.954 GB, free: 0.6719 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.00309, allocations: 79.78 kB / 0.9541 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.003253, allocations: 147.4 kB / 0.9542 GB, free: 460 kB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.003374, allocations: 29.67 kB / 0.9542 GB, free: 424 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.003521, allocations: 83.73 kB / 0.9543 GB, free: 340 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.229e-05/0.003593, allocations: 47.88 kB / 0.9543 GB, free: 292 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.003614, allocations: 8 kB / 0.9544 GB, free: 284 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.003669, allocations: 23.98 kB / 0.9544 GB, free: 260 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.923e-05/0.003738, allocations: 51.77 kB / 0.9544 GB, free: 208 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.003772, allocations: 35.91 kB / 0.9545 GB, free: 172 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.003938, allocations: 147.4 kB / 0.9546 GB, free: 24 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.003941, allocations: 3.984 kB / 0.9546 GB, free: 20 kB / 0.9011 GB Notification: Performance of FrontEnd: time 9.42e-07/0.003942, allocations: 0 / 0.9546 GB, free: 20 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.003946, allocations: 11.94 kB / 0.9546 GB, free: 8 kB / 0.9011 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.0004306/0.004376, allocations: 393.3 kB / 0.955 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.004408, allocations: 12.03 kB / 0.955 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.004516, allocations: 28.78 kB / 0.955 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.004715, allocations: 196.9 kB / 0.9552 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.004724, allocations: 4.375 kB / 0.9552 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-06/0.004733, allocations: 4.375 kB / 0.9552 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.004931, allocations: 161.6 kB / 0.9554 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.004938, allocations: 8.109 kB / 0.9554 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.004948, allocations: 384 / 0.9554 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.004954, allocations: 7.938 kB / 0.9554 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.005072, allocations: 63.94 kB / 0.9555 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003481/0.005421, allocations: 312.3 kB / 0.9558 GB, free: 14.74 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.331e-05/0.005494, allocations: 38.48 kB / 0.9558 GB, free: 14.69 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.284e-05/0.005547, allocations: 24.91 kB / 0.9558 GB, free: 14.66 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.005561, allocations: 4 kB / 0.9558 GB, free: 14.66 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.005743, allocations: 148.5 kB / 0.956 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 6.81e-07/0.005744, allocations: 0 / 0.956 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0002407/0.005985, allocations: 129.4 kB / 0.9561 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.006021, allocations: 77.11 kB / 0.9562 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.006173, allocations: 240.1 kB / 0.9564 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.006184, allocations: 29.7 kB / 0.9564 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.006239, allocations: 124.1 kB / 0.9565 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.006259, allocations: 19.84 kB / 0.9566 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.472e-05/0.006284, allocations: 9.719 kB / 0.9566 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.244e-05/0.006357, allocations: 338.8 kB / 0.9569 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.24e-05/0.006409, allocations: 23.97 kB / 0.9569 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.406e-05/0.006473, allocations: 73.11 kB / 0.957 GB, free: 13.37 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.006577, allocations: 70.48 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.006579, allocations: 4 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001337/0.006713, allocations: 101.5 kB / 0.9571 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.006724, allocations: 6.188 kB / 0.9571 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.006728, allocations: 0 / 0.9571 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.006738, allocations: 0 / 0.9571 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.867e-05/0.006797, allocations: 11.98 kB / 0.9572 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.006801, allocations: 8.094 kB / 0.9572 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.971e-05/0.006841, allocations: 11.98 kB / 0.9572 GB, free: 13.14 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/0.006849, allocations: 7.938 kB / 0.9572 GB, free: 13.14 MB / 0.9167 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 6.631e-05/0.006915, allocations: 125.8 kB / 0.9573 GB, free: 13 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.26e-05/0.006928, allocations: 11.91 kB / 0.9573 GB, free: 12.99 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.168e-05/0.006949, allocations: 21.03 kB / 0.9573 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.006952, allocations: 3.984 kB / 0.9573 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.006955, allocations: 3.938 kB / 0.9573 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.006958, allocations: 7.875 kB / 0.9574 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.752e-05/0.007045, allocations: 157.2 kB / 0.9575 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007047, allocations: 4 kB / 0.9575 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.00708, allocations: 11.98 kB / 0.9575 GB, free: 12.76 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.007081, allocations: 0 / 0.9575 GB, free: 12.76 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.007088, allocations: 4 kB / 0.9575 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.007088, allocations: 0 / 0.9575 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.00709, allocations: 288 / 0.9575 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.007238, allocations: 132.8 kB / 0.9577 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-06/0.007248, allocations: 11.95 kB / 0.9577 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.00726, allocations: 0 / 0.9577 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.27e-05/0.007293, allocations: 11.98 kB / 0.9577 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/0.007327, allocations: 7.984 kB / 0.9577 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.007343, allocations: 4 kB / 0.9577 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 9.732e-05/0.007441, allocations: 177.6 kB / 0.9579 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.007441, allocations: 0 / 0.9579 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001402/0.007581, allocations: 31.83 kB / 0.9579 GB, free: 12.37 MB / 0.9167 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.0001514/0.007732, allocations: 119.8 kB / 0.958 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001518/0.007884, allocations: 59.88 kB / 0.9581 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.007885, allocations: 0 / 0.9581 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.912e-05/0.007945, allocations: 36.09 kB / 0.9581 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.008127, allocations: 44.78 kB / 0.9581 GB, free: 12.11 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.008483, allocations: 304.3 kB / 0.9584 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.632e-05/0.00855, allocations: 114.2 kB / 0.9585 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.008581, allocations: 16.5 kB / 0.9585 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of SimCode: time 5.91e-07/0.008582, allocations: 0 / 0.9585 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of Templates: time 0.002613/0.01119, allocations: 2.128 MB / 0.9606 GB, free: 9.508 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] make -j1 -f Buildings_11_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 11.1.2-maint.11.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 11.1.2-maint.11.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppBuildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppBuildings_11_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 11.1.2-maint.11.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_11_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.625270730815828] Failed to read output from testmodel.py, exit status != 0: 0.015478882007300854 0.02273934 0.017225203 Calling exit ...