/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 119 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7408
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin894
RA = 342.606, Dec = -42.1095
tmin = 471052801, tmax = 471312001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='514215', job_status='RUN', time_executed='2021-09-28 22:42:36.797506', time_epoch_executed='1632894156.8' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514215

Creating custom pfile directory:
/scratch/kocevski/514215/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=471052801.0 && nMetStart<471312001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=471052801.0 && nMetStart<471312001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514215/ft1_4FGL_J2250.4-4206_daily_bin894.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=471052801.0 && nMetStart<471312001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514215/ft1_4FGL_J2250.4-4206_daily_bin894.fits outfile=/scratch/kocevski/514215/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin894.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=471052801.0 tmax=471312001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.99
user 3.76
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/514215/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/514215/ltcube_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits
.....................!
real 17.92
user 17.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/514215/ltcube_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits outfile=/scratch/kocevski/514215/expmap_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/514215/ltcube_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits
.....................!
real 191.14
user 186.12
sys 4.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2250.4-4206 @ 342.606 -42.1095

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits outfile=/scratch/kocevski/514215/cmap_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.606 yref=-42.1095 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits outfile=/scratch/kocevski/514215/cmap_HighResolution_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.606 yref=-42.1095 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514215/Model_4FGL_J2250.4-4206_daily_bin894.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits.....................!
real 48.48
user 47.18
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits', '/scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits', expMap='/scratch/kocevski/514215/expmap_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits', expCube='/scratch/kocevski/514215/ltcube_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514215/Model_4FGL_J2250.4-4206_daily_bin894.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.4-4206'

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514215/ft1_filtered_4FGL_J2250.4-4206_daily_bin894.fits
Spacecraft file(s): /scratch/kocevski/514215/ft2_4FGL_J2250.4-4206_daily_bin894.fits
Exposure map: /scratch/kocevski/514215/expmap_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits
Exposure cube: /scratch/kocevski/514215/ltcube_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514215/Model_4FGL_J2250.4-4206_daily_bin894.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6800.70299662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6800.69904033

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0632       1.0000         .10000E-03   10000.    
    19 'norm      '    9.2595       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3691       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2861       1.0000         .10000E-03   10000.    
    22 'norm      '    9.1227       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.398       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.212       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .42233       1.0000         .10000E-03   10000.    
    29 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79074       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6800.699     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     4106 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.623        23.733        .21219E-06    .21104E-04
   2  Prefactor     6.3784        6.9032       -.38933E-05   -.89595E-04
   3  Prefactor     .10000E-03    80.398       -.18184E-04** at limit **
   4  norm          .10000E-03    1.7405        .23991E-07** at limit **
   5  Prefactor     .10000E-03    2.5209       -.72429E-07** at limit **
   6  Prefactor     .10000E-03    1.3129       -.11056E-06** at limit **
   7  Prefactor     41.543        34.039       -.13173E-05    .25513E-05
   8  Prefactor     4.9185        5.6204        .21181E-05   -.30871E-03
   9  Prefactor     23.760        17.158       -.20751E-06   -.11202E-04
  10  Prefactor     .10000E-03    17.953        .19120E-05** at limit **
  11  Prefactor     .10000E-03    22.076       -.29139E-05** at limit **
  12  Prefactor     .10000E-03    3.3001       -.94036E-07** at limit **
  13  Prefactor     .10000E-03    55.435        .14578E-04** at limit **
  14  Prefactor     24.432        11.896       -.19061E-07   -.24521E-04
  15  Prefactor     3.1847        3.0790        .82663E-08    .19676E-03
  16  Prefactor     .10000E-03    47.784       -.62631E-05** at limit **
  17  Prefactor     61.848        44.905        .18514E-05   -.10026E-06
  18  Prefactor     1.0894        9.5403        .41238E-06   -.36496E-03
  19  norm          9.2606        9.4834        .86685E-07   -.24876E-04
  20  norm          3.3693        3.9643       -.11417E-05    .67651E-04
  21  norm          7.2854        5.3939        .25932E-06    .85750E-05
  22  norm          9.1206        7.6947       -.25681E-05   -.12282E-03
  23  Prefactor     .10000E-03    5.2636       -.26818E-06** at limit **
  24  Prefactor     23.391        33.809       -.58156E-05   -.29601E-05
  25  Prefactor     .10000E-03    70.849        .70705E-05** at limit **
  26  norm          12.213        6.3962        .40809E-06   -.15512E-03
  27  Prefactor     .10000E-03    8.2834        .35066E-07** at limit **
  28  norm          .42253        .97521       -.25384E-06   -.19561E-02
  29  norm          .10000E-03    1.3349        .15478E-07** at limit **
  30  Normalizat    .79072        .16604        .52474E-06    .57421E-04
  31  Prefactor     .98379        .16240        .71514E-06    .36105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6229
  Prefactor  = 6.3784
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5428
  Prefactor  = 4.9185
  Prefactor  = 23.7601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4316
  Prefactor  = 3.1847
  Prefactor  = 0.0001
  Prefactor  = 61.8476
  Prefactor  = 1.08939
  norm       = 9.26062
  norm       = 3.3693
  norm       = 7.28543
  norm       = 9.12056
  Prefactor  = 0.0001
  Prefactor  = 23.3914
  Prefactor  = 0.0001
  norm       = 12.2134
  Prefactor  = 0.0001
  norm       = 0.422531
  norm       = 0.0001
  Normalizat = 0.790722
  Prefactor  = 0.983792
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.699     FROM HESSE     STATUS=OK           626 CALLS     4732 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.623        23.725        .76228E-04   -1.4656    
   2  Prefactor     6.3784        6.9341        .15887E-03   -1.5203    
   3  Prefactor     .10000E-03    79.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7409        .10625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5342        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5055        .18234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.543        33.979        .62192E-04   -1.4418    
   8  Prefactor     4.9185        5.5647        .18135E-03   -1.5264    
   9  Prefactor     23.760        17.161        .82176E-04   -1.4733    
  10  Prefactor     .10000E-03    18.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3118        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.432        11.946        .81042E-04   -1.4719    
  15  Prefactor     3.1847        3.0867        .13844E-03   -1.5351    
  16  Prefactor     .10000E-03    48.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.848        44.872        .51023E-04   -1.4133    
  18  Prefactor     1.0894        48.394        .43184E-02   -1.5499    
  19  norm          9.2606        9.4816        .13171E-03   -1.5099    
  20  norm          3.3693        3.9461        .17205E-03   -1.5341    
  21  norm          7.2854        5.4061        .14860E-03   -1.5168    
  22  norm          9.1206        7.7392        .13269E-03   -1.5104    
  23  Prefactor     .10000E-03    5.4101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.391        33.918        .82809E-04   -1.4740    
  25  Prefactor     .10000E-03    71.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.213        6.4138        .11394E-03   -1.5009    
  27  Prefactor     .10000E-03    8.3274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .42253        .91878        .10689E-03   -1.5578    
  29  norm          .10000E-03    1.3431        .92982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .79072        .20088        .24525E-03   -1.0041    
  31  Prefactor     .98379        .19640        .23162E-03   -.93272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36199e-09
