Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 110.4 kB / 16.42 MB, free: 6.477 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.001339/0.001339, allocations: 190 kB / 17.36 MB, free: 5.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07473/0.07473, allocations: 16.79 MB / 308 MB, free: 14.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.256e-05, allocations: 2.281 kB / 427.2 MB, free: 10.58 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GEN.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GEN.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter NTLV.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter NTLV.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:4:3-5:21:writable] Warning: Parameter TGEN.componentPF.UNomA has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:8:3-9:21:writable] Warning: Parameter TGEN.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GRID.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GRID.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter GRIDL.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter GRIDL.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.0372/0.03723, allocations: 40.91 MB / 468.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02196/0.05924, allocations: 10.46 MB / 478.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007351/0.06666, allocations: 107.4 kB / 478.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006033/0.07272, allocations: 1.396 MB / 480.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01504/0.08779, allocations: 4.172 MB / 484.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007628/0.09544, allocations: 2.611 MB / 486.9 MB, free: 14.77 MB / 366.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2647:11-2647:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.01715/0.1126, allocations: 10.07 MB / 497 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005444/0.1181, allocations: 2.035 MB / 499 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007452/0.1256, allocations: 3.113 MB / 0.4903 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007585/0.1332, allocations: 3.489 MB / 0.4938 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002609/0.1358, allocations: 404 kB / 0.4941 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005973/0.1418, allocations: 1.05 MB / 0.4952 GB, free: 10.52 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.01724/0.1591, allocations: 10.18 MB / 0.5051 GB, free: 240 kB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.3012/0.4604, allocations: 6.21 MB / 0.5112 GB, free: 31.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003822/0.4642, allocations: 0.8598 MB / 0.512 GB, free: 31.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.001269/0.4655, allocations: 194.9 kB / 0.5122 GB, free: 31.21 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 862 (708) * Number of variables: 862 (862) Notification: Performance of Bindings: time 0.04003/0.5056, allocations: 30.52 MB / 0.542 GB, free: 19.3 MB / 382.1 MB Notification: Performance of FunctionAlias: time 0.00449/0.5101, allocations: 3.781 MB / 0.5457 GB, free: 16.78 MB / 382.1 MB Notification: Performance of Early Inline: time 0.01686/0.527, allocations: 16 MB / 0.5613 GB, free: 4.582 MB / 382.1 MB Notification: Performance of simplify1: time 0.001549/0.5286, allocations: 0.9999 MB / 0.5623 GB, free: 3.875 MB / 382.1 MB Notification: Performance of Alias: time 0.03013/0.5587, allocations: 18.75 MB / 0.5806 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simplify2: time 0.00218/0.561, allocations: 0.8332 MB / 0.5814 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Detect States: time 0.005213/0.5662, allocations: 3.965 MB / 0.5853 GB, free: 11.69 MB / 414.1 MB Notification: Performance of Events: time 0.003369/0.5696, allocations: 1.581 MB / 0.5868 GB, free: 10.11 MB / 414.1 MB Notification: Performance of DAE-Mode: time 2.559e-05/0.5696, allocations: 4 kB / 0.5869 GB, free: 10.11 MB / 414.1 MB Notification: Performance of Partitioning: time 0.005858/0.5755, allocations: 4.52 MB / 0.5913 GB, free: 5.004 MB / 414.1 MB Notification: Performance of Causalize: time 0.02351/0.599, allocations: 17.35 MB / 0.6082 GB, free: 3.059 MB / 430.1 MB Notification: Performance of After Index Reduction Inline: time 0.01239/0.6115, allocations: 8.61 MB / 0.6166 GB, free: 10.41 MB / 446.1 MB Notification: Performance of Inline: time 0.03587/0.6474, allocations: 22.95 MB / 0.639 GB, free: 3.512 MB / 462.1 MB Notification: Performance of Partitioning: time 0.002616/0.6501, allocations: 1.177 MB / 0.6402 GB, free: 2.27 MB / 462.1 MB Notification: Performance of Cleanup: time 0.004038/0.6541, allocations: 2.004 MB / 0.6421 GB, free: 252 kB / 462.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) systemPowerGrids.omegaNom = 6.283185307179586 * systemPowerGrids.fNom ($RES_BND_1201) slice: {}; [SCAL] (1) GRID.Ssc.re = GRID.SSC * cos(atan(1/GRID.R_X)) ($RES_SIM_1567) slice: {}; Notification: Performance of Causalize: time 0.5786/1.233, allocations: 114.4 MB / 0.7539 GB, free: 85.61 MB / 0.4981 GB Error: Internal error NBTearing.minimal failed. (32|32) Discrete Variables **************************** [DISC] (1) Boolean $SEV_4 [DISC] (1) Boolean $SEV_3 [DISC] (1) Boolean $SEV_15 [DISC] (1) Boolean $SEV_14 [PRMT] (1) final parameter Real GEN.kuf (fixed = false) [PRMT] (1) final parameter Real GEN.rfPu (fixed = false, start = 0.001, min = 1e-5) [PRMT] (1) final parameter Real GEN.LfPu (fixed = false, start = 0.1, min = 0.001) [PRMT] (1) final parameter Real GEN.T4dPu (fixed = false, start = 1000.0, min = 0.0) [PRMT] (1) final parameter Real GEN.omegaBase = systemPowerGrids.omegaNom (fixed = true) [PRMT] (1) final parameter Real GEN.T6qPu (fixed = false, start = 10.0, min = 0.0) [PRMT] (1) final parameter Real GEN.LQ2Pu (fixed = false, start = 0.1, min = 0.001) [PRMT] (1) final parameter Real GEN.rQ2Pu (fixed = false, start = 0.001, min = 1e-5) [PRMT] (1) redeclare final parameter Real GRID.ZGrid.im = (GRID.Ssc.im * 1.444e11) / (((-(1.444e11 * GRID.Ssc.im) / 2.085136e22) * (-(1.444e11 * GRID.Ssc.im) / 2.085136e22) + (GRID.Ssc.re * 1.444e11 * GRID.Ssc.re * 1.444e11) / (2.085136e22 * 2.085136e22)) * 2.085136e22) (fixed = true) [PRMT] (1) redeclare final parameter Real GRID.Ssc.re = 2.2614481595681545e8 (fixed = true, nominal = 1e8) [PRMT] (1) redeclare final parameter Real GRID.ZGrid.re = (GRID.Ssc.re * 1.444e11) / (((-(1.444e11 * GRID.Ssc.im) / 2.085136e22) * (-(1.444e11 * GRID.Ssc.im) / 2.085136e22) + (GRID.Ssc.re * 1.444e11 * GRID.Ssc.re * 1.444e11) / (2.085136e22 * 2.085136e22)) * 2.085136e22) (fixed = true) [PRMT] (1) final parameter Real GEN.rQ1Pu (fixed = false, start = 0.01, min = 1e-5) [PRMT] (1) final parameter Real GEN.LQ1Pu (fixed = false, start = 0.5, min = 0.001) [PRMT] (1) final parameter Real GEN.T1qPu (fixed = false, start = 1000.0, min = 0.0) [PRMT] (1) final parameter Real GEN.T4qPu (fixed = false, start = 100.0, min = 0.0) [PRMT] (1) final parameter Real GEN.T3qPu (fixed = false, start = 10.0, min = 0.0) [PRMT] (1) final parameter Real GEN.T1dPu (fixed = false, start = 1000.0, min = 0.0) [PRMT] (1) final parameter Real GEN.rDPu (fixed = false, start = 0.01, min = 1e-4) [PRMT] (1) final parameter Real GEN.LDPu (fixed = false, start = 0.2, min = 0.001) [PRMT] (1) final parameter Real GEN.T6dPu (fixed = false, start = 10.0, min = 0.0) [PRMT] (1) final parameter Real GEN.T3dPu (fixed = false, start = 10.0, min = 0.0) [DISC] (1) Boolean $SEV_23 [DISC] (1) Boolean $SEV_22 [DISC] (1) Boolean $SEV_21 [DISC] (1) Boolean $SEV_18 [DISC] (1) Boolean $SEV_20 [DISC] (1) Boolean $SEV_19 [DISC] (1) Boolean $SEV_17 (11|11) Discrete Equations **************************** [SCAL] (1) $SEV_4 = AVR.inputLimiter.simplifiedExpr < AVR.inputLimiter.uMin ($RES_EVT_1145) [SCAL] (1) $SEV_3 = AVR.inputLimiter.simplifiedExpr > AVR.inputLimiter.uMax ($RES_EVT_1144) [SCAL] (1) $SEV_15 = AVR.variableLimiter.simplifiedExpr < 0.0 ($RES_EVT_1156) [SCAL] (1) $SEV_14 = AVR.variableLimiter.simplifiedExpr > AVR.largeReal.k ($RES_EVT_1155) [SCAL] (1) $SEV_23 = $SEV_19 or $SEV_22 ($RES_EVT_1164) [SCAL] (1) $SEV_22 = $SEV_20 and $SEV_21 ($RES_EVT_1163) [SCAL] (1) $SEV_21 = AVR.firstOrderLim.lim.simplifiedExpr < AVR.firstOrderLim.lim.uMin ($RES_EVT_1162) [SCAL] (1) $SEV_18 = AVR.firstOrderLim.lim.simplifiedExpr > AVR.firstOrderLim.lim.uMax ($RES_EVT_1159) [SCAL] (1) $SEV_20 = AVR.firstOrderLim.G.y <= 0.0 ($RES_EVT_1161) [SCAL] (1) $SEV_19 = $SEV_17 and $SEV_18 ($RES_EVT_1160) [SCAL] (1) $SEV_17 = AVR.firstOrderLim.G.y >= 0.0 ($RES_EVT_1158) Error: Internal error NBInitialization.main failed to apply modules!