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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1121
RA = 186.228, Dec = 21.3814
tmin = 529891201, tmax = 530150401
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='602980', job_status='RUN', time_executed='2021-09-05 13:37:40.883511', time_epoch_executed='1630874260.88' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602980/ft1_4FGL_J1224.9+2122_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602980/ft1_4FGL_J1224.9+2122_daily_bin1121.fits outfile=/scratch/kocevski/602980/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1121.fits ra=186.228 dec=21.3814 rad=12.0 tmin=529891201.0 tmax=530150401.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.56
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.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/602980/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/602980/ft1_filtered_4FGL_J1224.9+2122_daily_bin1121.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602980/ft1_filtered_4FGL_J1224.9+2122_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/602980/ltcube_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.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/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits
.....................!
real 12.04
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602980/ft1_filtered_4FGL_J1224.9+2122_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/602980/ltcube_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.fits outfile=/scratch/kocevski/602980/expmap_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.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/602980/ltcube_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.fits
.....................!
real 190.75
user 185.75
sys 4.51

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/602980/ft1_filtered_4FGL_J1224.9+2122_daily_bin1121.fits scfile=/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits outfile=/scratch/kocevski/602980/cmap_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602980/ft1_filtered_4FGL_J1224.9+2122_daily_bin1121.fits scfile=/scratch/kocevski/602980/ft2_4FGL_J1224.9+2122_daily_bin1121.fits outfile=/scratch/kocevski/602980/cmap_HighResolution_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    32.892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13622       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15823       1.0000         .10000E-03   10000.    
    15 'norm      '    .14948E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.997       1.0000         .10000E-03   10000.    
    22 'norm      '    5.5587       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .46846       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4682       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=   6162.300     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2479 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1834       -.40933E-05** at limit **
   2  Prefactor     .10000E-03    11.950       -.22135E-05** at limit **
   3  Prefactor     .10000E-03    .73409       -.69828E-07** at limit **
   4  norm          32.891        2.6432       -.64702E-06   -.87936E-02
   5  Prefactor     6.9552        1.0039       -.44825E-08    .49984E-04
   6  Prefactor     2.3464        2.5343       -.15355E-05   -.19440E-02
   7  Prefactor     .10000E-03    45.066        .91979E-06** at limit **
   8  Prefactor     1.3449        2.7030       -.22763E-07    .25061E-03
   9  Prefactor     .10000E-03    2.5645       -.95188E-07** at limit **
  10  norm          8.8457        3.7194       -.16089E-05    .28744E-02
  11  Prefactor     .11999        10.294        .10825E-04    .27361E-04
  12  Prefactor     .10000E-03    1.8982        .19096E-07** at limit **
  13  Prefactor     .10000E-03    3.2100       -.15660E-06** at limit **
  14  norm          .15818        .17587       -.19509E-07    .63242E-04
  15  norm          .10000E-03    4.3181        .59852E-05** at limit **
  16  Prefactor     .10000E-03    3.0267        .11770E-05** at limit **
  17  Prefactor     3.3325        1.1752       -.80819E-06    .75698E-03
  18  Prefactor     47.840        1.3771        .12717E-06   -.11389E-02
  19  Prefactor     .10000E-03    133.46       -.64253E-05** at limit **
  20  Prefactor     .10000E-03    1.5381       -.43869E-07** at limit **
  21  Prefactor     25.998        1.0025        .15519E-07    .91369E-05
  22  norm          5.5588        2.0169       -.69100E-06   -.10873E-02
  23  norm          .10000E-03    4.9119       -.39978E-05** at limit **
  24  Normalizat    .46831        .21208        .34125E-05    .25940E-04
  25  Prefactor     1.4683        .23224       -.45010E-06    .25604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.8913
  Prefactor  = 6.95525
  Prefactor  = 2.34642
  Prefactor  = 0.0001
  Prefactor  = 1.34489
  Prefactor  = 0.0001
  norm       = 8.84569
  Prefactor  = 0.119987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.158177
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 3.33249
  Prefactor  = 47.8401
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.9983
  norm       = 5.55882
  norm       = 0.000100003
  Normalizat = 0.468309
  Prefactor  = 1.46831
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.300     FROM HESSE     STATUS=OK           499 CALLS     2978 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .71477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          32.891        3.2692        .17467E-02   -1.4560    
   5  Prefactor     6.9552        15.882        .38032E-02   -1.5180    
   6  Prefactor     2.3464        3.4944        .66908E-02   -1.5402    
   7  Prefactor     .10000E-03    45.058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3449        2.8347        .94490E-02   -1.5476    
   9  Prefactor     .10000E-03    2.4995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8457        4.2312        .33708E-02   -1.5113    
  11  Prefactor     .11999        1.5331        .51646E-01   -1.5639    
  12  Prefactor     .10000E-03    1.1818        .32247E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15818        .19286        .75234E-02   -1.5628    
  15  norm          .10000E-03    2.7166        .43568E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3325        9.9561        .55394E-02   -1.5343    
  18  Prefactor     47.840        31.563        .14494E-02   -1.4324    
  19  Prefactor     .10000E-03    133.18        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.998        15.671        .19642E-02   -1.4688    
  22  norm          5.5588        3.5251        .42601E-02   -1.5236    
  23  norm          .10000E-03    6.4588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .46831        .19560        .82688E-01   -1.1391    
  25  Prefactor     1.4683        .20386        .54387E-01   -.78431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29107e-08
