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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1469
RA = 336.414, Dec = 21.3418
tmin = 620092801, tmax = 620352001
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='293704', job_status='RUN', time_executed='2021-09-28 11:01:09.272698', time_epoch_executed='1632852069.27' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293704/ft1_4FGL_J2225.6+2120_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293704/ft1_4FGL_J2225.6+2120_daily_bin1469.fits outfile=/scratch/kocevski/293704/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1469.fits ra=336.414 dec=21.3418 rad=12.0 tmin=620092801.0 tmax=620352001.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.52
user 3.20
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.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/293704/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1469.fits evtable="EVENTS" outfile="/scratch/kocevski/293704/ft1_filtered_4FGL_J2225.6+2120_daily_bin1469.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293704/ft1_filtered_4FGL_J2225.6+2120_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/293704/ltcube_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.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/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits
.....................!
real 12.94
user 12.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293704/ft1_filtered_4FGL_J2225.6+2120_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/293704/ltcube_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.fits outfile=/scratch/kocevski/293704/expmap_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.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/293704/ltcube_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.fits
.....................!
real 190.92
user 184.79
sys 5.67

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/293704/ft1_filtered_4FGL_J2225.6+2120_daily_bin1469.fits scfile=/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits outfile=/scratch/kocevski/293704/cmap_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293704/ft1_filtered_4FGL_J2225.6+2120_daily_bin1469.fits scfile=/scratch/kocevski/293704/ft2_4FGL_J2225.6+2120_daily_bin1469.fits outfile=/scratch/kocevski/293704/cmap_HighResolution_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.03       1.0000         .10000E-03   10000.    
     2 'norm      '    .19437E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.250       1.0000         .10000E-03   10000.    
     4 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.061       1.0000         .10000E-03   10000.    
     6 'norm      '    .19471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9451       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15917       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1032       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.478       1.0000         .10000E-03   10000.    
    16 'norm      '    .84458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0324       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18412E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46016       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2371       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.902       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87474       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0262       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=   7584.904     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3089 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.98        130.80       -.35702E-05   -.71699E-04
   2  norm          .10000E-03    1.2275        .30340E-08** at limit **
   3  Prefactor     34.304        34.982        .67052E-06    .10368E-04
   4  norm          .10000E-03    .53120        .78073E-07** at limit **
   5  Prefactor     69.064        44.195       -.14098E-06   -.22835E-04
   6  norm          .19430        .83754        .30378E-06   -.43015E-03
   7  Prefactor     4.9428        9.5801        .46397E-06    .26062E-04
   8  norm          .10000E-03    1.7740       -.12590E-07** at limit **
   9  Prefactor     .10000E-03    29.467       -.20828E-06** at limit **
  10  Prefactor     .10000E-03    184.08        .44715E-06** at limit **
  11  Prefactor     8.3131        11.076        .18003E-06   -.21389E-04
  12  Prefactor     .15924        .19291        .88670E-07    .34487E-03
  13  Prefactor     .10000E-03    17.746       -.56985E-07** at limit **
  14  norm          1.1030        1.3267        .17582E-07   -.55228E-04
  15  Prefactor     19.470        23.292        .72467E-06   -.24397E-04
  16  norm          .84459        .81988       -.70070E-07    .35182E-04
  17  Prefactor     .10000E-03    8.2426        .31538E-07** at limit **
  18  Prefactor     5.0315        6.8340        .17027E-05   -.16093E-03
  19  Prefactor     .10000E-03    11.043        .12679E-06** at limit **
  20  Prefactor     .46010        .15710        .80653E-08   -.51173E-03
  21  Prefactor     6.2346        10.786        .55074E-06    .48255E-04
  22  Prefactor     .10000E-03    5.9581        .18633E-07** at limit **
  23  Prefactor     25.899        19.916       -.37867E-08   -.15016E-04
  24  Normalizat    .87470        .23361       -.17760E-05   -.81483E-04
  25  Prefactor     1.0263        .11221        .16990E-06   -.24994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.98
  norm       = 0.0001
  Prefactor  = 34.3044
  norm       = 0.0001
  Prefactor  = 69.064
  norm       = 0.194299
  Prefactor  = 4.94284
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.31315
  Prefactor  = 0.159239
  Prefactor  = 0.0001
  norm       = 1.10305
  Prefactor  = 19.47
  norm       = 0.844595
  Prefactor  = 0.0001
  Prefactor  = 5.03151
  Prefactor  = 0.0001
  Prefactor  = 0.4601
  Prefactor  = 6.23465
  Prefactor  = 0.0001
  Prefactor  = 25.8993
  Normalizat = 0.874696
  Prefactor  = 1.02629
 **********
 **   18 **HESSE 
 **********

 FCN=   7584.904     FROM HESSE     STATUS=OK           441 CALLS     3530 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.98        135.82        .18290E-03   -1.3504    
   2  norm          .10000E-03    2.0273        .18393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.304        34.624        .68473E-04   -1.4536    
   4  norm          .10000E-03    3.7585        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     69.064        44.180        .48301E-04   -1.4044    
   6  norm          .19430        1.5467        .14315E-02   -1.5620    
   7  Prefactor     4.9428        9.5751        .18086E-03   -1.5263    
   8  norm          .10000E-03    1.7882        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    185.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3131        11.089        .13904E-03   -1.5131    
  12  Prefactor     .15924        .18338        .39843E-03   -1.5628    
  13  Prefactor     .10000E-03    17.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1030        1.3219        .45167E-04   -1.5498    
  15  Prefactor     19.470        23.254        .45376E-03   -1.4825    
  16  norm          .84459        .86205        .75539E-03   -1.5524    
  17  Prefactor     .10000E-03    8.2446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0315        6.8907        .89626E-03   -1.5259    
  19  Prefactor     .10000E-03    131.31        .54688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .46010        .15291        .18782E-04   -1.5572    
  21  Prefactor     6.2346        10.800        .16074E-03   -1.5209    
  22  Prefactor     .10000E-03    5.9838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.899        19.913        .78711E-04   -1.4690    
  24  Normalizat    .87470        .26698        .36724E-03   -.97355    
  25  Prefactor     1.0263        .13153        .17494E-03   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17862e-08
