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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin949
RA = 185.627, Dec = 4.2389
tmin = 485308801, tmax = 485568001
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='540278', job_status='RUN', time_executed='2021-09-05 10:28:39.410706', time_epoch_executed='1630862919.41' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540278

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540278/ft1_4FGL_J1222.5+0414_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540278/ft1_4FGL_J1222.5+0414_daily_bin949.fits outfile=/scratch/kocevski/540278/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin949.fits ra=185.627 dec=4.2389 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.64
user 5.31
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.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/540278/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/540278/ltcube_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.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/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits
.....................!
real 11.54
user 11.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/540278/ltcube_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits outfile=/scratch/kocevski/540278/expmap_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.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/540278/ltcube_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits
.....................!
real 190.51
user 184.84
sys 5.27

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

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits outfile=/scratch/kocevski/540278/cmap_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.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=185.627 yref=4.2389 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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits outfile=/scratch/kocevski/540278/cmap_HighResolution_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.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=185.627 yref=4.2389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540278/Model_4FGL_J1222.5+0414_daily_bin949.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/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits.....................!
real 49.76
user 48.16
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits', '/scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits', expMap='/scratch/kocevski/540278/expmap_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits', expCube='/scratch/kocevski/540278/ltcube_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540278/Model_4FGL_J1222.5+0414_daily_bin949.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/540278/ft1_filtered_4FGL_J1222.5+0414_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/540278/ft2_4FGL_J1222.5+0414_daily_bin949.fits
Exposure map: /scratch/kocevski/540278/expmap_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits
Exposure cube: /scratch/kocevski/540278/ltcube_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540278/Model_4FGL_J1222.5+0414_daily_bin949.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) = 5365.63558766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7965       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.619       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7059       1.0000         .10000E-03   10000.    
    13 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.380       1.0000         .10000E-03   10000.    
    15 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    109.93       1.0000         .10000E-03   10000.    
    17 'norm      '    .42173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48749E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.346       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1448       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .50430E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.641       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8252       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0372       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5365.590     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     4021 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.146        .16193E-05** at limit **
   2  Prefactor     21.777        211.58        .30156E-03    .73575E-05
   3  Prefactor     8.1540        11.367       -.88804E-05   -.24210E-03
   4  Prefactor     .10000E-03    5.0160       -.59544E-07** at limit **
   5  Prefactor     3.7946        11.962        .24434E-05   -.12157E-03
   6  Prefactor     .10000E-03    8.3253        .26044E-06** at limit **
   7  Prefactor     61.964        103.44       -.44045E-05   -.29801E-04
   8  Prefactor     .10000E-03    31.452       -.92410E-06** at limit **
   9  Prefactor     15.619        17.389       -.13412E-06   -.47236E-04
  10  Prefactor     .10000E-03    43.216       -.18379E-06** at limit **
  11  Prefactor     .10000E-03    3.2947        .25802E-07** at limit **
  12  norm          3.7059        2.1526        .24020E-06   -.31936E-04
  13  norm          .10000E-03    2.3086       -.65730E-06** at limit **
  14  Prefactor     13.358        45.548       -.54786E-05   -.41683E-04
  15  norm          .10000E-03    15.984        .66834E-08** at limit **
  16  Prefactor     110.01        126.79        .60299E-04   -.54577E-06
  17  norm          .42168        .45301        .21245E-06   -.63866E-03
  18  Prefactor     37.241        24.929        .16707E-05   -.78842E-03
  19  Prefactor     .10048E-03    64.918        .60437E-05** at limit **
  20  Prefactor     10.346        6.8689        .45586E-06    .19773E-05
  21  norm          1.1447        1.1058        .22661E-06    .78597E-05
  22  Prefactor     .10000E-03    4.8370        .20823E-06** at limit **
  23  Prefactor     .10002E-03    169.92       -.44558E-05** at limit **
  24  Prefactor     .10000E-03    20.918       -.31815E-07** at limit **
  25  norm          17.644        19.982        .44789E-06   -.85406E-05
  26  Prefactor     6.8252        16.326        .54493E-05   -.15469E-03
  27  Normalizat    1.0370        .23271       -.14354E-04    .13628E-03
  28  Prefactor     1.0092        .18083        .52421E-06   -.56443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 21.7765
  Prefactor  = 8.15401
  Prefactor  = 0.0001
  Prefactor  = 3.79455
  Prefactor  = 0.0001
  Prefactor  = 61.9637
  Prefactor  = 0.000100003
  Prefactor  = 15.6194
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.70593
  norm       = 0.000100001
  Prefactor  = 13.3576
  norm       = 0.0001
  Prefactor  = 110.008
  norm       = 0.421681
  Prefactor  = 37.2411
  Prefactor  = 0.000100484
  Prefactor  = 10.3461
  norm       = 1.14467
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 17.644
  Prefactor  = 6.82525
  Normalizat = 1.03704
  Prefactor  = 1.00916
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.590     FROM HESSE     STATUS=OK           529 CALLS     4550 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.777        211.09        .86184E-04   -1.4774    
   3  Prefactor     8.1540        11.365        .14040E-03   -1.5137    
   4  Prefactor     .10000E-03    5.0330        .16019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7946        11.918        .20717E-03   -1.5318    
   6  Prefactor     .10000E-03    8.3651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.964        103.27        .50973E-04   -1.4132    
   8  Prefactor     .10000E-03    31.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.619        17.398        .10134E-03   -1.4917    
  10  Prefactor     .10000E-03    43.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3000        .12981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7059        2.1513        .79428E-04   -1.5323    
  13  norm          .10000E-03    4.1556        .20920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.358        45.498        .10950E-03   -1.4977    
  15  norm          .10000E-03    15.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     110.01        126.62        .19181E-03   -1.3606    
  17  norm          .42168        .42199        .47336E-03   -1.5578    
  18  Prefactor     37.241        24.914        .65670E-04   -1.4487    
  19  Prefactor     .10048E-03    63.575        .12928       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.346        6.8685        .12457E-03   -1.5065    
  21  norm          1.1447        1.1039        .72943E-04   -1.5494    
  22  Prefactor     .10000E-03    4.8951        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    176.33        .38381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.644        19.977        .95357E-04   -1.4868    
  26  Prefactor     6.8252        16.321        .15358E-03   -1.5185    
  27  Normalizat    1.0370        .27248        .28958E-03   -.91800    
  28  Prefactor     1.0092        .21329        .24116E-03   -.92425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30024e-09