Minuit parameter uncertainties:
  1  0.000116979
  2  0.000117323
  3  1.35962e-06
  4  3.26919
  5  15.8918
  6  3.49473
  7  9.15944e-05
  8  2.83503
  9  5.10902e-06
  10  4.23132
  11  0.857462
  12  1.96257e-06
  13  3.33542e-06
  14  0.192865
  15  9.28479e-05
  16  0.000232441
  17  9.96103
  18  31.5739
  19  0.000802118
  20  2.64871e-06
  21  15.6734
  22  3.52522
  23  0.000269707
  24  0.195886
  25  0.203972
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.582e-01  1.929e-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:  1.468e+00  2.040e-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:  4.683e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 9.29e-06 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/602980/likelihoodResults_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.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) = 6162.27940582
delta logL = 0.0209308221183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.27815627
delta logL = 0.0221803745408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16418       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4835       1.0000          .0000       5.0000    
     3 'Normalizat'    .46082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4733       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6162.278     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16415        .17714        .34682E-03   -.42230E-03
   2  alpha         2.4835        .97484        .25128E-01   -.66535E-05
   3  Normalizat    .46082        .21255        .36925E-03    .19612E-04
   4  Prefactor     1.4733        .23347        .24011E-03   -.33096E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.164152
  alpha      = 2.48351
  Normalizat = 0.460821
  Prefactor  = 1.47326
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.278     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16415        .17671        .13873E-04   -1.5627    
   2  alpha         2.4835        .97296        .10051E-02   -.65955E-02
   3  Normalizat    .46082        .21270        .14770E-04   -1.1427    
   4  Prefactor     1.4733        .23355        .96044E-05   -.78291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22982e-11
Minuit parameter uncertainties:
  1  0.17671
  2  0.999368
  3  0.213079
  4  0.233723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602980': 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) = 6162.27815625
delta logL = 0.0221803984377

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.642e-01  1.767e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.484e+00  9.994e-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:  1.473e+00  2.337e-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:  4.608e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.48 +/- 1.00
Photon Flux (Free Index): 3.17e-08 +/- 4.05e-08
Energy Flux (Free Index): 8.83e-06 +/- 9.70e-06

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/602980/cmap_HighResolution_529891201_530150401_4FGL_J1224.9+2122_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='8.83e-06', photon_flux_error='3.26e-08', dlogl='2.22e-02', energy_flux='9.29e-06', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-09-05 13:49:34.762002', photon_index_error2='1.00', photon_index2='2.48', ts='1.42', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='9.70e-06', EG='0.47', time_epoch_completed='1630874974.76', return_code='0', job_id='602980', GAL2='1.47', EG2='0.46', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.05e-08', ts2='1.45', photon_index='2.28' WHERE bin_id='1121' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 602980: <4FGL_J1224.9+2122_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1121> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:31 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:32 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:35:32 2021
Terminated at Sun Sep  5 13:49:35 2021
Results reported at Sun Sep  5 13:49:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1121 186.228 21.3814 529891201 530150401 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

