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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1499
RA = 186.228, Dec = 21.3814
tmin = 627868801, tmax = 628128001
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='603528', job_status='RUN', time_executed='2021-09-05 13:38:13.637425', time_epoch_executed='1630874293.64' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603528/ft1_4FGL_J1224.9+2122_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603528/ft1_4FGL_J1224.9+2122_daily_bin1499.fits outfile=/scratch/kocevski/603528/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1499.fits ra=186.228 dec=21.3814 rad=12.0 tmin=627868801.0 tmax=628128001.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 2.53
user 2.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.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/603528/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/603528/ft1_filtered_4FGL_J1224.9+2122_daily_bin1499.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603528/ft1_filtered_4FGL_J1224.9+2122_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/603528/ltcube_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.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/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603528/ft1_filtered_4FGL_J1224.9+2122_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/603528/ltcube_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.fits outfile=/scratch/kocevski/603528/expmap_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.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/603528/ltcube_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.fits
.....................!
real 190.56
user 185.53
sys 4.41

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/603528/ft1_filtered_4FGL_J1224.9+2122_daily_bin1499.fits scfile=/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits outfile=/scratch/kocevski/603528/cmap_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.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.64
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603528/ft1_filtered_4FGL_J1224.9+2122_daily_bin1499.fits scfile=/scratch/kocevski/603528/ft2_4FGL_J1224.9+2122_daily_bin1499.fits outfile=/scratch/kocevski/603528/cmap_HighResolution_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.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.67
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15448E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11730E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8308       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17966E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6436       1.0000         .10000E-03   10000.    
    14 'norm      '    .24490E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    7.4727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8014.154     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2492 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.193        2.1473       -.97573E-06    .17405E-02
   2  Prefactor     .10008E-03    15.807       -.15282E-04** at limit **
   3  Prefactor     .10000E-03    .92499        .12500E-06** at limit **
   4  norm          3.3342        1.1264       -.60221E-07    .55801E-03
   5  Prefactor     5.8351        1.0882       -.50444E-06    .25276E-03
   6  Prefactor     .10000E-03    2.2259        .40552E-06** at limit **
   7  Prefactor     .10011E-03    20.912        .18994E-04** at limit **
   8  Prefactor     1.3435        1.7090       -.64909E-07    .47114E-03
   9  Prefactor     .10004E-03    5.0046        .25899E-05** at limit **
  10  norm          1.6472        1.9568       -.36320E-05   -.22162E-02
  11  Prefactor     3.8969        1.8509        .22068E-05    .30518E-02
  12  Prefactor     2.9078        1.8902        .54612E-06    .32755E-03
  13  Prefactor     1.6432        2.9843       -.26573E-05   -.15888E-02
  14  norm          .26630E-02    .89583        .34474E-07   -.13501E-03
  15  norm          7.4737        2.3653        .25716E-05    .79795E-02
  16  Prefactor     23.571        1.0074       -.65744E-07   -.46932E-04
  17  Prefactor     2.8409        1.0463       -.24138E-06    .18788E-03
  18  Prefactor     .10001E-03    6.9771       -.44785E-05** at limit **
  19  Prefactor     .10001E-03    47.767       -.12326E-04** at limit **
  20  Prefactor     .24832        .89382        .37992E-05    .63613E-04
  21  Prefactor     .10001E-03    9.4385        .24084E-05** at limit **
  22  norm          .10000E-03    2.0360        .10944E-05** at limit **
  23  norm          .10002E-03    5.0397       -.14884E-05** at limit **
  24  Normalizat    1.2327        .17061        .10424E-06    .11838E-03
  25  Prefactor     .72209        .17127        .22130E-06    .88977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1927
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  norm       = 3.33419
  Prefactor  = 5.8351
  Prefactor  = 0.0001
  Prefactor  = 0.000100115
  Prefactor  = 1.34353
  Prefactor  = 0.000100039
  norm       = 1.64719
  Prefactor  = 3.89692
  Prefactor  = 2.90785
  Prefactor  = 1.64319
  norm       = 0.00266299
  norm       = 7.47373
  Prefactor  = 23.5712
  Prefactor  = 2.84091
  Prefactor  = 0.000100007
  Prefactor  = 0.000100014
  Prefactor  = 0.248316
  Prefactor  = 0.000100014
  norm       = 0.0001
  norm       = 0.000100017
  Normalizat = 1.23266
  Prefactor  = 0.722086
 **********
 **   18 **HESSE 
 **********

 FCN=   8014.154     FROM HESSE     STATUS=OK           499 CALLS     2991 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.193        17.754        .22273E-02   -1.4809    
   2  Prefactor     .10008E-03    17.097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .90046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3342        1.1359        .55419E-02   -1.5343    
   5  Prefactor     5.8351        12.863        .41579E-02   -1.5225    
   6  Prefactor     .10000E-03    2.1756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10011E-03    23.575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3435        1.7526        .94509E-02   -1.5476    
   9  Prefactor     .10004E-03    .92903        .27606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6472        3.5846        .82258E-02   -1.5451    
  11  Prefactor     3.8969        2.7677        .51100E-02   -1.5313    
  12  Prefactor     2.9078        1.9457        .59572E-02   -1.5367    
  13  Prefactor     1.6432        3.2962        .82376E-02   -1.5452    
  14  norm          .26630E-02    .70900E-01    .10019E-01   -1.5698    
  15  norm          7.4737        3.7641        .36678E-02   -1.5161    
  16  Prefactor     23.571        9.4332        .20627E-02   -1.4737    
  17  Prefactor     2.8409        8.7450        .60291E-02   -1.5371    
  18  Prefactor     .10001E-03    7.1688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    48.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24832        4.0042        .57367E-01   -1.5608    
  21  Prefactor     .10001E-03    9.5799        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    5.4251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2327        .14886        .49606E-01   -.85599    
  25  Prefactor     .72209        .14658        .64128E-01   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16838e-08
