/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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin46
RA = 336.414, Dec = 21.3418
tmin = 251251201, tmax = 251510401
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='284606', job_status='RUN', time_executed='2021-09-28 10:35:28.492431', time_epoch_executed='1632850528.49' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284606/ft1_4FGL_J2225.6+2120_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284606/ft1_4FGL_J2225.6+2120_daily_bin46.fits outfile=/scratch/kocevski/284606/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin46.fits ra=336.414 dec=21.3418 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.49
user 1.30
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.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/284606/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/284606/ft1_filtered_4FGL_J2225.6+2120_daily_bin46.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/284606/ft1_filtered_4FGL_J2225.6+2120_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/284606/ltcube_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.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/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits
.....................!
real 12.70
user 12.26
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284606/ft1_filtered_4FGL_J2225.6+2120_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/284606/ltcube_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.fits outfile=/scratch/kocevski/284606/expmap_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.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/284606/ltcube_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.fits
.....................!
real 192.21
user 186.80
sys 4.80

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/284606/ft1_filtered_4FGL_J2225.6+2120_daily_bin46.fits scfile=/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits outfile=/scratch/kocevski/284606/cmap_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284606/ft1_filtered_4FGL_J2225.6+2120_daily_bin46.fits scfile=/scratch/kocevski/284606/ft2_4FGL_J2225.6+2120_daily_bin46.fits outfile=/scratch/kocevski/284606/cmap_HighResolution_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.677       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .36271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3472       1.0000         .10000E-03   10000.    
     6 'norm      '    .36522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-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 '    11.747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6471       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6894       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0432       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=   9762.910     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2904 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.687        91.021       -.46132E-06    .99143E-05
   2  norm          6.5639        2.6171       -.58438E-08    .24082E-03
   3  Prefactor     .10000E-03    15.774       -.77610E-06** at limit **
   4  norm          .36269        .82125        .66129E-06    .13217E-04
   5  Prefactor     3.2387        186.67       -.74296E-05    .15291E-04
   6  norm          .36528        .56919       -.29122E-06   -.94070E-03
   7  Prefactor     .10000E-03    12.423       -.24830E-06** at limit **
   8  norm          .10000E-03    1.3558        .34167E-07** at limit **
   9  Prefactor     .10000E-03    6.0301        .21166E-06** at limit **
  10  Prefactor     11.736        143.99        .54753E-07   -.26307E-05
  11  Prefactor     .10000E-03    5.0187        .22890E-07** at limit **
  12  Prefactor     .17866        .13450        .43230E-07   -.64005E-04
  13  Prefactor     2.6468        4.6357        .20505E-06   -.39222E-04
  14  norm          .10000E-03    .36552        .12919E-06** at limit **
  15  Prefactor     .10000E-03    34.905        .83978E-06** at limit **
  16  norm          3.7697        1.8270        .15432E-07   -.84415E-05
  17  Prefactor     .10000E-03    13.438        .11119E-06** at limit **
  18  Prefactor     .10000E-03    5.5086        .20284E-06** at limit **
  19  Prefactor     2.0414        47.866        .21175E-05   -.97955E-05
  20  Prefactor     2.0311        .25121       -.32600E-08   -.11731E-03
  21  Prefactor     3.8163        7.3517        .37277E-06   -.30332E-04
  22  Prefactor     6.6896        8.0574        .16914E-06   -.25065E-04
  23  Prefactor     .10000E-03    30.427        .96360E-06** at limit **
  24  Normalizat    1.1051        .21671       -.12885E-05    .48170E-04
  25  Prefactor     1.0433        .10827        .11520E-06   -.63960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6867
  norm       = 6.56389
  Prefactor  = 0.0001
  norm       = 0.362688
  Prefactor  = 3.23869
  norm       = 0.365282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7355
  Prefactor  = 0.0001
  Prefactor  = 0.178655
  Prefactor  = 2.6468
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04136
  Prefactor  = 2.0311
  Prefactor  = 3.81632
  Prefactor  = 6.68961
  Prefactor  = 0.0001
  Normalizat = 1.10511
  Prefactor  = 1.04328
 **********
 **   18 **HESSE 
 **********

 FCN=   9762.910     FROM HESSE     STATUS=OK           433 CALLS     3337 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.687        91.084        .66176E-04   -1.4496    
   2  norm          6.5639        2.6138        .96352E-04   -1.5196    
   3  Prefactor     .10000E-03    15.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .36269        .79695        .13264E-02   -1.5588    
   5  Prefactor     3.2387        187.99        .22121E-03   -1.5348    
   6  norm          .36528        .47994        .95090E-03   -1.5587    
   7  Prefactor     .10000E-03    12.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3636        .11236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.736        144.16        .11688E-03   -1.5023    
  11  Prefactor     .10000E-03    5.0447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17866        .12980        .30203E-03   -1.5623    
  13  Prefactor     2.6468        4.6126        .25058E-03   -1.5383    
  14  norm          .10000E-03    .37286        .58265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7697        1.8263        .90428E-04   -1.5320    
  17  Prefactor     .10000E-03    13.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0414        47.719        .29137E-03   -1.5422    
  20  Prefactor     2.0311        .25162        .16047E-04   -1.5423    
  21  Prefactor     3.8163        7.3328        .20660E-03   -1.5317    
  22  Prefactor     6.6896        8.0504        .15515E-03   -1.5191    
  23  Prefactor     .10000E-03    30.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1051        .25083        .36796E-03   -.89588    
  25  Prefactor     1.0433        .12763        .19265E-03   -.91300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76904e-10
