/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 26 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 = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin731
RA = 342.606, Dec = -42.1095
tmin = 428803201, tmax = 429062401
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='513970', job_status='RUN', time_executed='2021-09-28 22:40:49.999962', time_epoch_executed='1632894050.0' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513970/ft1_4FGL_J2250.4-4206_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513970/ft1_4FGL_J2250.4-4206_daily_bin731.fits outfile=/scratch/kocevski/513970/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin731.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.57
user 6.26
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.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/513970/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/513970/ltcube_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.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/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits
.....................!
real 12.80
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/513970/ltcube_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits outfile=/scratch/kocevski/513970/expmap_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.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/513970/ltcube_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits
.....................!
real 190.50
user 185.38
sys 4.08

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/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits outfile=/scratch/kocevski/513970/cmap_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits outfile=/scratch/kocevski/513970/cmap_HighResolution_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513970/Model_4FGL_J2250.4-4206_daily_bin731.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/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits......................!
real 32.91
user 31.50
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits', '/scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits', expMap='/scratch/kocevski/513970/expmap_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits', expCube='/scratch/kocevski/513970/ltcube_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513970/Model_4FGL_J2250.4-4206_daily_bin731.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/513970/ft1_filtered_4FGL_J2250.4-4206_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/513970/ft2_4FGL_J2250.4-4206_daily_bin731.fits
Exposure map: /scratch/kocevski/513970/expmap_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits
Exposure cube: /scratch/kocevski/513970/ltcube_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513970/Model_4FGL_J2250.4-4206_daily_bin731.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) = 3467.63764572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14479E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11228E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43690E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5012       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9828       1.0000         .10000E-03   10000.    
    22 'norm      '    23.428       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9367       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .17107E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .21001E-01   1.0000         .10000E-03   10000.    
    28 'norm      '    9.0261       1.0000         .10000E-03   10000.    
    29 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3870       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .47174       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3467.615     FROM MIGRAD    STATUS=CONVERGED   1488 CALLS     5434 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.690        64.032        .68934E-04    .65969E-05
   2  Prefactor     9.4228        12.509        .13050E-03   -.11351E-03
   3  Prefactor     .10000E-03    125.46        .18142E-02** at limit **
   4  norm          11.586        12.194        .11768E-03   -.90331E-05
   5  Prefactor     .10000E-03    3.7207        .11088E-02** at limit **
   6  Prefactor     .10000E-03    1.3420        .66588E-03** at limit **
   7  Prefactor     .10000E-03    28.200        .18142E-02** at limit **
   8  Prefactor     11.200        10.484        .11974E-03    .16710E-04
   9  Prefactor     44.665        34.777        .59976E-04    .20226E-04
  10  Prefactor     35.088        27.974        .67660E-04    .19491E-04
  11  Prefactor     67.592        52.120        .48796E-04    .11533E-04
  12  Prefactor     .10000E-03    8.7063        .16955E-02** at limit **
  13  Prefactor     .10000E-03    58.621        .18142E-02** at limit **
  14  Prefactor     8.3759        17.363        .13854E-03    .30895E-04
  15  Prefactor     .10000E-03    5.5989        .13574E-02** at limit **
  16  Prefactor     .10000E-03    57.875        .18142E-02** at limit **
  17  Prefactor     .10000E-03    95.274        .16529    ** at limit **
  18  Prefactor     1.5093        87.878        .34946E-03    .12362E-05
  19  norm          .10000E-03    12.612        .18142E-02** at limit **
  20  norm          .10000E-03    3.4775        .10724E-02** at limit **
  21  norm          4.9871        6.4967        .13472E-03   -.19919E-03
  22  norm          23.428        11.632        .82756E-04    .67315E-05
  23  Prefactor     1.9420        6.5475        .26220E-03   -.29245E-04
  24  Prefactor     .10000E-03    43.870        .18142E-02** at limit **
  25  Prefactor     .10000E-03    22.294        .18142E-02** at limit **
  26  norm          .10016E-03    11.286        .32844E-01** at limit **
  27  Prefactor     .10000E-03    237.91        .52411E-02** at limit **
  28  norm          9.0259        2.6311        .47005E-04    .23700E-03
  29  norm          .10000E-03    3.5854        .10766E-02** at limit **
  30  Normalizat    1.3869        .30122        .21750E-03    .85616E-04
  31  Prefactor     .47177        .27439        .34404E-03    .60009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6903
  Prefactor  = 9.42277
  Prefactor  = 0.0001
  norm       = 11.5863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1997
  Prefactor  = 44.6646
  Prefactor  = 35.0884
  Prefactor  = 67.5925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.37586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.50931
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.98708
  norm       = 23.4283
  Prefactor  = 1.94201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100163
  Prefactor  = 0.0001
  norm       = 9.02595
  norm       = 0.0001
  Normalizat = 1.38688
  Prefactor  = 0.471768
 **********
 **   18 **HESSE 
 **********

 FCN=   3467.615     FROM HESSE     STATUS=OK           610 CALLS     6044 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.690        64.030        .27573E-05   -1.4546    
   2  Prefactor     9.4228        12.509        .52201E-05   -1.5094    
   3  Prefactor     .10000E-03    125.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.586        12.194        .47070E-05   -1.5027    
   5  Prefactor     .10000E-03    3.7208        .22176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3421        .13318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.200        10.484        .47896E-05   -1.5039    
   9  Prefactor     44.665        34.776        .11995E-04   -1.4370    
  10  Prefactor     35.088        27.974        .27064E-05   -1.4523    
  11  Prefactor     67.592        52.118        .97592E-05   -1.4062    
  12  Prefactor     .10000E-03    8.7066        .33911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3759        17.362        .55417E-05   -1.5129    
  15  Prefactor     .10000E-03    5.5995        .27149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    98.723        .16120       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5093        87.740        .13978E-04   -1.5462    
  19  norm          .10000E-03    12.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4775        .21448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9871        6.2842        .26944E-04   -1.5261    
  22  norm          23.428        11.632        .33102E-05   -1.4740    
  23  Prefactor     1.9420        6.4845        .10488E-04   -1.5429    
  24  Prefactor     .10000E-03    43.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10016E-03    7.7418        .40174E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    242.37        .20965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.0259        2.6289        .94010E-05   -1.5107    
  29  norm          .10000E-03    3.5863        .21533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3869        .30139        .43501E-04   -.81009    
  31  Prefactor     .47177        .27460        .13762E-04   -1.1329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85851e-11
