Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.0007215/0.0007215, allocations: 84.44 kB / 20.69 MB, free: 3.871 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.0007381/0.0007381, allocations: 170.3 kB / 23.97 MB, free: 0.5977 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.8295/0.8295, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.5349/0.5349, allocations: 114 MB / 374.7 MB, free: 8.711 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 0.5554 GB, free: 1.227 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.927e-05, allocations: 3.969 kB / 0.5554 GB, free: 1.223 MB / 474.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001885/0.001905, allocations: 1.639 MB / 0.557 GB, free: 15.57 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006531/0.002558, allocations: 0.5805 MB / 0.5576 GB, free: 14.99 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.614e-05/0.002624, allocations: 15.88 kB / 0.5576 GB, free: 14.97 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.002775, allocations: 27.72 kB / 0.5576 GB, free: 14.95 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.002972, allocations: 63.67 kB / 0.5577 GB, free: 14.88 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.003125, allocations: 71.78 kB / 0.5577 GB, free: 14.81 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.003272, allocations: 143.5 kB / 0.5579 GB, free: 14.67 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.003395, allocations: 33.61 kB / 0.5579 GB, free: 14.64 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.003539, allocations: 75.86 kB / 0.558 GB, free: 14.56 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.00362, allocations: 55.75 kB / 0.558 GB, free: 14.51 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.003641, allocations: 12 kB / 0.558 GB, free: 14.5 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.171e-05/0.003703, allocations: 27.92 kB / 0.5581 GB, free: 14.47 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.003775, allocations: 51.83 kB / 0.5581 GB, free: 14.42 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.664e-05/0.003812, allocations: 35.84 kB / 0.5582 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.003979, allocations: 143.5 kB / 0.5583 GB, free: 14.24 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.003981, allocations: 0 / 0.5583 GB, free: 14.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.003982, allocations: 0 / 0.5583 GB, free: 14.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.003986, allocations: 0 / 0.5583 GB, free: 14.24 MB / 490.7 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.0004251/0.004411, allocations: 409.2 kB / 0.5587 GB, free: 13.81 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.004442, allocations: 12.03 kB / 0.5587 GB, free: 13.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.004556, allocations: 28.78 kB / 0.5587 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.004769, allocations: 181.3 kB / 0.5589 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.004778, allocations: 4.375 kB / 0.5589 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.00479, allocations: 4.375 kB / 0.5589 GB, free: 13.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.004992, allocations: 165.5 kB / 0.5591 GB, free: 13.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.004999, allocations: 4.188 kB / 0.5591 GB, free: 13.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.005014, allocations: 8.375 kB / 0.5591 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.005019, allocations: 3.938 kB / 0.5591 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.005133, allocations: 59.94 kB / 0.5591 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.005493, allocations: 312.2 kB / 0.5594 GB, free: 12.97 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.885e-05/0.005571, allocations: 38.55 kB / 0.5595 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.394e-05/0.005625, allocations: 32.91 kB / 0.5595 GB, free: 12.89 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.005638, allocations: 0 / 0.5595 GB, free: 12.89 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001502/0.005788, allocations: 148.4 kB / 0.5596 GB, free: 12.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 7.31e-07/0.005789, allocations: 0 / 0.5596 GB, free: 12.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002446/0.006033, allocations: 125.5 kB / 0.5598 GB, free: 12.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.006067, allocations: 77.11 kB / 0.5598 GB, free: 12.49 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.006226, allocations: 236.1 kB / 0.5601 GB, free: 12.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.006238, allocations: 25.7 kB / 0.5601 GB, free: 12.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.006296, allocations: 139.9 kB / 0.5602 GB, free: 12.08 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.006313, allocations: 11.94 kB / 0.5602 GB, free: 12.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.006343, allocations: 17.72 kB / 0.5602 GB, free: 12.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.006445, allocations: 326.8 kB / 0.5606 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.428e-05/0.006499, allocations: 23.97 kB / 0.5606 GB, free: 11.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.485e-05/0.006564, allocations: 81.05 kB / 0.5607 GB, free: 11.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.006671, allocations: 70.52 kB / 0.5607 GB, free: 11.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006673, allocations: 0 / 0.5607 GB, free: 11.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004526/0.007126, allocations: 101.8 kB / 0.5608 GB, free: 11.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.007139, allocations: 7.984 kB / 0.5608 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.007143, allocations: 0 / 0.5608 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.007156, allocations: 4 kB / 0.5608 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.879e-05/0.007225, allocations: 15.92 kB / 0.5608 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.007229, allocations: 0 / 0.5608 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.944e-05/0.007268, allocations: 11.98 kB / 0.5609 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.007278, allocations: 7.922 kB / 0.5609 GB, free: 11.37 MB / 490.7 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 7.094e-05/0.007349, allocations: 137.9 kB / 0.561 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.007363, allocations: 15.91 kB / 0.561 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.007386, allocations: 13.03 kB / 0.561 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.007388, allocations: 0 / 0.561 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.007391, allocations: 0 / 0.561 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.007395, allocations: 7.922 kB / 0.561 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.461e-05/0.007479, allocations: 149.2 kB / 0.5612 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.007481, allocations: 8 kB / 0.5612 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.00751, allocations: 7.984 kB / 0.5612 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.007512, allocations: 4 kB / 0.5612 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.007519, allocations: 8 kB / 0.5612 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.00752, allocations: 0 / 0.5612 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.00752, allocations: 0 / 0.5612 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.007664, allocations: 132.8 kB / 0.5613 GB, free: 10.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.078e-05/0.007675, allocations: 11.91 kB / 0.5613 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.007686, allocations: 0 / 0.5613 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.495e-05/0.007721, allocations: 11.98 kB / 0.5613 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.007756, allocations: 0 / 0.5613 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.007772, allocations: 11.98 kB / 0.5614 GB, free: 10.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.007873, allocations: 177.8 kB / 0.5615 GB, free: 10.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007873, allocations: 3.938 kB / 0.5615 GB, free: 10.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001401/0.008013, allocations: 16 kB / 0.5615 GB, free: 10.61 MB / 490.7 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.0001565/0.00817, allocations: 116.9 kB / 0.5617 GB, free: 10.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.008324, allocations: 63.81 kB / 0.5617 GB, free: 10.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.008326, allocations: 0 / 0.5617 GB, free: 10.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 5.411e-05/0.00838, allocations: 23.98 kB / 0.5617 GB, free: 10.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.008565, allocations: 49.61 kB / 0.5618 GB, free: 10.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003787/0.008944, allocations: 316.4 kB / 0.5621 GB, free: 10.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.381e-05/0.009008, allocations: 118.4 kB / 0.5622 GB, free: 9.887 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.009039, allocations: 12.5 kB / 0.5622 GB, free: 9.871 MB / 490.7 MB Notification: Performance of SimCode: time 4.21e-07/0.00904, allocations: 3.938 kB / 0.5622 GB, free: 9.867 MB / 490.7 MB Notification: Performance of Templates: time 0.002537/0.01158, allocations: 2.137 MB / 0.5643 GB, free: 7.746 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] make -j1 -f IBPSA_latest_IBPSA.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/IBPSA 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/IBPSA master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppIBPSA_latest_IBPSA.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/IBPSA 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: *** [: OMCppIBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 2.877745791338384] Failed to read output from testmodel.py, exit status != 0: 0.015949600376188755 0.023230382 0.017781028 Calling exit ...