Minuit parameter uncertainties:
  1  136.169
  2  1.45697e-05
  3  34.6439
  4  2.00873e-05
  5  44.2011
  6  1.09614
  7  9.57805
  8  5.40454e-07
  9  7.75823e-06
  10  0.000192043
  11  11.0922
  12  0.18338
  13  2.32379e-05
  14  1.32189
  15  23.2649
  16  0.862058
  17  2.94876e-06
  18  6.89179
  19  0.000102037
  20  0.152906
  21  10.8036
  22  3.25208e-06
  23  19.9177
  24  0.267381
  25  0.13157
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.313e+00  1.109e+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.026e+00  1.316e-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.747e-01  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293704/likelihoodResults_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.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) = 7584.80907808
delta logL = 0.095381021606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7584.80524117
delta logL = 0.0992179326049

Fit tolerance = 1e-08

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

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

 FCN=   7584.805     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3324        681.73        .32812E-02   -.35608E-04
   2  Index         2.3248        5.1459        .34945       -.40697E-05
   3  Normalizat    .89048        .11668        .82269E-01    .39291E-03
   4  Prefactor     1.0204        .64762E-01    .42107E-01    .82290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33238
  Index      = 2.32483
  Normalizat = 0.890482
  Prefactor  = 1.02038
 **********
 **   18 **HESSE 
 **********

 FCN=   7584.805     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3324        12.228        .13125E-03   -1.5097    
   2  Index         2.3248        .99312        .12111E-01   -.56455    
   3  Normalizat    .89048        .25669        .36422E-03   -.96795    
   4  Prefactor     1.0204        .13086        .17536E-03   -.92053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20429e-10
Minuit parameter uncertainties:
  1  12.2315
  2  1.00251
  3  0.25704
  4  0.130901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293704': 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) = 7584.80523973
delta logL = 0.0992193685761

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.332e+00  1.223e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.325e+00  1.003e+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.020e+00  1.309e-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.905e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/293704/cmap_HighResolution_620092801_620352001_4FGL_J2225.6+2120_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-28 11:14:00.706881', job_id='293704', GAL2='1.02', fit_tolerance='1e-08', EG2='0.89', EG='0.87', time_epoch_completed='1632852840.71', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.92e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1469' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 293704: <4FGL_J2225.6+2120_daily_bin1469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1469 336.414 21.3418 620092801 620352001 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            803 sec.

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

