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.001433/0.001433, 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.001364/0.001364, 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.485/1.485, 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.068/0.068, 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.719/3.719, allocations: 461.2 MB / 0.7795 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.002737/0.002737, allocations: 88.62 kB / 1.131 GB, free: 21.82 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3721, allocations: 172.1 MB / 1.299 GB, free: 6.887 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_3_M_4): time 2.299/2.671, allocations: 0.79 GB / 2.089 GB, free: 8.836 MB / 1.562 GB Notification: Performance of NFInst.instExpressions: time 1.918/4.589, allocations: 279.1 MB / 2.362 GB, free: 14.17 MB / 1.718 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.2265/4.816, allocations: 2.769 MB / 2.364 GB, free: 14.17 MB / 1.718 GB Notification: Performance of NFTyping.typeComponents: time 0.1727/4.989, allocations: 42.09 MB / 2.405 GB, free: 13.37 MB / 1.718 GB Notification: Performance of NFTyping.typeBindings: time 0.454/5.443, allocations: 108.3 MB / 2.511 GB, free: 1.113 MB / 1.749 GB Notification: Performance of NFTyping.typeClassSections: time 0.1184/5.561, allocations: 29.99 MB / 2.541 GB, free: 9.301 MB / 1.78 GB Notification: Performance of NFFlatten.flatten: time 0.4593/6.02, allocations: 271 MB / 2.805 GB, free: 13.61 MB / 2.015 GB Notification: Performance of NFFlatten.resolveConnections: time 0.1109/6.131, allocations: 28.11 MB / 2.833 GB, free: 1.711 MB / 2.03 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2216/6.353, allocations: 88.88 MB / 2.919 GB, free: 9.82 MB / 2.124 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2169/6.57, allocations: 96.7 MB / 3.014 GB, free: 11.66 MB / 2.218 GB Notification: Performance of NFPackage.collectConstants: time 0.07259/6.643, allocations: 12.16 MB / 3.026 GB, free: 15.5 MB / 2.233 GB Notification: Performance of NFFlatten.collectFunctions: time 1.673/8.315, allocations: 22.7 MB / 3.048 GB, free: 216.4 MB / 2.233 GB Notification: Performance of NFScalarize.scalarize: time 0.06926/8.385, allocations: 27.77 MB / 3.075 GB, free: 216.4 MB / 2.233 GB Notification: Performance of NFVerifyModel.verify: time 0.284/8.669, allocations: 84.44 MB / 3.157 GB, free: 208.6 MB / 2.233 GB Notification: Performance of NFConvertDAE.convert: time 0.4872/9.156, allocations: 205.9 MB / 3.359 GB, free: 174.5 MB / 2.233 GB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/9.156, allocations: 0 / 3.359 GB, free: 174.5 MB / 2.233 GB Notification: Performance of FrontEnd: time 3.206e-06/9.156, allocations: 0 / 3.359 GB, free: 174.5 MB / 2.233 GB Notification: Performance of Transformations before backend: time 0.009843/9.166, allocations: 0 / 3.359 GB, free: 174.5 MB / 2.233 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.9723/10.14, allocations: 208 MB / 3.562 GB, free: 85.28 MB / 2.233 GB Notification: Performance of prepare preOptimizeDAE: time 8.944e-05/10.14, allocations: 8.031 kB / 3.562 GB, free: 85.27 MB / 2.233 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.06779/10.21, allocations: 13.93 MB / 3.575 GB, free: 78.22 MB / 2.233 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1382/10.34, allocations: 21.89 MB / 3.597 GB, free: 57.29 MB / 2.233 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3009/10.65, allocations: 86.64 MB / 3.681 GB, free: 3.914 MB / 2.249 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01345/10.66, allocations: 8.272 MB / 3.689 GB, free: 11.64 MB / 2.265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.04928/10.71, allocations: 10.91 MB / 3.7 GB, free: 0.7305 MB / 2.265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4132/11.12, allocations: 114.6 MB / 3.812 GB, free: 9.855 MB / 2.39 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.007655/11.13, allocations: 236 kB / 3.812 GB, free: 9.762 MB / 2.39 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.04441/11.17, allocations: 4.469 MB / 3.817 GB, free: 5.293 MB / 2.39 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/11.18, allocations: 2.684 MB / 3.819 GB, free: 2.609 MB / 2.39 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.663/12.84, allocations: 108.7 MB / 3.925 GB, free: 0.9387 GB / 2.405 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 1.517/14.36, allocations: 0.7424 GB / 4.668 GB, free: 349.1 MB / 2.405 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5569/14.91, allocations: 255.4 MB / 4.917 GB, free: 145.5 MB / 2.405 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1528/15.07, allocations: 51.63 MB / 4.967 GB, free: 93.84 MB / 2.405 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/15.09, allocations: 1.322 MB / 4.969 GB, free: 92.57 MB / 2.405 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004028/15.09, allocations: 1.234 MB / 4.97 GB, free: 91.32 MB / 2.405 GB Notification: Performance of pre-optimization done (n=11801): time 0.00185/15.09, allocations: 0 / 4.97 GB, free: 91.32 MB / 2.405 GB Notification: Performance of matching and sorting (n=11801): time 1.915/17.01, allocations: 154.3 MB / 5.121 GB, free: 0.908 GB / 2.405 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() [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()