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.0008603/0.0008603, allocations: 111 kB / 19.7 MB, free: 0.5234 MB / 13.93 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.0009525/0.0009525, allocations: 215.7 kB / 23.01 MB, free: 3.105 MB / 13.93 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.8787/0.8787, allocations: 230.6 MB / 256.8 MB, free: 3.438 MB / 202.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.7098/0.7098, allocations: 203.8 MB / 0.5049 GB, free: 0.6953 MB / 410.7 MB " [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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008934/0.0008934, allocations: 67.89 kB / 0.7194 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4211, allocations: 102 MB / 0.8191 GB, free: 25.23 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002119/0.4232, allocations: 1.674 MB / 0.8207 GB, free: 24.09 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0006656/0.4239, allocations: 0.6203 MB / 0.8213 GB, free: 23.66 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.674e-05/0.4239, allocations: 8.5 kB / 0.8213 GB, free: 23.65 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.4241, allocations: 32.69 kB / 0.8213 GB, free: 23.63 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.4243, allocations: 62.03 kB / 0.8214 GB, free: 23.59 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001569/0.4245, allocations: 73.89 kB / 0.8215 GB, free: 23.56 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.4246, allocations: 145.6 kB / 0.8216 GB, free: 23.49 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.4248, allocations: 39.73 kB / 0.8217 GB, free: 23.47 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.4249, allocations: 62.42 kB / 0.8217 GB, free: 23.44 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 8.996e-05/0.425, allocations: 60.88 kB / 0.8218 GB, free: 23.41 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.425, allocations: 8.125 kB / 0.8218 GB, free: 23.41 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.4251, allocations: 32.89 kB / 0.8218 GB, free: 23.4 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 7.386e-05/0.4252, allocations: 45.58 kB / 0.8219 GB, free: 23.38 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 4.638e-05/0.4252, allocations: 69.94 kB / 0.8219 GB, free: 23.33 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.4254, allocations: 145.3 kB / 0.8221 GB, free: 23.27 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4254, allocations: 0.8125 kB / 0.8221 GB, free: 23.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4254, allocations: 0 / 0.8221 GB, free: 23.27 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.4254, allocations: 2.156 kB / 0.8221 GB, free: 23.27 MB / 0.6355 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.0004065/0.4258, allocations: 403 kB / 0.8224 GB, free: 22.93 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.4258, allocations: 12.03 kB / 0.8225 GB, free: 22.93 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.426, allocations: 29.7 kB / 0.8225 GB, free: 22.91 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.4262, allocations: 192.4 kB / 0.8227 GB, free: 22.74 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.4262, allocations: 3.438 kB / 0.8227 GB, free: 22.74 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.4262, allocations: 6.594 kB / 0.8227 GB, free: 22.74 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.4264, allocations: 113 kB / 0.8228 GB, free: 22.69 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.4264, allocations: 3.938 kB / 0.8228 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.4264, allocations: 1.969 kB / 0.8228 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4264, allocations: 1.188 kB / 0.8228 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.4265, allocations: 65.77 kB / 0.8229 GB, free: 22.67 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003813/0.4269, allocations: 350 kB / 0.8232 GB, free: 22.39 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.679e-05/0.427, allocations: 39.91 kB / 0.8232 GB, free: 22.36 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.879e-05/0.427, allocations: 32.47 kB / 0.8233 GB, free: 22.35 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.4271, allocations: 1.5 kB / 0.8233 GB, free: 22.35 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001379/0.4272, allocations: 92.45 kB / 0.8233 GB, free: 22.28 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.4272, allocations: 3.938 kB / 0.8233 GB, free: 22.28 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002545/0.4274, allocations: 128.7 kB / 0.8235 GB, free: 22.22 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.4275, allocations: 78.64 kB / 0.8235 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.4277, allocations: 260.4 kB / 0.8238 GB, free: 21.97 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.4277, allocations: 27.19 kB / 0.8238 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.82e-05/0.4277, allocations: 134.4 kB / 0.8239 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.4277, allocations: 11.38 kB / 0.824 GB, free: 21.81 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.511e-05/0.4278, allocations: 14.56 kB / 0.824 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.029e-05/0.4278, allocations: 327.4 kB / 0.8243 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.165e-05/0.4279, allocations: 24.16 kB / 0.8243 GB, free: 21.47 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.941e-05/0.4279, allocations: 51.47 kB / 0.8244 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.4281, allocations: 69.3 kB / 0.8244 GB, free: 21.4 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4281, allocations: 4.562 kB / 0.8244 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001712/0.4282, allocations: 105.7 kB / 0.8245 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4283, allocations: 6.844 kB / 0.8245 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4283, allocations: 1.703 kB / 0.8245 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.4283, allocations: 5.719 kB / 0.8245 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.697e-05/0.4283, allocations: 11.92 kB / 0.8246 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4284, allocations: 9.281 kB / 0.8246 GB, free: 21.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.148e-05/0.4284, allocations: 11.03 kB / 0.8246 GB, free: 21.33 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.4284, allocations: 2.062 kB / 0.8246 GB, free: 21.33 MB / 0.6355 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 5.309e-05/0.4285, allocations: 128.5 kB / 0.8247 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.4285, allocations: 20.8 kB / 0.8247 GB, free: 21.2 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.311e-05/0.4285, allocations: 17.72 kB / 0.8247 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4285, allocations: 5.625 kB / 0.8247 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4285, allocations: 4.797 kB / 0.8247 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.4285, allocations: 0 / 0.8247 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.152e-05/0.4286, allocations: 188.1 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4286, allocations: 1.609 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.173e-05/0.4286, allocations: 10.88 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.4286, allocations: 0.7031 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.4286, allocations: 1.562 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4286, allocations: 4.594 kB / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4286, allocations: 0 / 0.8249 GB, free: 21 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.4288, allocations: 133.9 kB / 0.8251 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.31e-05/0.4288, allocations: 13.36 kB / 0.8251 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.4288, allocations: 0 / 0.8251 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.541e-05/0.4288, allocations: 15.03 kB / 0.8251 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.4289, allocations: 7.625 kB / 0.8251 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.4289, allocations: 5.641 kB / 0.8251 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001122/0.429, allocations: 192.1 kB / 0.8253 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6e-08/0.429, allocations: 4 kB / 0.8253 GB, free: 20.77 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001386/0.4291, allocations: 22.12 kB / 0.8253 GB, free: 20.77 MB / 0.6355 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.0001434/0.4293, allocations: 123.1 kB / 0.8254 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001603/0.4294, allocations: 61.16 kB / 0.8255 GB, free: 20.65 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4294, allocations: 1.312 kB / 0.8255 GB, free: 20.65 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.361e-05/0.4295, allocations: 27.38 kB / 0.8255 GB, free: 20.65 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.4297, allocations: 44.47 kB / 0.8256 GB, free: 20.64 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003597/0.43, allocations: 324 kB / 0.8259 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.291e-05/0.4301, allocations: 0.7237 MB / 0.8266 GB, free: 19.7 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.4302, allocations: 17.11 kB / 0.8266 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of SimCode: time 4.61e-07/0.4302, allocations: 0 / 0.8266 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of Templates: time 0.00327/0.4334, allocations: 2.142 MB / 0.8287 GB, free: 19.45 MB / 0.6355 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 -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -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.6783391109202057] Failed to read output from testmodel.py, exit status != 0: 0.43869133084081113 0.44633562800000004 0.019308269000000003 Calling exit ...