Minuit parameter uncertainties:
  1  91.4323
  2  2.61381
  3  7.03193e-05
  4  0.796977
  5  49.5127
  6  0.479944
  7  4.168e-05
  8  1.6135e-06
  9  5.76549e-06
  10  82.5095
  11  7.81291e-06
  12  0.1298
  13  4.61326
  14  5.68722e-07
  15  5.67125e-05
  16  1.82637
  17  5.47417e-06
  18  1.73981e-06
  19  19.7567
  20  0.251624
  21  7.33455
  22  8.05171
  23  3.7471e-05
  24  0.251099
  25  0.127671
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  7.813e-06  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.043e+00  1.277e-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.105e+00  2.511e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284606/likelihoodResults_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.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) = 9762.91081714
delta logL = -0.000944797857301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9762.90987228
delta logL = 6.13345036982e-08

Fit tolerance = 1e-08

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

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

 FCN=   9762.910     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      250 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    23.841        .18142E-01** at limit **
   2  Index         2.4255        8.2540        .50000        .44702E-06
   3  Normalizat    1.1051        .10938E-01    .36796E-03    .32979E-03
   4  Prefactor     1.0433        .56195E-02    .19265E-03    .67285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.42554
  Normalizat = 1.10511
  Prefactor  = 1.04328
 **********
 **   18 **HESSE 
 **********

 FCN=   9762.910     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    202.76        .22965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4255        5.1400        .50000       -.54088    
   3  Normalizat    1.1051        .32817E-01    .14718E-04   -.89588    
   4  Prefactor     1.0433        .16861E-01    .38530E-04   -.91300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04695e-08
Minuit parameter uncertainties:
  1  0.003754
  2  762.625
  3  0.0328177
  4  0.016861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284606': 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) = 9762.9098711
delta logL = 1.2407090253e-06

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.754e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.426e+00  7.626e+02  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.043e+00  1.686e-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.105e+00  3.282e-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/284606/cmap_HighResolution_251251201_251510401_4FGL_J2225.6+2120_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-28 10:50:23.262190', job_id='284606', GAL2='1.04', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632851423.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='46' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 284606: <4FGL_J2225.6+2120_daily_bin46> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin46> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:35:17 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:35:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:35:19 2021
Terminated at Tue Sep 28 10:50:24 2021
Results reported at Tue Sep 28 10:50:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin46 336.414 21.3418 251251201 251510401 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 :                                   893.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

