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.0007464/0.0007464, allocations: 100.4 kB / 19.7 MB, free: 448 kB / 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.0007788/0.0007788, allocations: 210.4 kB / 22.99 MB, free: 2.977 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.9051/0.9051, allocations: 230.6 MB / 256.8 MB, free: 9.605 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.7369/0.7369, allocations: 203.8 MB / 0.5049 GB, free: 10.42 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.001307/0.001307, allocations: 63.41 kB / 0.7194 GB, free: 3.566 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4212, allocations: 102 MB / 0.819 GB, free: 1.328 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001968/0.4232, allocations: 1.647 MB / 0.8206 GB, free: 212 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006413/0.4238, allocations: 0.5845 MB / 0.8212 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.87e-05/0.4239, allocations: 3.188 kB / 0.8212 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.4241, allocations: 32.44 kB / 0.8212 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.4243, allocations: 62.28 kB / 0.8213 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.4244, allocations: 77.97 kB / 0.8213 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.4246, allocations: 129.9 kB / 0.8215 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.4247, allocations: 41.08 kB / 0.8215 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.4248, allocations: 63.11 kB / 0.8216 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.48e-05/0.4249, allocations: 64.09 kB / 0.8216 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.4249, allocations: 10.38 kB / 0.8216 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.756e-05/0.425, allocations: 30.97 kB / 0.8217 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.472e-05/0.4251, allocations: 47.92 kB / 0.8217 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.438e-05/0.4251, allocations: 47.28 kB / 0.8218 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.4253, allocations: 144.1 kB / 0.8219 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4253, allocations: 0.75 kB / 0.8219 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.684e-06/0.4253, allocations: 2.719 kB / 0.8219 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.4253, allocations: 0 / 0.8219 GB, free: 15.46 MB / 0.6198 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.0004335/0.4257, allocations: 407.5 kB / 0.8223 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.4258, allocations: 11.91 kB / 0.8223 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.4259, allocations: 27.77 kB / 0.8223 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.4261, allocations: 187.6 kB / 0.8225 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.4261, allocations: 9.906 kB / 0.8225 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.4261, allocations: 3.25 kB / 0.8225 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.4263, allocations: 165.6 kB / 0.8227 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.4263, allocations: 1.375 kB / 0.8227 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.4264, allocations: 0.5625 kB / 0.8227 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.4264, allocations: 1.656 kB / 0.8227 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.4265, allocations: 67.33 kB / 0.8227 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.4269, allocations: 306.5 kB / 0.823 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 8.461e-05/0.4269, allocations: 44.45 kB / 0.8231 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.723e-05/0.427, allocations: 28.84 kB / 0.8231 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.427, allocations: 1.078 kB / 0.8231 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.4272, allocations: 150.6 kB / 0.8232 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.4272, allocations: 0 / 0.8232 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000251/0.4274, allocations: 125.3 kB / 0.8234 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.4275, allocations: 86.2 kB / 0.8234 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.4276, allocations: 236 kB / 0.8237 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.4276, allocations: 25.7 kB / 0.8237 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.153e-05/0.4277, allocations: 131.8 kB / 0.8238 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.4277, allocations: 14.56 kB / 0.8238 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.4277, allocations: 18.66 kB / 0.8239 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.647e-05/0.4278, allocations: 328.4 kB / 0.8242 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6e-05/0.4279, allocations: 23.59 kB / 0.8242 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.334e-05/0.428, allocations: 82.3 kB / 0.8243 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.4281, allocations: 61.67 kB / 0.8243 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4281, allocations: 1 kB / 0.8243 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001525/0.4282, allocations: 108.9 kB / 0.8244 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.4282, allocations: 5.844 kB / 0.8244 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4282, allocations: 5.25 kB / 0.8244 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.4283, allocations: 1.281 kB / 0.8244 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.736e-05/0.4283, allocations: 11.12 kB / 0.8245 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4283, allocations: 5.984 kB / 0.8245 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.238e-05/0.4284, allocations: 13.88 kB / 0.8245 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.4284, allocations: 6.875 kB / 0.8245 GB, free: 13.38 MB / 0.6198 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.898e-05/0.4285, allocations: 124 kB / 0.8246 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.4285, allocations: 17.19 kB / 0.8246 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.4285, allocations: 15.78 kB / 0.8246 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4285, allocations: 0.5625 kB / 0.8246 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4285, allocations: 4.938 kB / 0.8246 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4285, allocations: 0.75 kB / 0.8246 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.472e-05/0.4286, allocations: 152.6 kB / 0.8248 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4286, allocations: 0 / 0.8248 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.4286, allocations: 14.89 kB / 0.8248 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4286, allocations: 1.312 kB / 0.8248 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.4286, allocations: 0.7969 kB / 0.8248 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.4286, allocations: 1.406 kB / 0.8248 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4286, allocations: 0 / 0.8248 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.4288, allocations: 129.8 kB / 0.8249 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.044e-05/0.4288, allocations: 8.719 kB / 0.8249 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.4288, allocations: 0.6094 kB / 0.8249 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.439e-05/0.4289, allocations: 14.75 kB / 0.8249 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.4289, allocations: 19.67 kB / 0.825 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4289, allocations: 6.359 kB / 0.825 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001131/0.429, allocations: 179 kB / 0.8251 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.429, allocations: 1.031 kB / 0.8251 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001501/0.4292, allocations: 26.41 kB / 0.8252 GB, free: 12.87 MB / 0.6198 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.0001594/0.4293, allocations: 121.2 kB / 0.8253 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001679/0.4295, allocations: 58.45 kB / 0.8253 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4295, allocations: 1.281 kB / 0.8253 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.908e-05/0.4296, allocations: 26.94 kB / 0.8254 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.4298, allocations: 42.19 kB / 0.8254 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004306/0.4302, allocations: 328.9 kB / 0.8257 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.014e-05/0.4303, allocations: 109.8 kB / 0.8258 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.4303, allocations: 13.66 kB / 0.8258 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of SimCode: time 3.7e-07/0.4303, allocations: 0 / 0.8258 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of Templates: time 0.003162/0.4335, allocations: 2.124 MB / 0.8279 GB, free: 12.16 MB / 0.6198 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.77929171314463] Failed to read output from testmodel.py, exit status != 0: 0.4396214410662651 0.447564018 0.020437332000000002 Calling exit ...