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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1521
RA = 336.414, Dec = 21.3418
tmin = 633571201, tmax = 633830401
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='293836', job_status='RUN', time_executed='2021-09-28 11:01:01.338122', time_epoch_executed='1632852061.34' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293836/ft1_4FGL_J2225.6+2120_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293836/ft1_4FGL_J2225.6+2120_daily_bin1521.fits outfile=/scratch/kocevski/293836/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1521.fits ra=336.414 dec=21.3418 rad=12.0 tmin=633571201.0 tmax=633830401.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.54
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.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/293836/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/293836/ltcube_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.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/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/293836/ltcube_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits outfile=/scratch/kocevski/293836/expmap_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.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/293836/ltcube_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits
.....................!
real 191.43
user 185.37
sys 5.62

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/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits scfile=/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits outfile=/scratch/kocevski/293836/cmap_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits scfile=/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits outfile=/scratch/kocevski/293836/cmap_HighResolution_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits', '/scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits', expMap='/scratch/kocevski/293836/expmap_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits', expCube='/scratch/kocevski/293836/ltcube_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293836/Model_4FGL_J2225.6+2120_daily_bin1521.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/293836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1521.fits
Spacecraft file(s): /scratch/kocevski/293836/ft2_4FGL_J2225.6+2120_daily_bin1521.fits
Exposure map: /scratch/kocevski/293836/expmap_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits
Exposure cube: /scratch/kocevski/293836/ltcube_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293836/Model_4FGL_J2225.6+2120_daily_bin1521.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) = 7838.42297131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4320       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31483E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8840       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.302       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39773       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4801       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82861       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=   7838.417     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2955 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.514       -.50883E-06** at limit **
   2  norm          1.6743        2.5431        .12942E-06   -.13987E-03
   3  Prefactor     1.4199        117.60        .12056E-05   -.19809E-04
   4  norm          .10000E-03    .38993        .38731E-08** at limit **
   5  Prefactor     .10000E-03    38.941       -.13097E-05** at limit **
   6  norm          .10000E-03    .32819       -.18059E-07** at limit **
   7  Prefactor     .10000E-03    46.271        .22609E-05** at limit **
   8  norm          .10000E-03    1.2195        .33569E-08** at limit **
   9  Prefactor     .10000E-03    9.5734        .76981E-07** at limit **
  10  Prefactor     .10002E-03    204.91       -.32655E-05** at limit **
  11  Prefactor     .10000E-03    25.202        .32963E-06** at limit **
  12  Prefactor     .10000E-03    .85719E-01   -.12539E-06** at limit **
  13  Prefactor     6.8844        12.477        .36377E-05   -.15060E-03
  14  norm          .10000E-03    .30235       -.17399E-09** at limit **
  15  Prefactor     .10000E-03    10.049        .89417E-08** at limit **
  16  norm          1.2264        1.5202        .79531E-07   -.62953E-04
  17  Prefactor     56.306        44.522        .14554E-06    .54820E-04
  18  Prefactor     23.349        14.348        .41691E-08   -.94430E-05
  19  Prefactor     16.209        25.631       -.17517E-07    .83855E-05
  20  Prefactor     .39774        .18838        .66667E-08    .12567E-03
  21  Prefactor     .10000E-03    8.7358        .10792E-06** at limit **
  22  Prefactor     .10000E-03    8.8642       -.13785E-06** at limit **
  23  Prefactor     .10000E-03    12.404       -.20779E-07** at limit **
  24  Normalizat    1.4802        .22187        .79699E-07    .58719E-04
  25  Prefactor     .82854        .10828       -.15912E-06    .10275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.67427
  Prefactor  = 1.41989
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88444
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22639
  Prefactor  = 56.3056
  Prefactor  = 23.349
  Prefactor  = 16.2092
  Prefactor  = 0.397744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48021
  Prefactor  = 0.828544
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.417     FROM HESSE     STATUS=OK           425 CALLS     3380 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6743        2.4276        .15091E-03   -1.5449    
   3  Prefactor     1.4199        110.42        .36093E-03   -1.5470    
   4  norm          .10000E-03    .40482        .10791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .55648        .98161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2245        .95475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    210.90        .21369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .24593        .49213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8844        12.629        .76457E-03   -1.5183    
  14  norm          .10000E-03    .54797        .94516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2264        1.4867        .11566E-03   -1.5486    
  17  Prefactor     56.306        44.610        .53461E-04   -1.4206    
  18  Prefactor     23.349        14.320        .82894E-04   -1.4741    
  19  Prefactor     16.209        25.599        .99481E-04   -1.4903    
  20  Prefactor     .39774        .18590        .23131E-04   -1.5582    
  21  Prefactor     .10000E-03    8.8164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.9882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4802        .26688        .30115E-03   -.78336    
  25  Prefactor     .82854        .13130        .19415E-03   -.98685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11756e-10
