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.001518/0.001517, allocations: 107.7 kB / 17.59 MB, free: 5.43 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.00167/0.00167, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.971/1.971, 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.06267/0.06267, allocations: 14.16 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.995/4.995, 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.001935/0.001935, allocations: 87.88 kB / 0.9617 GB, free: 2.652 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562/1.564, allocations: 172.1 MB / 1.13 GB, free: 28.52 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_3_M_4): time 2.45/4.014, allocations: 0.7899 GB / 1.92 GB, free: 7.508 MB / 1.296 GB Notification: Performance of NFInst.instExpressions: time 2.001/6.015, allocations: 279.1 MB / 2.192 GB, free: 204 kB / 1.546 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.2282/6.244, allocations: 2.768 MB / 2.195 GB, free: 204 kB / 1.546 GB Notification: Performance of NFTyping.typeComponents: time 0.1817/6.425, allocations: 42.1 MB / 2.236 GB, free: 15.5 MB / 1.562 GB Notification: Performance of NFTyping.typeBindings: time 0.4614/6.887, allocations: 108.3 MB / 2.342 GB, free: 5.406 MB / 1.562 GB Notification: Performance of NFTyping.typeClassSections: time 0.1155/7.002, allocations: 30.02 MB / 2.371 GB, free: 14.37 MB / 1.577 GB Notification: Performance of NFFlatten.flatten: time 0.5572/7.56, allocations: 269.8 MB / 2.635 GB, free: 4.73 MB / 1.78 GB Notification: Performance of NFFlatten.resolveConnections: time 0.1229/7.683, allocations: 28.11 MB / 2.662 GB, free: 8.816 MB / 1.812 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2448/7.928, allocations: 88.44 MB / 2.748 GB, free: 1.379 MB / 1.89 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2057/8.133, allocations: 96.73 MB / 2.843 GB, free: 3.238 MB / 1.983 GB Notification: Performance of NFPackage.collectConstants: time 0.084/8.217, allocations: 12.16 MB / 2.855 GB, free: 7.078 MB / 1.999 GB Notification: Performance of NFFlatten.collectFunctions: time 0.1459/8.363, allocations: 22.7 MB / 2.877 GB, free: 396 kB / 2.015 GB Notification: Performance of NFScalarize.scalarize: time 0.07126/8.435, allocations: 27.8 MB / 2.904 GB, free: 5.391 MB / 2.046 GB Notification: Performance of NFVerifyModel.verify: time 1.81/10.24, allocations: 84.46 MB / 2.987 GB, free: 220 MB / 2.046 GB Notification: Performance of NFConvertDAE.convert: time 0.5017/10.75, allocations: 195 MB / 3.177 GB, free: 187.3 MB / 2.046 GB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/10.75, allocations: 0 / 3.177 GB, free: 187.3 MB / 2.046 GB Notification: Performance of FrontEnd: time 2.294e-06/10.75, allocations: 0.8125 kB / 3.177 GB, free: 187.3 MB / 2.046 GB Notification: Performance of Transformations before backend: time 0.01106/10.76, allocations: 0 / 3.177 GB, free: 187.3 MB / 2.046 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 1.075/11.83, allocations: 206 MB / 3.378 GB, free: 101.8 MB / 2.046 GB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/11.83, allocations: 9.438 kB / 3.378 GB, free: 101.8 MB / 2.046 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.07763/11.91, allocations: 13.93 MB / 3.392 GB, free: 98.17 MB / 2.046 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1513/12.06, allocations: 21.15 MB / 3.412 GB, free: 79.57 MB / 2.046 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3441/12.41, allocations: 83.7 MB / 3.494 GB, free: 18.59 MB / 2.046 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01581/12.42, allocations: 8.274 MB / 3.502 GB, free: 10.32 MB / 2.046 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.05685/12.48, allocations: 10.91 MB / 3.513 GB, free: 15.4 MB / 2.062 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.443/12.92, allocations: 114.6 MB / 3.625 GB, free: 8.52 MB / 2.171 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.008496/12.93, allocations: 229.1 kB / 3.625 GB, free: 8.43 MB / 2.171 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.04293/12.97, allocations: 4.469 MB / 3.629 GB, free: 3.961 MB / 2.171 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002881/12.98, allocations: 2.68 MB / 3.632 GB, free: 1.281 MB / 2.171 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.533/14.51, allocations: 108.7 MB / 3.738 GB, free: 0.8795 GB / 2.171 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.574/16.08, allocations: 0.7454 GB / 4.484 GB, free: 253.1 MB / 2.171 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5867/16.67, allocations: 255.4 MB / 4.733 GB, free: 40.91 MB / 2.171 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.473/18.14, allocations: 51.62 MB / 4.783 GB, free: 0.8593 GB / 2.171 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02131/18.16, allocations: 1.322 MB / 4.785 GB, free: 0.8592 GB / 2.171 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002955/18.17, allocations: 1.234 MB / 4.786 GB, free: 0.8591 GB / 2.171 GB Notification: Performance of pre-optimization done (n=11801): time 0.0006334/18.17, allocations: 5 kB / 4.786 GB, free: 0.8591 GB / 2.171 GB Notification: Performance of matching and sorting (n=11801): time 0.6952/18.86, allocations: 153.7 MB / 4.936 GB, free: 0.8463 GB / 2.171 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()