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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1446
RA = 336.414, Dec = 21.3418
tmin = 614131201, tmax = 614390401
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='293667', job_status='RUN', time_executed='2021-09-28 11:03:25.109636', time_epoch_executed='1632852205.11' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293667

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293667/ft1_4FGL_J2225.6+2120_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293667/ft1_4FGL_J2225.6+2120_daily_bin1446.fits outfile=/scratch/kocevski/293667/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1446.fits ra=336.414 dec=21.3418 rad=12.0 tmin=614131201.0 tmax=614390401.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 4.72
user 4.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.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/293667/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/293667/ltcube_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.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/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits
.....................!
real 11.29
user 10.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/293667/ltcube_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.fits outfile=/scratch/kocevski/293667/expmap_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.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/293667/ltcube_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.fits
.....................!
real 190.36
user 185.02
sys 5.01

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/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits outfile=/scratch/kocevski/293667/cmap_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits outfile=/scratch/kocevski/293667/cmap_HighResolution_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.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/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/293667/ft2_4FGL_J2225.6+2120_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293667/Model_4FGL_J2225.6+2120_daily_bin1446.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/293667/ft1_filtered_4FGL_J2225.6+2120_daily_bin1446.fits.....................!
real 72.05
user 70.65
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .42265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    131.47       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12740E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.219       1.0000         .10000E-03   10000.    
    14 'norm      '    .93309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.675       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.628       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34794E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87698       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92420       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=   7362.316     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3011 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    25.580        .31099E-05** at limit **
   2  norm          1.9634        2.1955        .46993E-08   -.30226E-03
   3  Prefactor     .10000E-03    9.8859        .70638E-06** at limit **
   4  norm          .42265        .60081        .44504E-06   -.16316E-02
   5  Prefactor     .10000E-03    17.637        .17954E-05** at limit **
   6  norm          .10000E-03    .30252       -.10332E-07** at limit **
   7  Prefactor     .10000E-03    10.959       -.82265E-06** at limit **
   8  norm          7.5352        5.0093       -.18757E-07    .11730E-03
   9  Prefactor     .10000E-03    6.1312        .14485E-06** at limit **
  10  Prefactor     131.46        91.360       -.41157E-05   -.26182E-03
  11  Prefactor     .10007E-03    7.2989       -.21238E-05** at limit **
  12  Prefactor     .24627        .19653       -.41496E-09   -.91084E-03
  13  Prefactor     23.219        12.737       -.25050E-07   -.10757E-04
  14  norm          .93101        1.0860        .94026E-07   -.87586E-04
  15  Prefactor     .10000E-03    10.234        .11821E-06** at limit **
  16  norm          4.9739        2.4978        .29485E-07    .25744E-03
  17  Prefactor     .10000E-03    9.1104       -.36488E-06** at limit **
  18  Prefactor     .10000E-03    11.664       -.10555E-06** at limit **
  19  Prefactor     16.364        18.801       -.30606E-07   -.15949E-04
  20  Prefactor     .46812        .15098       -.12284E-07   -.87653E-03
  21  Prefactor     11.673        9.4824        .22885E-06   -.96986E-04
  22  Prefactor     11.628        9.7611        .34203E-08   -.10503E-04
  23  Prefactor     .10002E-03    10.120       -.42324E-06** at limit **
  24  Normalizat    .87715        .20998        .24736E-06    .19811E-03
  25  Prefactor     .92412        .10464       -.37727E-07    .35277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 1.96344
  Prefactor  = 0.0001
  norm       = 0.422648
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.53522
  Prefactor  = 0.0001
  Prefactor  = 131.46
  Prefactor  = 0.000100067
  Prefactor  = 0.246266
  Prefactor  = 23.2192
  norm       = 0.931014
  Prefactor  = 0.0001
  norm       = 4.97388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3636
  Prefactor  = 0.468119
  Prefactor  = 11.6735
  Prefactor  = 11.628
  Prefactor  = 0.000100018
  Normalizat = 0.877152
  Prefactor  = 0.92412
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.316     FROM HESSE     STATUS=OK           433 CALLS     3444 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9634        2.2039        .12972E-03   -1.5428    
   3  Prefactor     .10000E-03    9.9574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42265        .71837        .21902E-03   -1.5578    
   5  Prefactor     .10000E-03    18.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .31421        .92076E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5352        5.0055        .14609E-03   -1.5159    
   9  Prefactor     .10000E-03    6.1527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     131.46        96.497        .35117E-04   -1.3410    
  11  Prefactor     .10007E-03    22.995        .38045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24627        .19008        .31926E-03   -1.5609    
  13  Prefactor     23.219        12.719        .83127E-04   -1.4744    
  14  norm          .93101        1.0082        .91132E-03   -1.5515    
  15  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9739        2.4950        .92646E-04   -1.5262    
  17  Prefactor     .10000E-03    9.1285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.364        18.824        .99012E-04   -1.4899    
  20  Prefactor     .46812        .15124        .17706E-04   -1.5571    
  21  Prefactor     11.673        9.5576        .58622E-03   -1.5025    
  22  Prefactor     11.628        9.7577        .11748E-03   -1.5026    
  23  Prefactor     .10002E-03    101.30        .52633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87715        .24278        .34216E-03   -.97268    
  25  Prefactor     .92412        .12398        .17428E-03   -.95303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45511e-09
