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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin40
RA = 186.228, Dec = 21.3814
tmin = 249696001, tmax = 249955201
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='597096', job_status='RUN', time_executed='2021-09-05 13:16:33.799998', time_epoch_executed='1630872993.8' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597096/ft1_4FGL_J1224.9+2122_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597096/ft1_4FGL_J1224.9+2122_daily_bin40.fits outfile=/scratch/kocevski/597096/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin40.fits ra=186.228 dec=21.3814 rad=12.0 tmin=249696001.0 tmax=249955201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.68
user 1.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/597096/ltcube_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.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/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits
.....................!
real 13.50
user 13.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/597096/ltcube_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits outfile=/scratch/kocevski/597096/expmap_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.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/597096/ltcube_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits
.....................!
real 191.76
user 185.53
sys 5.34

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/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits scfile=/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits outfile=/scratch/kocevski/597096/cmap_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits scfile=/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits outfile=/scratch/kocevski/597096/cmap_HighResolution_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.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/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597096/Model_4FGL_J1224.9+2122_daily_bin40.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/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits.....................!
real 51.87
user 50.51
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits', '/scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits', expMap='/scratch/kocevski/597096/expmap_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits', expCube='/scratch/kocevski/597096/ltcube_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597096/Model_4FGL_J1224.9+2122_daily_bin40.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/597096/ft1_filtered_4FGL_J1224.9+2122_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/597096/ft2_4FGL_J1224.9+2122_daily_bin40.fits
Exposure map: /scratch/kocevski/597096/expmap_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits
Exposure cube: /scratch/kocevski/597096/ltcube_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597096/Model_4FGL_J1224.9+2122_daily_bin40.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) = 5654.8602454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3389       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24294E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .28706       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53175E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.636       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.178       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.376       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91410       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=   5654.831     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2909 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.595        .43262E-05** at limit **
   2  Prefactor     .10000E-03    6.6308        .73360E-07** at limit **
   3  Prefactor     1.3389        1.4808       -.13127E-06   -.37248E-03
   4  norm          3.4012        1.3545       -.28229E-07   -.41437E-04
   5  Prefactor     .10000E-03    22.181       -.30101E-06** at limit **
   6  Prefactor     .10000E-03    1.1173       -.12820E-07** at limit **
   7  Prefactor     .10000E-03    133.94       -.37499E-05** at limit **
   8  Prefactor     2.1675        2.7439       -.27995E-06   -.55321E-03
   9  Prefactor     .10000E-03    1.9586        .36798E-07** at limit **
  10  norm          5.6383        3.1970       -.93770E-07    .38099E-04
  11  Prefactor     4.9340        2.7889        .12571E-06    .45210E-05
  12  Prefactor     7.6042        2.9629       -.35849E-07   -.69693E-05
  13  Prefactor     .10000E-03    1.8422       -.47575E-07** at limit **
  14  norm          .28710        .21564       -.23951E-07   -.81475E-03
  15  norm          .10000E-03    1.3685       -.67777E-09** at limit **
  16  Prefactor     .10000E-03    17.222       -.34839E-05** at limit **
  17  Prefactor     11.640        10.923       -.59689E-07   -.17618E-04
  18  Prefactor     24.173        32.354       -.38111E-05    .52399E-04
  19  Prefactor     6.1015        189.68       -.92679E-04    .12591E-05
  20  Prefactor     6.2567        6.9036        .52917E-07   -.15939E-03
  21  Prefactor     13.366        15.604        .92405E-05   -.14946E-04
  22  norm          .10000E-03    1.2512        .45773E-07** at limit **
  23  norm          .10000E-03    10.359       -.37304E-05** at limit **
  24  Normalizat    1.1484        .18799        .45642E-06    .65911E-04
  25  Prefactor     .91435        .18860        .67751E-06    .61790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33894
  norm       = 3.40125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16752
  Prefactor  = 0.0001
  norm       = 5.63831
  Prefactor  = 4.934
  Prefactor  = 7.60425
  Prefactor  = 0.0001
  norm       = 0.287102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6403
  Prefactor  = 24.1726
  Prefactor  = 6.10148
  Prefactor  = 6.25669
  Prefactor  = 13.3657
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.14839
  Prefactor  = 0.914348
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.831     FROM HESSE     STATUS=OK           429 CALLS     3338 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3389        1.4660        .92872E-04   -1.5477    
   4  norm          3.4012        1.3556        .53358E-04   -1.5339    
   5  Prefactor     .10000E-03    22.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1225        .77600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    134.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1675        2.7228        .13253E-03   -1.5414    
   9  Prefactor     .10000E-03    1.9982        .20474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6383        3.2024        .94428E-04   -1.5233    
  11  Prefactor     4.9340        2.7922        .88203E-04   -1.5264    
  12  Prefactor     7.6042        2.9638        .75745E-04   -1.5156    
  13  Prefactor     .10000E-03    1.8463        .99665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .28710        .20967        .28827E-04   -1.5601    
  15  norm          .10000E-03    1.3720        .85897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.361        .21127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.640        10.922        .11744E-03   -1.5025    
  18  Prefactor     24.173        32.301        .81464E-04   -1.4724    
  19  Prefactor     6.1015        191.37        .16216E-03   -1.5214    
  20  Prefactor     6.2567        6.9006        .16050E-03   -1.5208    
  21  Prefactor     13.366        15.576        .10952E-03   -1.4977    
  22  norm          .10000E-03    1.2578        .82131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1484        .21866        .24029E-03   -.88213    
  25  Prefactor     .91435        .21848        .27450E-03   -.95642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11183e-10
