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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin478
RA = 185.627, Dec = 4.2389
tmin = 363225601, tmax = 363484801
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='537056', job_status='RUN', time_executed='2021-09-05 10:19:09.530947', time_epoch_executed='1630862349.53' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537056/ft1_4FGL_J1222.5+0414_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537056/ft1_4FGL_J1222.5+0414_daily_bin478.fits outfile=/scratch/kocevski/537056/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin478.fits ra=185.627 dec=4.2389 rad=12.0 tmin=363225601.0 tmax=363484801.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 6.98
user 6.64
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/537056/ltcube_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.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/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/537056/ltcube_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits outfile=/scratch/kocevski/537056/expmap_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.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/537056/ltcube_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits
.....................!
real 192.19
user 186.97
sys 4.89

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/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits scfile=/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits outfile=/scratch/kocevski/537056/cmap_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits scfile=/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits outfile=/scratch/kocevski/537056/cmap_HighResolution_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits', '/scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits', expMap='/scratch/kocevski/537056/expmap_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits', expCube='/scratch/kocevski/537056/ltcube_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537056/Model_4FGL_J1222.5+0414_daily_bin478.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/537056/ft1_filtered_4FGL_J1222.5+0414_daily_bin478.fits
Spacecraft file(s): /scratch/kocevski/537056/ft2_4FGL_J1222.5+0414_daily_bin478.fits
Exposure map: /scratch/kocevski/537056/expmap_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits
Exposure cube: /scratch/kocevski/537056/ltcube_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537056/Model_4FGL_J1222.5+0414_daily_bin478.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) = 2166.16992198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    325.03       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8781       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23663E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.498       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.301       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2726       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4942       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    33.654       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3998       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63484       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=   2165.787     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3577 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.313        .23155E-07** at limit **
   2  Prefactor     325.02        278.20       -.20707E-06   -.34555E-04
   3  Prefactor     .10000E-03    15.440       -.77649E-08** at limit **
   4  Prefactor     .10000E-03    6.0604       -.54965E-07** at limit **
   5  Prefactor     .10000E-03    11.271       -.54033E-08** at limit **
   6  Prefactor     8.8783        24.364        .27623E-07    .22153E-04
   7  Prefactor     .10000E-03    49.533        .32904E-06** at limit **
   8  Prefactor     .10001E-03    397.31        .34180E-06** at limit **
   9  Prefactor     .10000E-03    14.308       -.37116E-06** at limit **
  10  Prefactor     63.094        76.186        .13876E-05    .30079E-04
  11  Prefactor     .10000E-03    13.290       -.25783E-07** at limit **
  12  norm          .10000E-03    1.5185       -.46934E-07** at limit **
  13  norm          .10000E-03    28.456       -.12623E-04** at limit **
  14  Prefactor     .10000E-03    23.657       -.43994E-06** at limit **
  15  norm          .10000E-03    107.23        .10090E-05** at limit **
  16  Prefactor     .10000E-03    128.87       -.25643E-05** at limit **
  17  norm          2.5657        1.4137        .17168E-06    .60825E-03
  18  Prefactor     .10000E-03    15.455        .55154E-07** at limit **
  19  Prefactor     65.503        60.013        .16144E-09    .14792E-04
  20  Prefactor     24.301        21.403       -.85637E-07    .13284E-04
  21  norm          1.2730        2.6861        .54806E-07    .45208E-03
  22  Prefactor     3.4939        11.363        .19990E-06    .15061E-03
  23  Prefactor     .10000E-03    32.463        .17897E-08** at limit **
  24  Prefactor     .10000E-03    35.944       -.80901E-06** at limit **
  25  norm          33.654        33.598       -.43361E-07   -.12608E-05
  26  Prefactor     .10000E-03    11.655       -.74293E-07** at limit **
  27  Normalizat    1.3996        .38411        .11528E-06   -.84150E-05
  28  Prefactor     .63499        .28424        .17233E-06   -.19691E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 325.023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.87834
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 63.0938
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100003
  norm       = 2.56569
  Prefactor  = 0.0001
  Prefactor  = 65.5033
  Prefactor  = 24.301
  norm       = 1.27301
  Prefactor  = 3.49392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.6536
  Prefactor  = 0.0001
  Normalizat = 1.39957
  Prefactor  = 0.634986
 **********
 **   18 **HESSE 
 **********

 FCN=   2165.787     FROM HESSE     STATUS=OK           509 CALLS     4086 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     325.02        280.79        .22557E-04   -1.2082    
   3  Prefactor     .10000E-03    15.480        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0626        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.273        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8783        24.372        .13452E-03   -1.5112    
   7  Prefactor     .10000E-03    49.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    399.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.316        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.094        76.150        .50519E-04   -1.4118    
  11  Prefactor     .10000E-03    13.325        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5207        .56008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    28.406        .23291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    107.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    129.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5657        1.4247        .36980E-04   -1.5388    
  18  Prefactor     .10000E-03    15.478        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.503        60.509        .49589E-04   -1.4088    
  20  Prefactor     24.301        21.384        .81258E-04   -1.4722    
  21  norm          1.2730        2.6317        .10358E-03   -1.5482    
  22  Prefactor     3.4939        11.363        .21630E-03   -1.5334    
  23  Prefactor     .10000E-03    32.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          33.654        33.597        .69075E-04   -1.4547    
  26  Prefactor     .10000E-03    11.669        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3996        .46708        .26753E-03   -.80641    
  28  Prefactor     .63499        .34037        .29427E-03   -1.0613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4211e-10
