Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_N_3_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: "" <> buildModelFMU(ScalableTestGrids.Models.Type1.Type1_reduced_N_3_M_4,fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids_Models_Type1_Type1_reduced_N_3_M_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestGrids.Models.Type1.Type1_reduced_N_3_M_4,fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids_Models_Type1_Type1_reduced_N_3_M_4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008231/0.0008231, allocations: 102.5 kB / 17.32 MB, free: 6.348 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.0006985/0.0006986, allocations: 182.2 kB / 18.22 MB, free: 5.52 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.162/1.162, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05527/0.05527, allocations: 14.16 MB / 286.9 MB, free: 13.9 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 2.606/2.606, allocations: 464.3 MB / 0.7842 GB, free: 107.7 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.0006098/0.0006099, allocations: 23.98 kB / 0.9703 GB, free: 14.78 MB / 0.7483 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8938/0.8944, allocations: 176.2 MB / 1.142 GB, free: 25.2 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_3_M_4): time 1.493/2.387, allocations: 0.778 GB / 1.92 GB, free: 11.26 MB / 1.28 GB Notification: Performance of NFInst.instExpressions: time 1.178/3.566, allocations: 277.3 MB / 2.191 GB, free: 48 kB / 1.483 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.1552/3.721, allocations: 2.812 MB / 2.194 GB, free: 48 kB / 1.483 GB Notification: Performance of NFTyping.typeComponents: time 0.1226/3.844, allocations: 35.69 MB / 2.229 GB, free: 15.01 MB / 1.499 GB Notification: Performance of NFTyping.typeBindings: time 0.315/4.159, allocations: 98.03 MB / 2.324 GB, free: 3.078 MB / 1.499 GB Notification: Performance of NFTyping.typeClassSections: time 0.0833/4.242, allocations: 27.6 MB / 2.351 GB, free: 11.5 MB / 1.515 GB Notification: Performance of NFFlatten.flatten: time 0.3561/4.598, allocations: 268.4 MB / 2.613 GB, free: 3.012 MB / 1.718 GB Notification: Performance of NFFlatten.resolveConnections: time 0.09029/4.688, allocations: 26.26 MB / 2.639 GB, free: 8.945 MB / 1.749 GB Notification: Performance of NFEvalConstants.evaluate: time 0.1419/4.83, allocations: 67.11 MB / 2.705 GB, free: 6.656 MB / 1.812 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1343/4.965, allocations: 76.95 MB / 2.78 GB, free: 11.86 MB / 1.89 GB Notification: Performance of NFPackage.collectConstants: time 0.03669/5.001, allocations: 4.066 MB / 2.784 GB, free: 7.789 MB / 1.89 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08774/5.089, allocations: 11.32 MB / 2.795 GB, free: 12.48 MB / 1.905 GB Notification: Performance of NFScalarize.scalarize: time 0.0367/5.126, allocations: 17.92 MB / 2.812 GB, free: 11.26 MB / 1.921 GB Notification: Performance of NFVerifyModel.verify: time 1.083/6.209, allocations: 71.12 MB / 2.882 GB, free: 149.6 MB / 1.937 GB Notification: Performance of NFConvertDAE.convert: time 0.2409/6.45, allocations: 173.1 MB / 3.051 GB, free: 118.1 MB / 1.937 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/6.45, allocations: 0 / 3.051 GB, free: 118.1 MB / 1.937 GB Notification: Performance of FrontEnd: time 2.866e-06/6.45, allocations: 0 / 3.051 GB, free: 118.1 MB / 1.937 GB Notification: Performance of Transformations before backend: time 0.006522/6.456, allocations: 0 / 3.051 GB, free: 118.1 MB / 1.937 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28285 * Number of variables: 28285 Notification: Performance of Generate backend data structure: time 0.5407/6.997, allocations: 171 MB / 3.218 GB, free: 39.57 MB / 1.937 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/6.997, allocations: 8.031 kB / 3.218 GB, free: 39.57 MB / 1.937 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0431/7.04, allocations: 13.93 MB / 3.231 GB, free: 35.99 MB / 1.937 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1051/7.145, allocations: 21.18 MB / 3.252 GB, free: 26.59 MB / 1.937 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1914/7.337, allocations: 80.14 MB / 3.33 GB, free: 7.758 MB / 1.968 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.009332/7.346, allocations: 8.272 MB / 3.338 GB, free: 3.07 MB / 1.968 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.03257/7.379, allocations: 10.91 MB / 3.349 GB, free: 11.78 MB / 1.983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2847/7.664, allocations: 115.1 MB / 3.461 GB, free: 4.387 MB / 2.062 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.005351/7.669, allocations: 231.7 kB / 3.462 GB, free: 4.297 MB / 2.062 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.02424/7.693, allocations: 4.465 MB / 3.466 GB, free: 15.83 MB / 2.077 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002084/7.695, allocations: 2.68 MB / 3.469 GB, free: 13.15 MB / 2.077 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.9567/8.652, allocations: 109.7 MB / 3.576 GB, free: 0.8739 GB / 2.155 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 0.8956/9.548, allocations: 0.6976 GB / 4.273 GB, free: 316.7 MB / 2.155 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4785/10.03, allocations: 256.4 MB / 4.524 GB, free: 157.2 MB / 2.155 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1131/10.14, allocations: 52.1 MB / 4.575 GB, free: 105 MB / 2.155 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01021/10.15, allocations: 1.323 MB / 4.576 GB, free: 103.7 MB / 2.155 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001714/10.15, allocations: 1.23 MB / 4.577 GB, free: 102.5 MB / 2.155 GB Notification: Performance of pre-optimization done (n=11801): time 0.0006533/10.15, allocations: 0 / 4.577 GB, free: 102.5 MB / 2.155 GB Notification: Performance of matching and sorting (n=11801): time 1.133/11.28, allocations: 155.3 MB / 4.729 GB, free: 0.8744 GB / 2.155 GB Warning: Out of memory! Faking a stack overflow. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7708:3-7708:155:writable] Error: Internal error Stack overflow in BackendDAEUtil.getSolvedSystem... [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(GC.set.max.heap.size) [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(List.sort) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Array.map1) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(HpcOmTaskGraph.createTaskGraph1) [bt] #8 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(List.fold) [bt] #9 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(HpcOmTaskGraph.createTaskGraph0) [bt] #10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEOptimize.evaluateOutputsOnly) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendDAEUtil.getSolvedSystem) [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.callBuildModelFMU) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.buildModelFMU) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.cevalInteractiveFunctions3) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions2) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendInterface.cevalInteractiveFunctions) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork2) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork1) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork2) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork1) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.ceval) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.ceval) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExpr) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExprToStr) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate2) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate) [bt] #29 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand2) [bt] #30 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand) [bt] #31 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.interactivemodeZMQ) [bt] #32 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main2) [bt] #33 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main) [bt] #34 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(__omc_main) [bt] #35 /lib/x86_64-linux-gnu/libc.so.6() [bt] #36 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main) [bt] #37 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/bin/omc()