Minuit parameter uncertainties:
  1  6.75864e-06
  2  5.66425e-06
  3  1.46602
  4  1.35561
  5  1.45057e-05
  6  2.2111e-07
  7  3.05129e-05
  8  2.72296
  9  2.66482e-06
  10  3.20246
  11  2.79223
  12  2.96382
  13  1.64643e-07
  14  0.209674
  15  1.6256e-07
  16  0.000124898
  17  10.9234
  18  32.3243
  19  68.5813
  20  6.90146
  21  15.5805
  22  4.51504e-07
  23  1.83676e-06
  24  0.218837
  25  0.218692
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.871e-01  2.097e-01  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:  9.143e-01  2.187e-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.148e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/597096/likelihoodResults_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.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) = 5654.83053855
delta logL = 0.000758435971875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.8305231
delta logL = 0.000773883831243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28699       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2538       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91349       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=   5654.831     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28679        8.5259        .63754E-02    .66123E-03
   2  alpha         2.2533        2.5423        .41369       -.15604E-04
   3  Normalizat    1.1495        .14626        .54320E-01    .48752E-05
   4  Prefactor     .91350        .24013        .45177E-01    .12104E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.286793
  alpha      = 2.25328
  Normalizat = 1.14953
  Prefactor  = 0.913504
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.831     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28679        .20932        .28871E-04   -1.5601    
   2  alpha         2.2533        .61998        .14898E-01   -.98850E-01
   3  Normalizat    1.1495        .21243        .24019E-03   -.88177    
   4  Prefactor     .91350        .21861        .27461E-03   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.475e-13
Minuit parameter uncertainties:
  1  0.209319
  2  0.626581
  3  0.21259
  4  0.218822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597096': 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) = 5654.83052239
delta logL = 0.000774596606789

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.868e-01  2.093e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.253e+00  6.266e-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:  9.135e-01  2.188e-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.150e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.25 +/- 0.63
Photon Flux (Free Index): 4.78e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.45e-05

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/597096/cmap_HighResolution_249696001_249955201_4FGL_J1224.9+2122_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-05', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='1.71e-05', photon_flux_error='3.54e-08', dlogl='7.75e-04', energy_flux='1.69e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-05 13:28:14.317308', photon_index_error2='0.63', photon_index2='2.25', ts='3.44', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.45e-05', EG='1.15', time_epoch_completed='1630873694.32', return_code='0', job_id='597096', GAL2='0.91', EG2='1.15', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.93e-08', ts2='3.42', photon_index='2.28' WHERE bin_id='40' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:28:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 597096: <4FGL_J1224.9+2122_daily_bin40> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin40> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:49 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:51 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:15:51 2021
Terminated at Sun Sep  5 13:28:15 2021
Results reported at Sun Sep  5 13:28:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin40 186.228 21.3814 249696001 249955201 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

