/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7412
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1471
RA = 186.228, Dec = 21.3814
tmin = 620611201, tmax = 620870401
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='603486', job_status='RUN', time_executed='2021-09-05 13:37:16.267771', time_epoch_executed='1630874236.27' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603486/ft1_4FGL_J1224.9+2122_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603486/ft1_4FGL_J1224.9+2122_daily_bin1471.fits outfile=/scratch/kocevski/603486/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1471.fits ra=186.228 dec=21.3814 rad=12.0 tmin=620611201.0 tmax=620870401.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.73
user 3.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.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/603486/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1471.fits evtable="EVENTS" outfile="/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/603486/ltcube_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.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/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits
.....................!
real 12.62
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/603486/ltcube_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits outfile=/scratch/kocevski/603486/expmap_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.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/603486/ltcube_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits
.....................!
real 190.52
user 185.30
sys 4.43

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits outfile=/scratch/kocevski/603486/cmap_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.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=186.228 yref=21.3814 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits outfile=/scratch/kocevski/603486/cmap_HighResolution_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.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=186.228 yref=21.3814 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603486/Model_4FGL_J1224.9+2122_daily_bin1471.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/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits......................!
real 28.59
user 27.30
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits', '/scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits', expMap='/scratch/kocevski/603486/expmap_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits', expCube='/scratch/kocevski/603486/ltcube_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603486/Model_4FGL_J1224.9+2122_daily_bin1471.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603486/ft1_filtered_4FGL_J1224.9+2122_daily_bin1471.fits
Spacecraft file(s): /scratch/kocevski/603486/ft2_4FGL_J1224.9+2122_daily_bin1471.fits
Exposure map: /scratch/kocevski/603486/expmap_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits
Exposure cube: /scratch/kocevski/603486/ltcube_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603486/Model_4FGL_J1224.9+2122_daily_bin1471.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) = 2295.69418258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35863E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1377       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12908E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4490       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8245       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.484       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .47963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7329       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3213       1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0161       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2295.692     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2956 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    206.31       -.57491E-04** at limit **
   2  Prefactor     .10000E-03    45.337       -.28344E-04** at limit **
   3  Prefactor     7.1367        4.8545        .32033E-06    .12767E-02
   4  norm          4.1647        2.6855        .10449E-06    .66918E-03
   5  Prefactor     .10000E-03    22.140        .92031E-05** at limit **
   6  Prefactor     .10009E-03    6.2325       -.17716E-05** at limit **
   7  Prefactor     .10000E-03    91.369       -.21004E-04** at limit **
   8  Prefactor     .10000E-03    3.7839        .71102E-07** at limit **
   9  Prefactor     .10000E-03    5.6950       -.43372E-07** at limit **
  10  norm          5.5813        5.0248       -.24441E-06    .49265E-04
  11  Prefactor     13.685        6.9051       -.48210E-06    .48091E-04
  12  Prefactor     2.6453        3.8606        .42246E-06   -.77270E-04
  13  Prefactor     2.4476        14.017       -.24683E-05   -.16766E-03
  14  norm          .10000E-03    .13477        .17015E-07** at limit **
  15  norm          5.8250        6.6439       -.13605E-05    .58886E-04
  16  Prefactor     19.477        20.235       -.35195E-05   -.76538E-04
  17  Prefactor     .10000E-03    9.0816        .53858E-07** at limit **
  18  Prefactor     4.7984        112.26        .34098E-04    .31619E-05
  19  Prefactor     .10000E-03    56.717        .28052E-04** at limit **
  20  Prefactor     .47738        8.6117       -.79058E-06   -.13772E-04
  21  Prefactor     2.7324        45.009       -.21871E-05   -.57208E-04
  22  norm          3.3214        4.4550       -.70717E-07   -.78916E-04
  23  norm          .10000E-03    53.666        .18450E-04** at limit **
  24  Normalizat    1.0161        .28463       -.33109E-06    .39824E-03
  25  Prefactor     .88303        .27684        .75544E-06    .29744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 7.13672
  norm       = 4.16471
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.58128
  Prefactor  = 13.6849
  Prefactor  = 2.64527
  Prefactor  = 2.44755
  norm       = 0.0001
  norm       = 5.82498
  Prefactor  = 19.4773
  Prefactor  = 0.0001
  Prefactor  = 4.79841
  Prefactor  = 0.0001
  Prefactor  = 0.477379
  Prefactor  = 2.73245
  norm       = 3.3214
  norm       = 0.0001
  Normalizat = 1.01615
  Prefactor  = 0.883025
 **********
 **   18 **HESSE 
 **********

 FCN=   2295.692     FROM HESSE     STATUS=OK           429 CALLS     3385 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    212.00        .42626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1367        4.8377        .82395E-04   -1.5174    
   4  norm          4.1647        2.6827        .60385E-04   -1.5300    
   5  Prefactor     .10000E-03    22.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    22.982        .22266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.661        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8594        .22259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5813        5.0306        .95307E-04   -1.5235    
  11  Prefactor     13.685        6.9122        .81518E-04   -1.4968    
  12  Prefactor     2.6453        3.8398        .10568E-03   -1.5383    
  13  Prefactor     2.4476        13.738        .26140E-03   -1.5395    
  14  norm          .10000E-03    .14752        .34238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8250        6.5626        .11688E-03   -1.5225    
  16  Prefactor     19.477        20.121        .90738E-04   -1.4825    
  17  Prefactor     .10000E-03    9.0966        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7984        109.62        .18389E-03   -1.5270    
  19  Prefactor     .10000E-03    56.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .47738        33.248        .26529E-02   -1.5570    
  21  Prefactor     2.7324        44.659        .24631E-03   -1.5377    
  22  norm          3.3214        4.4414        .11246E-03   -1.5343    
  23  norm          .10000E-03    54.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0161        .31810        .23901E-03   -.92491    
  25  Prefactor     .88303        .31544        .26136E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17022e-08