Minuit parameter uncertainties:
  1  0.000429886
  2  2.42773
  3  25.0899
  4  2.56248e-08
  5  0.000790995
  6  5.2079e-07
  7  0.000937652
  8  1.85368e-08
  9  2.05933e-05
  10  0.003919
  11  6.9442e-05
  12  2.57098e-06
  13  12.6342
  14  5.01225e-07
  15  1.58905e-06
  16  1.48674
  17  44.6369
  18  14.3224
  19  25.6166
  20  0.185898
  21  2.61827e-05
  22  3.33268e-05
  23  8.31809e-06
  24  0.267136
  25  0.131354
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  6.944e-05  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:  8.285e-01  1.314e-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:  1.480e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293836/likelihoodResults_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.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) = 7838.4171739
delta logL = -0.000183504517736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7838.41699081
delta logL = -4.05025275541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13652E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7497       1.0000          .0000       10.000    
     3 'Normalizat'    1.4803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82850       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=   7838.417     FROM MIGRAD    STATUS=FAILED        99 CALLS      258 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10771E-03    206.41        .36285E-02** at limit **
   2  Index         2.6177        7.3789        .50000        .11708E-04
   3  Normalizat    1.4802        .12296E-01    .30115E-03    .94377E-06
   4  Prefactor     .82854        .61778E-02    .19415E-03   -.17567E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7838.417     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      371 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10771E-03    206.41        .10515E-02** at limit **
   2  Index         2.6177        7.3789        .40373E-03    .11708E-04
   3  Normalizat    1.4802        .12296E-01    .16627E-05    .94377E-06
   4  Prefactor     .82854        .61778E-02    .13855E-05   -.17567E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7838.417     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      404 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10553E-03    866.52        .72569E-03** at limit **
   2  Index         2.6264        7.4501        .50000        .12045E-04
   3  Normalizat    1.4802        .26084E-01    .12046E-04    .75502E-06
   4  Prefactor     .82854        .13105E-01    .77661E-05   -.29278E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105535
  Index      = 2.62639
  Normalizat = 1.48021
  Prefactor  = 0.828544
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.417     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      433 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10553E-03    6262.3        .14514E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6264        6.1311        .50000       -.49465    
   3  Normalizat    1.4802        .48690E-01    .24092E-05   -.78336    
   4  Prefactor     .82854        .24459E-01    .15532E-05   -.98685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5219e-08
Minuit parameter uncertainties:
  1  0.247714
  2  1112.44
  3  0.0486913
  4  0.0244597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293836': 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) = 7838.41698975
delta logL = 6.52184098726e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.055e-04  2.477e-01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.626e+00  1.112e+03  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:  8.285e-01  2.446e-02  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:  1.480e+00  4.869e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293836/cmap_HighResolution_633571201_633830401_4FGL_J2225.6+2120_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-28 11:14:17.332848', job_id='293836', GAL2='0.83', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632852857.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1521' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 293836: <4FGL_J2225.6+2120_daily_bin1521> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1521> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:49 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:50 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:50 2021
Terminated at Tue Sep 28 11:14:18 2021
Results reported at Tue Sep 28 11:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1521 336.414 21.3418 633571201 633830401 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

