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.2/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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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_4_M_4,fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids_Models_Type1_Type1_reduced_N_4_M_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4,fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids_Models_Type1_Type1_reduced_N_4_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.001083/0.001083, allocations: 93.2 kB / 16.96 MB, free: 5.953 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.001338/0.001338, allocations: 188 kB / 17.86 MB, free: 5.621 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.876/1.876, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06325/0.06325, allocations: 14.16 MB / 286.5 MB, free: 13.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 4.158/4.158, allocations: 463.5 MB / 0.783 GB, free: 108.6 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: Performance of FrontEnd - loaded program: time 0.0006286/0.0006288, allocations: 16 kB / 0.9685 GB, free: 236 kB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411/1.411, allocations: 176 MB / 1.14 GB, free: 25.43 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4): time 4.296/5.707, allocations: 1.306 GB / 2.447 GB, free: 1.488 MB / 1.483 GB Notification: Performance of NFInst.instExpressions: time 2.723/8.431, allocations: 477.1 MB / 2.913 GB, free: 15.46 MB / 1.733 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.4503/8.881, allocations: 5.066 MB / 2.918 GB, free: 15.46 MB / 1.733 GB Notification: Performance of NFTyping.typeComponents: time 0.3044/9.185, allocations: 53.09 MB / 2.969 GB, free: 11.66 MB / 1.733 GB Notification: Performance of NFTyping.typeBindings: time 0.8605/10.05, allocations: 155 MB / 3.121 GB, free: 9.316 MB / 1.78 GB Notification: Performance of NFTyping.typeClassSections: time 0.2038/10.25, allocations: 36.52 MB / 3.156 GB, free: 15.94 MB / 1.796 GB Notification: Performance of NFFlatten.flatten: time 0.8772/11.13, allocations: 460.5 MB / 3.606 GB, free: 4.582 MB / 2.124 GB Notification: Performance of NFFlatten.resolveConnections: time 3.793/14.92, allocations: 40.93 MB / 3.646 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3814/15.3, allocations: 117.8 MB / 3.761 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3509/15.65, allocations: 133.3 MB / 3.891 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFPackage.collectConstants: time 0.1159/15.77, allocations: 7.328 MB / 3.898 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2849/16.05, allocations: 20.33 MB / 3.918 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFScalarize.scalarize: time 0.1168/16.17, allocations: 30.94 MB / 3.949 GB, free: 66.52 MB / 2.141 GB Notification: Performance of NFVerifyModel.verify: time 0.2259/16.4, allocations: 49.01 MB / 3.996 GB, free: 66.49 MB / 2.141 GB Notification: Performance of NFConvertDAE.convert: time 0.5667/16.96, allocations: 253.5 MB / 4.244 GB, free: 5.34 MB / 2.203 GB Notification: Performance of FrontEnd - DAE generated: time 1.466e-05/16.96, allocations: 6.781 kB / 4.244 GB, free: 5.336 MB / 2.203 GB Notification: Performance of FrontEnd: time 5.24e-06/16.96, allocations: 0 / 4.244 GB, free: 5.336 MB / 2.203 GB Notification: Performance of Transformations before backend: time 0.02103/16.98, allocations: 0 / 4.244 GB, free: 5.336 MB / 2.203 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 2.717/19.7, allocations: 310.7 MB / 4.547 GB, free: 0.8623 GB / 2.391 GB Notification: Performance of prepare preOptimizeDAE: time 7.137e-05/19.7, allocations: 9.469 kB / 4.547 GB, free: 0.8623 GB / 2.391 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1655/19.87, allocations: 25.14 MB / 4.572 GB, free: 0.8606 GB / 2.391 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2598/20.13, allocations: 38.22 MB / 4.609 GB, free: 0.847 GB / 2.391 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5699/20.7, allocations: 138.9 MB / 4.745 GB, free: 0.792 GB / 2.391 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.02548/20.72, allocations: 14.93 MB / 4.759 GB, free: 0.7853 GB / 2.391 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.09301/20.82, allocations: 19.7 MB / 4.779 GB, free: 0.7788 GB / 2.391 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7742/21.59, allocations: 206.2 MB / 4.98 GB, free: 0.657 GB / 2.391 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.01607/21.61, allocations: 420 kB / 4.98 GB, free: 0.6566 GB / 2.391 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.08157/21.69, allocations: 8.07 MB / 4.988 GB, free: 0.6487 GB / 2.391 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005158/21.69, allocations: 4.841 MB / 4.993 GB, free: 0.644 GB / 2.391 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5902/22.28, allocations: 196.6 MB / 5.185 GB, free: 463.1 MB / 2.391 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 4.627/26.91, allocations: 1.26 GB / 6.445 GB, free: 291.1 MB / 2.625 GB Notification: Performance of preOpt comSubExp (simulation): time 3.729/30.64, allocations: 0.6262 GB / 7.071 GB, free: 0.796 GB / 2.625 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.311/30.95, allocations: 94.51 MB / 7.163 GB, free: 0.7613 GB / 2.625 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03077/30.98, allocations: 2.388 MB / 7.166 GB, free: 0.7611 GB / 2.625 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005077/30.99, allocations: 2.185 MB / 7.168 GB, free: 0.7596 GB / 2.625 GB Notification: Performance of pre-optimization done (n=21308): time 0.002172/30.99, allocations: 0 / 7.168 GB, free: 0.7596 GB / 2.625 GB Notification: Performance of matching and sorting (n=21340): time 4.066/35.05, allocations: 480.9 MB / 7.637 GB, free: 0.9862 GB / 2.625 GB Warning: Out of memory! Faking a stack overflow. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7624:3-7624: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(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(BackendDAEUtil.getSolvedSystem) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(SimCodeMain.translateModel) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.callBuildModelFMU) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.buildModelFMU) [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(BackendInterface.cevalInteractiveFunctions) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork2) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork1) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.ceval) [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()