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.001358/0.001358, allocations: 109.1 kB / 17.74 MB, free: 5.355 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.001359/0.001358, allocations: 184.8 kB / 18.68 MB, free: 4.426 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.565/1.565, allocations: 205.1 MB / 224.5 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.06305/0.06305, allocations: 14.17 MB / 286.1 MB, free: 13.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.744/3.744, allocations: 461.2 MB / 0.7794 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.002263/0.002263, allocations: 97.89 kB / 1.132 GB, free: 21.42 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3726, allocations: 172.1 MB / 1.3 GB, free: 6.383 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4): time 4.134/4.506, allocations: 1.425 GB / 2.725 GB, free: 11.16 MB / 1.765 GB Notification: Performance of NFInst.instExpressions: time 2.977/7.483, allocations: 0.4905 GB / 3.215 GB, free: 13.94 MB / 2.093 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.3796/7.863, allocations: 4.985 MB / 3.22 GB, free: 13.94 MB / 2.093 GB Notification: Performance of NFTyping.typeComponents: time 0.3104/8.174, allocations: 76.07 MB / 3.295 GB, free: 8.547 MB / 2.093 GB Notification: Performance of NFTyping.typeBindings: time 0.8652/9.039, allocations: 208.2 MB / 3.498 GB, free: 0.6914 MB / 2.187 GB Notification: Performance of NFTyping.typeClassSections: time 0.2173/9.256, allocations: 53.31 MB / 3.55 GB, free: 6.281 MB / 2.233 GB Notification: Performance of NFFlatten.flatten: time 0.813/10.07, allocations: 489.1 MB / 4.028 GB, free: 3.953 MB / 2.687 GB Notification: Performance of NFFlatten.resolveConnections: time 4.058/14.13, allocations: 51.36 MB / 4.078 GB, free: 80.8 MB / 2.703 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4729/14.6, allocations: 163.8 MB / 4.238 GB, free: 66.01 MB / 2.703 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3962/15, allocations: 174.5 MB / 4.408 GB, free: 37.34 MB / 2.703 GB Notification: Performance of NFPackage.collectConstants: time 0.1342/15.13, allocations: 21.87 MB / 4.43 GB, free: 37.34 MB / 2.703 GB Notification: Performance of NFFlatten.collectFunctions: time 0.28/15.41, allocations: 40.94 MB / 4.469 GB, free: 37.34 MB / 2.703 GB Notification: Performance of NFScalarize.scalarize: time 0.1242/15.54, allocations: 49.99 MB / 4.518 GB, free: 27.78 MB / 2.703 GB Notification: Performance of NFVerifyModel.verify: time 0.4401/15.98, allocations: 152.4 MB / 4.667 GB, free: 2.02 MB / 2.719 GB Notification: Performance of NFConvertDAE.convert: time 2.989/18.97, allocations: 371.5 MB / 5.03 GB, free: 248.2 MB / 2.938 GB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/18.97, allocations: 0.5 kB / 5.03 GB, free: 248.2 MB / 2.938 GB Notification: Performance of FrontEnd: time 1.983e-06/18.97, allocations: 0.6562 kB / 5.03 GB, free: 248.2 MB / 2.938 GB Notification: Performance of Transformations before backend: time 0.01487/18.98, allocations: 0.5312 kB / 5.03 GB, free: 248.2 MB / 2.938 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.775/20.75, allocations: 375.3 MB / 5.396 GB, free: 148.5 MB / 2.938 GB Notification: Performance of prepare preOptimizeDAE: time 7.013e-05/20.75, allocations: 11.31 kB / 5.396 GB, free: 148.5 MB / 2.938 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1315/20.89, allocations: 25.14 MB / 5.421 GB, free: 143.8 MB / 2.938 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2596/21.15, allocations: 39.51 MB / 5.46 GB, free: 109.1 MB / 2.938 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5328/21.68, allocations: 156.1 MB / 5.612 GB, free: 8.926 MB / 2.938 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.02123/21.7, allocations: 14.93 MB / 5.627 GB, free: 480 kB / 2.938 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.09962/21.8, allocations: 19.7 MB / 5.646 GB, free: 3.305 MB / 2.953 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.75/22.55, allocations: 206.9 MB / 5.848 GB, free: 2.629 MB / 3.109 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.01622/22.57, allocations: 419.5 kB / 5.848 GB, free: 2.465 MB / 3.109 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.09172/22.66, allocations: 8.073 MB / 5.856 GB, free: 10.41 MB / 3.125 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005587/22.66, allocations: 4.84 MB / 5.861 GB, free: 5.57 MB / 3.125 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6399/23.3, allocations: 196.2 MB / 6.052 GB, free: 3.434 MB / 3.312 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.919/28.22, allocations: 1.341 GB / 7.394 GB, free: 0.6007 GB / 3.391 GB Notification: Performance of preOpt comSubExp (simulation): time 3.366/31.59, allocations: 0.6257 GB / 8.019 GB, free: 1.537 GB / 3.391 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3179/31.91, allocations: 94.35 MB / 8.112 GB, free: 1.535 GB / 3.391 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02975/31.94, allocations: 2.384 MB / 8.114 GB, free: 1.535 GB / 3.391 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00554/31.94, allocations: 2.189 MB / 8.116 GB, free: 1.535 GB / 3.391 GB Notification: Performance of pre-optimization done (n=21307): time 0.002351/31.94, allocations: 0 / 8.116 GB, free: 1.535 GB / 3.391 GB Notification: Performance of matching and sorting (n=21307): time 1.22/33.16, allocations: 278.3 MB / 8.388 GB, free: 1.457 GB / 3.391 GB Warning: Out of memory! Faking a stack overflow. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7769:3-7769: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(BackendVariable.vararrayAdd) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.addVar) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendVariable.addVariables) [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.translateModelCallBackendOB) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(SimCodeMain.translateModel) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.callBuildModelFMU) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.buildModelFMU) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScriptBackend.cevalInteractiveFunctions3) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions2) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.cevalInteractiveFunctions) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(BackendInterface.cevalInteractiveFunctions) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork2) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork1) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork2) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.cevalWork1) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Ceval.ceval) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(CevalScript.ceval) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExpr) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluateExprToStr) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate2) [bt] #29 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Interactive.evaluate) [bt] #30 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand2) [bt] #31 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.handleCommand) [bt] #32 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.interactivemodeZMQ) [bt] #33 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main2) [bt] #34 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Main.main) [bt] #35 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(__omc_main) [bt] #36 /lib/x86_64-linux-gnu/libc.so.6() [bt] #37 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main) [bt] #38 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/bin/omc()