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: "" <> 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.001408/0.001408, allocations: 107.9 kB / 17.59 MB, free: 5.422 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.00169/0.001691, allocations: 187.3 kB / 18.52 MB, free: 4.512 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.564/1.564, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06099/0.06099, allocations: 14.17 MB / 285.9 MB, free: 13.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.705/3.705, allocations: 461.2 MB / 0.7793 GB, free: 107.3 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.002311/0.002312, allocations: 84.34 kB / 0.9617 GB, free: 2.652 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.253/1.255, allocations: 172.1 MB / 1.13 GB, free: 28.48 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4): time 4.203/5.459, allocations: 1.425 GB / 2.555 GB, free: 12.3 MB / 1.577 GB Notification: Performance of NFInst.instExpressions: time 2.931/8.39, allocations: 0.4905 GB / 3.045 GB, free: 14.72 MB / 1.905 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.4496/8.84, allocations: 4.986 MB / 3.05 GB, free: 14.72 MB / 1.905 GB Notification: Performance of NFTyping.typeComponents: time 0.3345/9.175, allocations: 75.96 MB / 3.125 GB, free: 11.26 MB / 1.905 GB Notification: Performance of NFTyping.typeBindings: time 0.9036/10.08, allocations: 195 MB / 3.315 GB, free: 8.305 MB / 1.983 GB Notification: Performance of NFTyping.typeClassSections: time 0.2283/10.31, allocations: 53.32 MB / 3.367 GB, free: 13.9 MB / 2.03 GB Notification: Performance of NFFlatten.flatten: time 4.448/14.75, allocations: 486.8 MB / 3.842 GB, free: 66.44 MB / 2.438 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2319/14.99, allocations: 51.36 MB / 3.893 GB, free: 69.77 MB / 2.453 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4066/15.39, allocations: 159.5 MB / 4.048 GB, free: 54.4 MB / 2.453 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4016/15.8, allocations: 174.6 MB / 4.219 GB, free: 25.73 MB / 2.453 GB Notification: Performance of NFPackage.collectConstants: time 0.1542/15.95, allocations: 21.86 MB / 4.24 GB, free: 25.73 MB / 2.453 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2805/16.23, allocations: 40.93 MB / 4.28 GB, free: 25.73 MB / 2.453 GB Notification: Performance of NFScalarize.scalarize: time 0.1334/16.36, allocations: 50.05 MB / 4.329 GB, free: 16.17 MB / 2.453 GB Notification: Performance of NFVerifyModel.verify: time 0.5568/16.92, allocations: 160.7 MB / 4.486 GB, free: 6.441 MB / 2.5 GB Notification: Performance of NFConvertDAE.convert: time 2.879/19.8, allocations: 351.4 MB / 4.829 GB, free: 254.6 MB / 2.641 GB Notification: Performance of FrontEnd - DAE generated: time 1.913e-05/19.8, allocations: 2.812 kB / 4.829 GB, free: 254.6 MB / 2.641 GB Notification: Performance of FrontEnd: time 3.927e-06/19.8, allocations: 0 / 4.829 GB, free: 254.6 MB / 2.641 GB Notification: Performance of Transformations before backend: time 0.01995/19.82, allocations: 1.531 kB / 4.829 GB, free: 254.6 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.851/21.67, allocations: 371.7 MB / 5.192 GB, free: 97.54 MB / 2.641 GB Notification: Performance of prepare preOptimizeDAE: time 8.362e-05/21.67, allocations: 8.031 kB / 5.192 GB, free: 97.54 MB / 2.641 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1408/21.81, allocations: 25.14 MB / 5.217 GB, free: 84.85 MB / 2.641 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2783/22.09, allocations: 38.17 MB / 5.254 GB, free: 48.26 MB / 2.641 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5973/22.69, allocations: 150.8 MB / 5.401 GB, free: 14.16 MB / 2.703 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.02695/22.71, allocations: 14.92 MB / 5.416 GB, free: 5.707 MB / 2.703 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1031/22.82, allocations: 19.69 MB / 5.435 GB, free: 8.547 MB / 2.719 GB Notification: Performance of preOpt clockPartitioning (simulation): time 2.293/25.11, allocations: 206.9 MB / 5.637 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.02694/25.14, allocations: 415.8 kB / 5.637 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.1001/25.24, allocations: 8.068 MB / 5.645 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.02085/25.26, allocations: 4.841 MB / 5.65 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6759/25.93, allocations: 196.2 MB / 5.842 GB, free: 1.257 GB / 2.891 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.764/28.7, allocations: 1.347 GB / 7.188 GB, free: 22.9 MB / 2.891 GB Notification: Performance of preOpt comSubExp (simulation): time 3.882/32.58, allocations: 0.6257 GB / 7.814 GB, free: 0.9732 GB / 2.891 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3304/32.91, allocations: 94.36 MB / 7.906 GB, free: 0.9396 GB / 2.891 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03046/32.94, allocations: 2.384 MB / 7.909 GB, free: 0.9394 GB / 2.891 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005727/32.95, allocations: 2.187 MB / 7.911 GB, free: 0.9379 GB / 2.891 GB Notification: Performance of pre-optimization done (n=21307): time 0.002566/32.95, allocations: 0 / 7.911 GB, free: 0.9379 GB / 2.891 GB Notification: Performance of matching and sorting (n=21307): time 2.967/35.92, allocations: 277.2 MB / 8.181 GB, free: 1.178 GB / 2.891 GB Warning: Out of memory! Faking a stack overflow. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7714:3-7714: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(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(BackendDAEUtil.getSolvedSystem) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(SimCodeMain.translateModelCallBackendOB) [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()