Minuit parameter uncertainties:
  1  17.7585
  2  0.00233871
  3  2.54503e-06
  4  1.13587
  5  12.8692
  6  1.59049e-05
  7  0.00329333
  8  1.75269
  9  0.000382956
  10  3.58508
  11  2.76777
  12  1.94572
  13  3.2966
  14  0.0269605
  15  3.7642
  16  9.43381
  17  8.74892
  18  0.00045054
  19  0.00167908
  20  1.99406
  21  0.000727704
  22  3.55392e-06
  23  0.000613956
  24  0.148914
  25  0.146657
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.663e-03  2.696e-02  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:  7.221e-01  1.467e-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.233e+00  1.489e-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: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603528/likelihoodResults_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.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) = 8013.74823032
delta logL = 0.40615682705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8013.71047082
delta logL = 0.443916325844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11747E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0115       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71735       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=   8013.710     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      249 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11736E-01    .27223E-01    .32497E-02   -.17620E-01
   2  alpha         1.0112        .45975        .49213        .27860E-04
   3  Normalizat    1.2344        .14220        .49562E-01    .67593E-03
   4  Prefactor     .71735        .14536        .64285E-01    .54189E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0117361
  alpha      = 1.01121
  Normalizat = 1.23436
  Prefactor  = 0.717354
 **********
 **   18 **HESSE 
 **********

 FCN=   8013.710     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11736E-01    .31406E-01    .18977E-03   -1.5686    
   2  alpha         1.0112        .87596        .17377E-01   -.63791    
   3  Normalizat    1.2344        .16753        .21911E-03   -.85548    
   4  Prefactor     .71735        .17104        .28439E-03   -1.0285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6185e-09
Minuit parameter uncertainties:
  1  0.0314059
  2  0.906417
  3  0.167608
  4  0.17117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603528': 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) = 8013.71047076
delta logL = 0.44391638652

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.174e-02  3.141e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.011e+00  9.064e-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:  7.174e-01  1.712e-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.234e+00  1.676e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603528/cmap_HighResolution_627868801_628128001_4FGL_J1224.9+2122_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-05 13:51:45.785253', job_id='603528', GAL2='0.72', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630875105.79', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.44e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1499' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 603528: <4FGL_J1224.9+2122_daily_bin1499> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1499> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:17 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:18 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:18 2021
Terminated at Sun Sep  5 13:51:46 2021
Results reported at Sun Sep  5 13:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1499 186.228 21.3814 627868801 628128001 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 :                                   798.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