Minuit parameter uncertainties:
  1  0.00081748
  2  2.204
  3  0.000113299
  4  0.718385
  5  0.000385864
  6  4.4282e-07
  7  0.000117395
  8  5.00576
  9  1.80575e-05
  10  96.6128
  11  0.00248797
  12  0.190079
  13  12.7207
  14  1.00817
  15  2.00829e-05
  16  2.49509
  17  5.56473e-05
  18  1.85404e-05
  19  18.8306
  20  0.151239
  21  9.55888
  22  9.75902
  23  0.00273101
  24  0.243082
  25  0.124014
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.001e-04  2.488e-03  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:  9.241e-01  1.240e-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:  8.772e-01  2.431e-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: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293667/likelihoodResults_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.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) = 7362.31640978
delta logL = -0.000205836997338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7362.31620373
delta logL = 2.07766788662e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7400       1.0000          .0000       10.000    
     3 'Normalizat'    .87728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92407       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=   7362.316     FROM MIGRAD    STATUS=FAILED       101 CALLS      269 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13236E-03    621.16        .41593E-02** at limit **
   2  Index         2.3319        6.3895        .50000        .33983E-05
   3  Normalizat    .87715        .12376E-01    .34216E-03    .28957E-03
   4  Prefactor     .92412        .65017E-02    .17428E-03    .71965E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7362.316     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      384 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13236E-03    621.16        .18503E-02** at limit **
   2  Index         2.3319        6.3895        .37032E-03    .33983E-05
   3  Normalizat    .87715        .12376E-01    .28406E-05    .28957E-03
   4  Prefactor     .92412        .65017E-02    .15830E-05    .71965E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7362.316     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      465 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7904.1        .33274E-03** at limit **
   2  Index         2.2866        8.8553        .50000       -.10402E-06
   3  Normalizat    .87715        .43962E-01    .27373E-05   -.35718E-04
   4  Prefactor     .92412        .23098E-01    .69711E-05   -.45337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28663
  Normalizat = 0.877151
  Prefactor  = 0.92412
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.316     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      494 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9999.4        .66548E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2866        6.4753        .50000       -.57362    
   3  Normalizat    .87715        .12562        .54746E-06   -.97268    
   4  Prefactor     .92412        .66245E-01    .13942E-05   -.95303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.58616e-10
Minuit parameter uncertainties:
  1  0.00344368
  2  1765.36
  3  0.125666
  4  0.0662505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293667': 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) = 7362.31620221
delta logL = 1.7328402464e-06

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.444e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.287e+00  1.765e+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:  9.241e-01  6.625e-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:  8.772e-01  1.257e-01  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/293667/cmap_HighResolution_614131201_614390401_4FGL_J2225.6+2120_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-28 11:16:09.883193', job_id='293667', GAL2='0.92', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632852969.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1446' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 293667: <4FGL_J2225.6+2120_daily_bin1446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1446 336.414 21.3418 614131201 614390401 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 :                                   763.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

