Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0007956/0.0007956, 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.0007787/0.0007787, 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.8976/0.8976, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7069/0.7069, allocations: 154.5 MB / 414.5 MB, free: 0.8438 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.6192 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.373e-05, allocations: 5.891 kB / 0.6193 GB, free: 13.28 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002267/0.002291, allocations: 1.64 MB / 0.6209 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0007253/0.003016, allocations: 0.5804 MB / 0.6214 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.352e-05/0.00309, allocations: 7.938 kB / 0.6214 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.003258, allocations: 23.8 kB / 0.6215 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.00348, allocations: 74.8 kB / 0.6215 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.003638, allocations: 71.84 kB / 0.6216 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.003791, allocations: 139.5 kB / 0.6217 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.003933, allocations: 33.61 kB / 0.6218 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.004093, allocations: 79.8 kB / 0.6218 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.786e-05/0.00417, allocations: 51.88 kB / 0.6219 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.004192, allocations: 11.94 kB / 0.6219 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.669e-05/0.004249, allocations: 27.98 kB / 0.6219 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 7.904e-05/0.004328, allocations: 43.83 kB / 0.622 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.004367, allocations: 31.91 kB / 0.622 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.004548, allocations: 159.4 kB / 0.6221 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.00455, allocations: 0 / 0.6221 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.02e-07/0.004551, allocations: 0 / 0.6221 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.004555, allocations: 0 / 0.6221 GB, free: 10.29 MB / 0.5886 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.0004355/0.00499, allocations: 393.4 kB / 0.6225 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.005026, allocations: 9.469 kB / 0.6225 GB, free: 9.871 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.005144, allocations: 36.72 kB / 0.6226 GB, free: 9.836 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.005368, allocations: 193.1 kB / 0.6227 GB, free: 9.621 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.005377, allocations: 8.312 kB / 0.6228 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.005388, allocations: 8.375 kB / 0.6228 GB, free: 9.605 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.005592, allocations: 157.6 kB / 0.6229 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.005599, allocations: 192 / 0.6229 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.005612, allocations: 8.375 kB / 0.6229 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.005617, allocations: 3.938 kB / 0.6229 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.00573, allocations: 63.88 kB / 0.623 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003584/0.006089, allocations: 304.3 kB / 0.6233 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 7.896e-05/0.006168, allocations: 50.47 kB / 0.6233 GB, free: 8.973 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.263e-05/0.00622, allocations: 24.91 kB / 0.6233 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.006236, allocations: 3.984 kB / 0.6234 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.006404, allocations: 148.5 kB / 0.6235 GB, free: 8.766 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.006405, allocations: 4 kB / 0.6235 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002446/0.00665, allocations: 121.5 kB / 0.6236 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.006683, allocations: 77.11 kB / 0.6237 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.006838, allocations: 244.1 kB / 0.6239 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.00685, allocations: 25.7 kB / 0.6239 GB, free: 8.262 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.006912, allocations: 136 kB / 0.6241 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.006929, allocations: 7.891 kB / 0.6241 GB, free: 8.117 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.006955, allocations: 13.72 kB / 0.6241 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.007034, allocations: 334.8 kB / 0.6244 GB, free: 7.762 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.039e-05/0.007085, allocations: 23.98 kB / 0.6244 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.574e-05/0.007151, allocations: 73.11 kB / 0.6245 GB, free: 7.648 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.007267, allocations: 74.45 kB / 0.6246 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.007269, allocations: 0 / 0.6246 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000136/0.007405, allocations: 105.5 kB / 0.6247 GB, free: 7.457 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.007418, allocations: 4 kB / 0.6247 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.007423, allocations: 4 kB / 0.6247 GB, free: 7.449 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.007435, allocations: 0 / 0.6247 GB, free: 7.449 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.566e-05/0.0075, allocations: 11.98 kB / 0.6247 GB, free: 7.438 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.007505, allocations: 0 / 0.6247 GB, free: 7.438 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.045e-05/0.007545, allocations: 16.08 kB / 0.6247 GB, free: 7.422 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.007554, allocations: 3.938 kB / 0.6247 GB, free: 7.418 MB / 0.5886 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.2e-05/0.007636, allocations: 134.8 kB / 0.6248 GB, free: 7.277 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.007651, allocations: 15.91 kB / 0.6249 GB, free: 7.262 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.007673, allocations: 20.95 kB / 0.6249 GB, free: 7.242 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.007675, allocations: 0 / 0.6249 GB, free: 7.242 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.007679, allocations: 0 / 0.6249 GB, free: 7.242 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.007684, allocations: 4 kB / 0.6249 GB, free: 7.238 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.869e-05/0.007772, allocations: 153.2 kB / 0.625 GB, free: 7.059 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.007773, allocations: 3.938 kB / 0.625 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.007804, allocations: 15.98 kB / 0.6251 GB, free: 7.039 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.007805, allocations: 0 / 0.6251 GB, free: 7.039 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.007811, allocations: 0 / 0.6251 GB, free: 7.039 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.007813, allocations: 3.984 kB / 0.6251 GB, free: 7.035 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.007814, allocations: 0 / 0.6251 GB, free: 7.035 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.007954, allocations: 124.9 kB / 0.6252 GB, free: 6.895 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.266e-05/0.007967, allocations: 11.91 kB / 0.6252 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.00798, allocations: 0 / 0.6252 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.397e-05/0.008014, allocations: 19.98 kB / 0.6252 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.008051, allocations: 8.25 kB / 0.6252 GB, free: 6.855 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.008068, allocations: 4 kB / 0.6252 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001011/0.008169, allocations: 177.8 kB / 0.6254 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.008169, allocations: 0 / 0.6254 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001402/0.00831, allocations: 19.94 kB / 0.6254 GB, free: 6.66 MB / 0.5886 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.0001804/0.00849, allocations: 114.4 kB / 0.6255 GB, free: 6.543 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000156/0.008646, allocations: 59.88 kB / 0.6256 GB, free: 6.484 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.008648, allocations: 0 / 0.6256 GB, free: 6.484 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.378e-05/0.008701, allocations: 31.91 kB / 0.6256 GB, free: 6.453 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001884/0.00889, allocations: 47.62 kB / 0.6256 GB, free: 6.41 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003786/0.009268, allocations: 304.7 kB / 0.6259 GB, free: 6.082 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.977e-05/0.009338, allocations: 106.2 kB / 0.626 GB, free: 5.957 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.00937, allocations: 20.44 kB / 0.6261 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of SimCode: time 6.41e-07/0.009371, allocations: 0 / 0.6261 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of Templates: time 0.002931/0.0123, allocations: 2.139 MB / 0.6281 GB, free: 3.809 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] make -j1 -f IDEAS_dev_IDEAS.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/IDEAS 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/IDEAS master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp:28: ./OMCppIDEAS_dev_IDEAS.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/IDEAS 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: *** [: OMCppIDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 3.3567028176039457] Failed to read output from testmodel.py, exit status != 0: 0.017144803889095783 0.025256872000000003 0.018810113 Calling exit ...