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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1481
RA = 336.414, Dec = 21.3418
tmin = 623203201, tmax = 623462401
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='293746', job_status='RUN', time_executed='2021-09-28 11:01:03.677024', time_epoch_executed='1632852063.68' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293746/ft1_4FGL_J2225.6+2120_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293746/ft1_4FGL_J2225.6+2120_daily_bin1481.fits outfile=/scratch/kocevski/293746/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1481.fits ra=336.414 dec=21.3418 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.90
user 2.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.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/293746/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.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/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/293746/ltcube_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.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/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits
.....................!
real 12.89
user 12.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/293746/ltcube_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits outfile=/scratch/kocevski/293746/expmap_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.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/293746/ltcube_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits
.....................!
real 191.57
user 185.76
sys 5.32

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits outfile=/scratch/kocevski/293746/cmap_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.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=336.414 yref=21.3418 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits outfile=/scratch/kocevski/293746/cmap_HighResolution_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.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=336.414 yref=21.3418 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293746/Model_4FGL_J2225.6+2120_daily_bin1481.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/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits.....................!
real 29.59
user 28.40
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits', '/scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits', expMap='/scratch/kocevski/293746/expmap_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits', expCube='/scratch/kocevski/293746/ltcube_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293746/Model_4FGL_J2225.6+2120_daily_bin1481.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/293746/ft1_filtered_4FGL_J2225.6+2120_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/293746/ft2_4FGL_J2225.6+2120_daily_bin1481.fits
Exposure map: /scratch/kocevski/293746/expmap_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits
Exposure cube: /scratch/kocevski/293746/ltcube_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293746/Model_4FGL_J2225.6+2120_daily_bin1481.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) = 1990.93131814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.036       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    130.56       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.227       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.154       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25735       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.049       1.0000         .10000E-03   10000.    
    22 'Prefactor '    107.37       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .36593       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1990.700     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     3446 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.131        238.21        .11368E-03    .11069E-05
   2  norm          .10000E-03    1.4698       -.27564E-06** at limit **
   3  Prefactor     .10000E-03    31.111       -.16831E-05** at limit **
   4  norm          .10000E-03    1.1976        .17666E-06** at limit **
   5  Prefactor     .10000E-03    36.816       -.34877E-05** at limit **
   6  norm          .10000E-03    1.2660        .17281E-06** at limit **
   7  Prefactor     .10000E-03    17.875        .62263E-07** at limit **
   8  norm          .10000E-03    6.5526       -.11202E-06** at limit **
   9  Prefactor     17.092        46.385       -.55519E-06   -.28007E-05
  10  Prefactor     130.55        133.36       -.11409E-04   -.54104E-05
  11  Prefactor     2.6525        76.659        .23136E-04   -.19578E-04
  12  Prefactor     .71936        .71803        .18393E-06   -.39057E-03
  13  Prefactor     .10000E-03    34.932        .40383E-05** at limit **
  14  norm          .10000E-03    1.9733        .30902E-06** at limit **
  15  Prefactor     36.213        64.543       -.10570E-04   -.87772E-05
  16  norm          .10000E-03    3.3024        .40882E-07** at limit **
  17  Prefactor     .10000E-03    44.443        .23809E-06** at limit **
  18  Prefactor     48.425        60.629       -.34262E-05   -.20890E-04
  19  Prefactor     28.142        69.140       -.12959E-04   -.15983E-05
  20  Prefactor     .25736        .42224        .98817E-07    .52185E-04
  21  Prefactor     36.055        68.621        .85291E-05   -.47500E-05
  22  Prefactor     107.38        107.82        .11488E-04   -.80591E-06
  23  Prefactor     .10000E-03    341.05       -.14039E-06** at limit **
  24  Normalizat    .36595        .52661       -.10298E-04   -.12339E-03
  25  Prefactor     1.0546        .23561       -.21304E-05    .11232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.1307
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0922
  Prefactor  = 130.547
  Prefactor  = 2.65248
  Prefactor  = 0.719359
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.2132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4249
  Prefactor  = 28.142
  Prefactor  = 0.25736
  Prefactor  = 36.0555
  Prefactor  = 107.383
  Prefactor  = 0.0001
  Normalizat = 0.365945
  Prefactor  = 1.05461
 **********
 **   18 **HESSE 
 **********

 FCN=   1990.700     FROM HESSE     STATUS=OK           425 CALLS     3871 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.131        238.71        .25074E-03   -1.4105    
   2  norm          .10000E-03    1.4828        .52806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2302        .95236E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9801        .95108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.5592        .11152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.092        46.478        .96866E-04   -1.4881    
  10  Prefactor     130.55        132.94        .17619E-03   -1.3418    
  11  Prefactor     2.6525        73.783        .24994E-03   -1.5382    
  12  Prefactor     .71936        .70682        .32688E-04   -1.5538    
  13  Prefactor     .10000E-03    34.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9903        .61090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.213        63.992        .66585E-04   -1.4504    
  16  norm          .10000E-03    3.3059        .79074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.425        60.165        .57621E-04   -1.4315    
  19  Prefactor     28.142        68.899        .75504E-04   -1.4646    
  20  Prefactor     .25736        .39293        .35462E-03   -1.5607    
  21  Prefactor     36.055        68.518        .66749E-04   -1.4506    
  22  Prefactor     107.38        107.70        .19406E-03   -1.3632    
  23  Prefactor     .10000E-03    341.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .36595        .50913        .53487E-03   -1.1910    
  25  Prefactor     1.0546        .23915        .15445E-03   -.90931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0949e-09