Minuit parameter uncertainties:
  1  0.000838821
  2  136.232
  3  11.3678
  4  2.55218e-05
  5  11.9257
  6  7.87198e-05
  7  103.572
  8  0.000632961
  9  17.4032
  10  0.000307409
  11  8.90528e-06
  12  2.15131
  13  0.000131633
  14  45.6163
  15  6.82495e-06
  16  126.937
  17  0.421995
  18  24.9214
  19  0.0111022
  20  6.86907
  21  1.10393
  22  5.30989e-05
  23  0.00413111
  24  6.24353e-06
  25  19.9846
  26  16.3316
  27  0.272851
  28  0.213465
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  1.316e-04  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.009e+00  2.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.037e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540278/likelihoodResults_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.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) = 5365.59083962
delta logL = -0.00114650811338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5365.58969311
delta logL = 9.96715243673e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7099       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+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=   5365.590     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      262 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    709.64        .21094E-02** at limit **
   2  alpha         3.1018        3.7909        .16535       -.48336E-07
   3  Normalizat    1.0370        .81729E-01    .28958E-03   -.22326E-02
   4  Prefactor     1.0092        .67158E-01    .24116E-03   -.27785E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.10176
  Normalizat = 1.03702
  Prefactor  = 1.00916
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.590     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2476        .42189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1018        4.0115        .66138E-02    .24309    
   3  Normalizat    1.0370        .25464        .57916E-04   -.91800    
   4  Prefactor     1.0092        .21081        .48232E-04   -.92425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10101e-09
Minuit parameter uncertainties:
  1  6.62885e-05
  2  187.966
  3  0.254943
  4  0.210978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540278': 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) = 5365.58969065
delta logL = 2.46222043643e-06

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  6.629e-05  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.102e+00  1.880e+02  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.009e+00  2.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.037e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.627 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/540278/cmap_HighResolution_485308801_485568001_4FGL_J1222.5+0414_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-05 10:41:34.612967', job_id='540278', GAL2='1.01', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630863694.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='949' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 540278: <4FGL_J1222.5+0414_daily_bin949> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin949> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:42 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:25:44 2021
Terminated at Sun Sep  5 10:41:35 2021
Results reported at Sun Sep  5 10:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin949 185.627 4.2389 485308801 485568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