Minuit parameter uncertainties:
  1  1.37987e-05
  2  281.977
  3  4.10382e-05
  4  4.80624e-06
  5  4.9122e-06
  6  24.399
  7  0.000119449
  8  0.00449383
  9  5.18302e-05
  10  76.2679
  11  4.37775e-05
  12  1.21486e-06
  13  3.87913e-05
  14  8.95078e-05
  15  0.000833163
  16  0.00132974
  17  1.42474
  18  5.6234e-06
  19  60.5661
  20  21.3911
  21  2.63194
  22  11.37
  23  3.65483e-05
  24  0.000223984
  25  33.6161
  26  9.03405e-06
  27  0.468516
  28  0.341485
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  3.879e-05  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:  6.350e-01  3.415e-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.400e+00  4.685e-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: 3.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537056/likelihoodResults_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.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) = 2165.78717663
delta logL = -0.000167789592069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2165.77002925
delta logL = 0.0169795838356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0390       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6789       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64909       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2165.770     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      392 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0474        13.413        .18880E-02   -.57863E-04
   2  alpha         3.6819        4.3123        .31193E-01   -.39028E-05
   3  Normalizat    1.3681        .46243        .26982E-03   -.10154E-04
   4  Prefactor     .64922        .34032        .29113E-03   -.19408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04736
  alpha      = 3.6819
  Normalizat = 1.36813
  Prefactor  = 0.649223
 **********
 **   18 **HESSE 
 **********

 FCN=   2165.770     FROM HESSE     STATUS=OK            25 CALLS      417 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0474        9.6674        .75522E-04   -1.5503    
   2  alpha         3.6819        4.1976        .12477E-02    .49242    
   3  Normalizat    1.3681        .45913        .10793E-04   -.81555    
   4  Prefactor     .64922        .34009        .11645E-04   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34991e-11
Minuit parameter uncertainties:
  1  6.36512
  2  3.47996
  3  0.460521
  4  0.341174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537056': 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) = 2165.77002675
delta logL = 0.0169820836031

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.047e+00  6.365e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.682e+00  3.480e+00  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:  6.492e-01  3.412e-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.368e+00  4.605e-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/537056/cmap_HighResolution_363225601_363484801_4FGL_J1222.5+0414_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-05', job_status='DONE', photon_flux_upper_limit='3.14e-07', time_completed='2021-09-05 10:27:40.318977', job_id='537056', GAL2='0.65', fit_tolerance='1e-08', EG2='1.37', EG='1.40', time_epoch_completed='1630862860.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.70e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='478' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:27:40 PDT 2021


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

Job <4FGL_J1222.5+0414_daily_bin478> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:42 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15: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:15:44 2021
Terminated at Sun Sep  5 10:27:41 2021
Results reported at Sun Sep  5 10:27:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin478 185.627 4.2389 363225601 363484801 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 :                                   508.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            719 sec.

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