Minuit parameter uncertainties:
  1  242.423
  2  3.54492e-05
  3  0.000468385
  4  1.80385e-05
  5  6.87039e-06
  6  2.46133e-05
  7  1.4958e-05
  8  1.71575e-05
  9  46.5767
  10  133.25
  11  28.0169
  12  0.706831
  13  2.0109e-06
  14  4.31221e-05
  15  64.1134
  16  1.25361e-05
  17  2.44526e-05
  18  60.2404
  19  69.0946
  20  0.392935
  21  68.6679
  22  107.899
  23  0.000127711
  24  0.515777
  25  0.23939
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.652e+00  2.802e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.055e+00  2.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  3.659e-01  5.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 3.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293746/likelihoodResults_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.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): 0
logL (Free Index) = 1990.6579884
delta logL = 0.0424568853753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1990.64670311
delta logL = 0.0537421753074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9597       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7471       1.0000          .0000       10.000    
     3 'Normalizat'    .31778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1990.647     FROM MIGRAD    STATUS=FAILED        88 CALLS      265 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9507        22.611        .18059E-03    .69752E-03
   2  Index         3.7447        2.7614        .13551E-01    .14382E-03
   3  Normalizat    .31598        .50996        .57434E-03   -.66803E-03
   4  Prefactor     1.0687        .23764        .15351E-03   -.14889E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1990.647     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      340 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9507        22.611        .33141E-03   -1.5263    
   2  Index         3.7447        2.7614        .29964E-02   -.25378    
   3  Normalizat    .31598        .50996        .14245E-02   -1.2190    
   4  Prefactor     1.0687        .23764        .47070E-03   -.90475    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1990.647     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      370 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9499        19.017        .72234E-05    .91992E-04
   2  Index         3.7445        2.5081        .54204E-03    .91708E-05
   3  Normalizat    .31604        .51033        .11487E-03    .51465E-05
   4  Prefactor     1.0686        .23764        .30701E-04    .88317E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94991
  Index      = 3.74453
  Normalizat = 0.316043
  Prefactor  = 1.06863
 **********
 **   18 **HESSE 
 **********

 FCN=   1990.647     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9499        18.943        .14447E-05   -1.5263    
   2  Index         3.7445        2.4999        .21682E-04   -.25381    
   3  Normalizat    .31604        .50977        .45947E-05   -1.2189    
   4  Prefactor     1.0686        .23743        .61402E-05   -.90475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68112e-11
Minuit parameter uncertainties:
  1  18.9659
  2  2.62699
  3  0.51753
  4  0.237667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293746': 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) = 1990.64669231
delta logL = 0.0537529712149

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.950e+00  1.897e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.745e+00  2.627e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.069e+00  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  3.160e-01  5.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 336.414 21.342

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/293746/cmap_HighResolution_623203201_623462401_4FGL_J2225.6+2120_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-02', job_status='DONE', photon_flux_upper_limit='3.34e-07', time_completed='2021-09-28 11:08:15.738839', job_id='293746', GAL2='1.07', fit_tolerance='1e-08', EG2='0.32', EG='0.37', time_epoch_completed='1632852495.74', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.38e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1481' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:08:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 293746: <4FGL_J2225.6+2120_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1481> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:42 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:00:44 2021
Terminated at Tue Sep 28 11:08:16 2021
Results reported at Tue Sep 28 11:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1481 336.414 21.3418 623203201 623462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   430.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            454 sec.

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