Minuit parameter uncertainties:
  1  0.00350601
  2  0.00046762
  3  4.83794
  4  2.68277
  5  1.6463e-05
  6  0.00287282
  7  1.85517e-05
  8  0.000248786
  9  1.98501e-05
  10  5.03099
  11  6.91257
  12  3.84016
  13  11.6011
  14  4.55567e-07
  15  6.5634
  16  20.1275
  17  4.15014e-06
  18  45.9641
  19  4.6433e-07
  20  7.97169
  21  22.1123
  22  4.44184
  23  0.000194155
  24  0.318701
  25  0.316097
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  4.556e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.830e-01  3.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.016e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603486/likelihoodResults_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.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) = 2295.6918151
delta logL = -1.36682492666e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2295.69175116
delta logL = 5.02777852489e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7919       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2295.692     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      252 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.594        .90712E-02** at limit **
   2  alpha         1.6158        3.5083        .43461       -.12839E-05
   3  Normalizat    1.0162        .91976E-01    .43988E-01    .21887E-03
   4  Prefactor     .88301        .99619E-01    .44788E-01    .87705E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61583
  Normalizat = 1.01616
  Prefactor  = 0.883007
 **********
 **   18 **HESSE 
 **********

 FCN=   2295.692     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .20974        .33793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6158        3.4219        .50000       -.36149    
   3  Normalizat    1.0162        .30196        .23901E-03   -.92491    
   4  Prefactor     .88301        .31150        .26136E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29952e-10
Minuit parameter uncertainties:
  1  4.12543e-06
  2  22.1151
  3  0.302467
  4  0.312125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603486': 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) = 2295.69172123
delta logL = 8.02031190688e-05

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  4.125e-06  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.616e+00  2.212e+01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.830e-01  3.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.016e+00  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603486/cmap_HighResolution_620611201_620870401_4FGL_J1224.9+2122_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-05 13:45:19.342365', job_id='603486', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630874719.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.02e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1471' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 603486: <4FGL_J1224.9+2122_daily_bin1471> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1471> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:13 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:36:15 2021
Terminated at Sun Sep  5 13:45:19 2021
Results reported at Sun Sep  5 13:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1471 186.228 21.3814 620611201 620870401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   473.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            546 sec.

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