Minuit parameter uncertainties:
  1  64.1612
  2  12.5122
  3  0.000359946
  4  12.1971
  5  3.95472e-07
  6  1.97643e-06
  7  6.66152e-06
  8  10.4855
  9  34.7919
  10  27.984
  11  52.1528
  12  4.40407e-05
  13  5.21491e-05
  14  17.3723
  15  1.04861e-06
  16  2.18431e-05
  17  0.00114673
  18  23.0501
  19  5.48665e-06
  20  3.68083e-06
  21  6.28501
  22  11.6332
  23  6.48685
  24  6.75774e-06
  25  6.43556e-07
  26  0.00224901
  27  0.000155602
  28  2.62896
  29  1.8035e-06
  30  0.301774
  31  0.275374
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.049e-06  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:  4.718e-01  2.754e-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:  1.387e+00  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513970/likelihoodResults_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.txt

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): 102
logL (Free Index) = 3467.61594485
delta logL = -0.000844375765155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3467.61510044
delta logL = 4.20091055275e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0700       1.0000          .0000       10.000    
     3 'Normalizat'    1.3869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47178       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3467.615     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    77.496        .13720E-02** at limit **
   2  Index         2.0127        5.9991        .50000        .19119E-04
   3  Normalizat    1.3869        .21479E-01    .21750E-03    .22810E-04
   4  Prefactor     .47177        .20865E-01    .34404E-03    .12210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010111
  Index      = 2.0127
  Normalizat = 1.38688
  Prefactor  = 0.471768
 **********
 **   18 **HESSE 
 **********

 FCN=   3467.615     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    353.26        .27440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0127        6.1038        .50000       -.64033    
   3  Normalizat    1.3869        .48898E-01    .43500E-04   -.81009    
   4  Prefactor     .47177        .47470E-01    .13761E-04   -1.1329    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.95572e-08
Minuit parameter uncertainties:
  1  0.0398477
  2  765.173
  3  0.0489
  4  0.0474743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513970': 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): 102
logL (Free Index) = 3467.61510018
delta logL = 2.97650331049e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.011e-04  3.985e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.013e+00  7.652e+02  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:  4.718e-01  4.747e-02  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:  1.387e+00  4.890e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.606 -42.109

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/513970/cmap_HighResolution_428803201_429062401_4FGL_J2250.4-4206_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-28 22:52:55.343808', job_id='513970', GAL2='0.47', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632894775.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='2.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='731' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:52:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 513970: <4FGL_J2250.4-4206_daily_bin731> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin731> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:13 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:15 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:15 2021
Terminated at Tue Sep 28 22:52:56 2021
Results reported at Tue Sep 28 22:52:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin731 342.606 -42.1095 428803201 429062401 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 :                                   711.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

