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.001534/0.001534, allocations: 102.4 kB / 17.59 MB, free: 5.445 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.001409/0.001409, allocations: 191.3 kB / 18.52 MB, free: 4.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 2.005/2.005, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06554/0.06554, allocations: 14.17 MB / 285.9 MB, free: 13.94 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 4.672/4.672, allocations: 461.2 MB / 0.7793 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.002345/0.002345, allocations: 85.59 kB / 0.9617 GB, free: 2.645 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425/1.427, allocations: 172.1 MB / 1.13 GB, free: 28.55 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_4_M_4): time 4.26/5.687, allocations: 1.425 GB / 2.555 GB, free: 12.3 MB / 1.577 GB Notification: Performance of NFInst.instExpressions: time 3.09/8.777, allocations: 0.4905 GB / 3.045 GB, free: 14.72 MB / 1.905 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.4756/9.252, allocations: 4.988 MB / 3.05 GB, free: 14.72 MB / 1.905 GB Notification: Performance of NFTyping.typeComponents: time 0.365/9.617, allocations: 75.96 MB / 3.125 GB, free: 11.27 MB / 1.905 GB Notification: Performance of NFTyping.typeBindings: time 0.9477/10.57, allocations: 195 MB / 3.315 GB, free: 8.293 MB / 1.983 GB Notification: Performance of NFTyping.typeClassSections: time 0.2519/10.82, allocations: 53.32 MB / 3.367 GB, free: 13.89 MB / 2.03 GB Notification: Performance of NFFlatten.flatten: time 4.878/15.7, allocations: 486.8 MB / 3.842 GB, free: 66.35 MB / 2.438 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2298/15.92, allocations: 51.36 MB / 3.893 GB, free: 69.68 MB / 2.453 GB Notification: Performance of NFEvalConstants.evaluate: time 0.426/16.35, allocations: 159.5 MB / 4.048 GB, free: 54.28 MB / 2.453 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4244/16.78, allocations: 174.6 MB / 4.219 GB, free: 25.61 MB / 2.453 GB Notification: Performance of NFPackage.collectConstants: time 0.1582/16.93, allocations: 21.87 MB / 4.24 GB, free: 25.61 MB / 2.453 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3111/17.24, allocations: 40.93 MB / 4.28 GB, free: 25.61 MB / 2.453 GB Notification: Performance of NFScalarize.scalarize: time 0.1618/17.41, allocations: 50.04 MB / 4.329 GB, free: 16.05 MB / 2.453 GB Notification: Performance of NFVerifyModel.verify: time 0.6928/18.1, allocations: 160.7 MB / 4.486 GB, free: 6.441 MB / 2.5 GB Notification: Performance of NFConvertDAE.convert: time 3.336/21.44, allocations: 351.4 MB / 4.829 GB, free: 254 MB / 2.641 GB Notification: Performance of FrontEnd - DAE generated: time 1.434e-05/21.44, allocations: 2.406 kB / 4.829 GB, free: 254 MB / 2.641 GB Notification: Performance of FrontEnd: time 3.827e-06/21.44, allocations: 0 / 4.829 GB, free: 254 MB / 2.641 GB Notification: Performance of Transformations before backend: time 0.02165/21.46, allocations: 0 / 4.829 GB, free: 254 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.905/23.36, allocations: 371.7 MB / 5.192 GB, free: 97.22 MB / 2.641 GB Notification: Performance of prepare preOptimizeDAE: time 8.085e-05/23.36, allocations: 8.031 kB / 5.192 GB, free: 97.21 MB / 2.641 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1478/23.51, allocations: 25.14 MB / 5.217 GB, free: 84.53 MB / 2.641 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2861/23.8, allocations: 38.17 MB / 5.254 GB, free: 47.94 MB / 2.641 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6061/24.4, allocations: 150.8 MB / 5.401 GB, free: 13.84 MB / 2.703 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.02828/24.43, allocations: 14.93 MB / 5.416 GB, free: 5.387 MB / 2.703 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1063/24.54, allocations: 19.69 MB / 5.435 GB, free: 8.223 MB / 2.719 GB Notification: Performance of preOpt clockPartitioning (simulation): time 2.505/27.04, allocations: 206.9 MB / 5.637 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.02873/27.07, allocations: 420.2 kB / 5.637 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.104/27.17, allocations: 8.069 MB / 5.645 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.02435/27.2, allocations: 4.84 MB / 5.65 GB, free: 1.263 GB / 2.891 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7124/27.91, allocations: 196.3 MB / 5.842 GB, free: 1.256 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.826/30.74, allocations: 1.347 GB / 7.188 GB, free: 22.77 MB / 2.891 GB Notification: Performance of preOpt comSubExp (simulation): time 3.715/34.45, allocations: 0.6257 GB / 7.814 GB, free: 0.9723 GB / 2.891 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3432/34.8, allocations: 94.36 MB / 7.906 GB, free: 0.9386 GB / 2.891 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03118/34.83, allocations: 2.383 MB / 7.909 GB, free: 0.9384 GB / 2.891 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005749/34.83, allocations: 2.184 MB / 7.911 GB, free: 0.9369 GB / 2.891 GB Notification: Performance of pre-optimization done (n=21307): time 0.001691/34.84, allocations: 0 / 7.911 GB, free: 0.9369 GB / 2.891 GB Notification: Performance of matching and sorting (n=21307): time 2.765/37.6, allocations: 277.3 MB / 8.181 GB, free: 1.177 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(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()