Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo", uses=false) Using package ScalableTestGrids with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4") translateModel(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 107.8 kB / 18.37 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009598/0.0009598, allocations: 191 kB / 19.3 MB, free: 3.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06093/0.06093, allocations: 14.16 MB / 286.7 MB, free: 13.89 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 2.632/2.632, allocations: 461.2 MB / 0.7801 GB, free: 107.2 MB / 0.6545 GB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ScalableTestGrids requested package PowerGrids of version 1.0.2. PowerGrids 1.0.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 87.86 kB / 0.963 GB, free: 2.004 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8703/0.8719, allocations: 172.1 MB / 1.131 GB, free: 28.88 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4): time 2.841/3.713, allocations: 1.425 GB / 2.556 GB, free: 12.29 MB / 1.577 GB Notification: Performance of NFInst.instExpressions: time 2.088/5.801, allocations: 0.4905 GB / 3.047 GB, free: 14.73 MB / 1.905 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.306/6.107, allocations: 4.986 MB / 3.052 GB, free: 14.73 MB / 1.905 GB Notification: Performance of NFTyping.typeComponents: time 0.2686/6.376, allocations: 75.96 MB / 3.126 GB, free: 11.2 MB / 1.905 GB Notification: Performance of NFTyping.typeBindings: time 0.7238/7.099, allocations: 195 MB / 3.316 GB, free: 8.113 MB / 1.983 GB Notification: Performance of NFTyping.typeClassSections: time 0.1709/7.27, allocations: 53.32 MB / 3.368 GB, free: 13.71 MB / 2.03 GB Notification: Performance of NFFlatten.flatten: time 3.506/10.78, allocations: 489 MB / 3.846 GB, free: 65.88 MB / 2.438 GB Notification: Performance of NFFlatten.resolveConnections: time 0.1784/10.95, allocations: 51.36 MB / 3.896 GB, free: 69.21 MB / 2.453 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3463/11.3, allocations: 160.3 MB / 4.053 GB, free: 53.78 MB / 2.453 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3207/11.62, allocations: 174.5 MB / 4.223 GB, free: 25.11 MB / 2.453 GB Notification: Performance of NFPackage.collectConstants: time 0.1094/11.73, allocations: 21.86 MB / 4.244 GB, free: 25.11 MB / 2.453 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2327/11.96, allocations: 40.93 MB / 4.284 GB, free: 25.11 MB / 2.453 GB Notification: Performance of NFScalarize.scalarize: time 0.107/12.07, allocations: 49.99 MB / 4.333 GB, free: 15.55 MB / 2.453 GB Notification: Performance of NFVerifyModel.verify: time 0.4888/12.56, allocations: 162.3 MB / 4.492 GB, free: 6.441 MB / 2.5 GB Notification: Performance of NFConvertDAE.convert: time 2.176/14.74, allocations: 355.9 MB / 4.839 GB, free: 260.1 MB / 2.641 GB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/14.74, allocations: 3.25 kB / 4.839 GB, free: 260.1 MB / 2.641 GB Notification: Performance of FrontEnd: time 1.884e-06/14.74, allocations: 2.188 kB / 4.839 GB, free: 260.1 MB / 2.641 GB Notification: Performance of Transformations before backend: time 0.01271/14.75, allocations: 1.312 kB / 4.839 GB, free: 260.1 MB / 2.641 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51079 * Number of variables: 51079 Notification: Performance of Generate backend data structure: time 1.436/16.19, allocations: 371.3 MB / 5.202 GB, free: 99.13 MB / 2.641 GB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/16.19, allocations: 12.03 kB / 5.202 GB, free: 99.12 MB / 2.641 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2191/16.4, allocations: 38.17 MB / 5.239 GB, free: 62.54 MB / 2.641 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4916/16.9, allocations: 154.5 MB / 5.39 GB, free: 8.711 MB / 2.688 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.02128/16.92, allocations: 14.93 MB / 5.405 GB, free: 260 kB / 2.688 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.07959/17, allocations: 19.69 MB / 5.424 GB, free: 3.102 MB / 2.703 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.577/18.57, allocations: 206.9 MB / 5.626 GB, free: 1.264 GB / 2.875 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.01307/18.59, allocations: 417.7 kB / 5.626 GB, free: 1.264 GB / 2.875 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.06173/18.65, allocations: 8.069 MB / 5.634 GB, free: 1.264 GB / 2.875 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01396/18.66, allocations: 4.842 MB / 5.639 GB, free: 1.264 GB / 2.875 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5541/19.22, allocations: 196.2 MB / 5.83 GB, free: 1.261 GB / 2.875 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 2.167/21.38, allocations: 1.34 GB / 7.17 GB, free: 47.61 MB / 2.875 GB Notification: Performance of preOpt comSubExp (simulation): time 2.754/24.14, allocations: 0.6257 GB / 7.796 GB, free: 0.9658 GB / 2.875 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2433/24.38, allocations: 94.35 MB / 7.888 GB, free: 0.9448 GB / 2.875 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02261/24.4, allocations: 2.386 MB / 7.89 GB, free: 0.9446 GB / 2.875 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003784/24.41, allocations: 2.184 MB / 7.892 GB, free: 0.9431 GB / 2.875 GB Notification: Performance of pre-optimization done (n=21307): time 0.001631/24.41, allocations: 0 / 7.892 GB, free: 0.9431 GB / 2.875 GB Notification: Performance of matching and sorting (n=21307): time 1.927/26.34, allocations: 277.2 MB / 8.163 GB, free: 1.194 GB / 2.875 GB Warning: Out of memory! Faking a stack overflow. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:161:5-161:157:writable] Error: Internal error Stack overflow in DAEMode.getEqSystemDAEmode... [bt] #1 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_out_of_memory) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so() [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.addVariables) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(HpcOmTaskGraph.createTaskGraph1) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(List.fold) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(HpcOmTaskGraph.createTaskGraph0) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEOptimize.evaluateOutputsOnly) [bt] #10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.getEqSystemDAEmode) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(SimCodeMain.translateModelCallBackendOBDAEMode) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(SimCodeMain.translateModel) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.translateModel) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.cevalInteractiveFunctions3) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions2) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.ceval) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExpr) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExprToStr) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate2) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand2) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.interactivemodeZMQ) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main2) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(__omc_main) [bt] #28 /lib/x86_64-linux-gnu/libc.so.6() [bt] #29 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main) [bt] #30 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/bin/omc() Error: Internal error SimCode DAEmode: The model ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4 could not be translated