Minuit parameter uncertainties:
  1  23.733
  2  6.93493
  3  0.000554222
  4  2.22154e-09
  5  3.60332e-06
  6  3.03794e-05
  7  33.9952
  8  5.56524
  9  17.1644
  10  3.06913e-05
  11  0.000128988
  12  7.04324e-06
  13  4.49479e-05
  14  11.9468
  15  3.08687
  16  0.000193902
  17  44.8969
  18  14.5335
  19  9.48311
  20  3.94641
  21  5.40648
  22  7.74007
  23  1.48036e-05
  24  33.9464
  25  0.000121211
  26  6.41413
  27  6.79457e-06
  28  0.918811
  29  4.15235e-06
  30  0.201068
  31  0.196538
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6800.69903746

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  3.185e+00  3.087e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.838e-01  1.965e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  7.907e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.03
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 6.76e-06 +/- 6.55e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6798.84842858
delta logL = 1.85060888489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6798.81843803
delta logL = 1.88059943204

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2200       1.0000         .10000E-03   10000.    
     2 'Index     '    .84755       1.0000          .0000       10.000    
     3 'Normalizat'    .79863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6798.818     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2200        2.3016        .69000E-02    .18951E-02
   2  Index         .84755        .43529        .27411        .21428E-05
   3  Normalizat    .79864        .15276        .43592E-01    .28466E-03
   4  Prefactor     .98139        .16026        .46034E-01    .25596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21997
  Index      = 0.847554
  Normalizat = 0.798642
  Prefactor  = 0.981386
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.818     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2200        3.5240        .11916E-03   -1.5410    
   2  Index         .84755        .65927        .12103E-02   -.97999    
   3  Normalizat    .79864        .18254        .24408E-03   -1.0012    
   4  Prefactor     .98139        .19155        .23185E-03   -.93353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85903e-09
Minuit parameter uncertainties:
  1  3.52428
  2  0.665591
  3  0.182683
  4  0.191681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514215': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6798.81843803
delta logL = 1.88059943821

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  2.220e+00  3.524e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  8.476e-01  6.656e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.814e-01  1.917e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  7.986e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.78
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 0.85 +/- 0.67
Photon Flux (Free Index): 3.12e-09 +/- 3.43e-09
Energy Flux (Free Index): 6.35e-05 +/- 8.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/514215/cmap_HighResolution_471052801_471312001_4FGL_J2250.4-4206_daily_bin894.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/514215

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='6.35e-05', photon_flux_error='1.16e-08', dlogl='1.88e+00', energy_flux='6.76e-06', photon_flux2='3.12e-09', job_status='DONE', time_completed='2021-09-28 22:56:10.547343', photon_index_error2='0.67', photon_index2='0.85', ts='7.03', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='8.41e-05', EG='0.79', time_epoch_completed='1632894970.55', return_code='0', job_id='514215', GAL2='0.98', EG2='0.80', return_code2='0', energy_flux_error='6.55e-06', photon_flux_error2='3.43e-09', ts2='10.78', photon_index='2.09' WHERE bin_id='894' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 514215: <4FGL_J2250.4-4206_daily_bin894> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin894> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:28 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:40:30 2021
Terminated at Tue Sep 28 22:56:11 2021
Results reported at Tue Sep 28 22:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin894 342.606 -42.1095 471052801 471312001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.4-4206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   810.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

The output (if any) is above this job summary.

