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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1234
RA = 186.228, Dec = 21.3814
tmin = 559180801, tmax = 559440001
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='603151', job_status='RUN', time_executed='2021-09-05 13:38:32.519896', time_epoch_executed='1630874312.52' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603151/ft1_4FGL_J1224.9+2122_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603151/ft2_4FGL_J1224.9+2122_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603151/ft1_4FGL_J1224.9+2122_daily_bin1234.fits outfile=/scratch/kocevski/603151/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1234.fits ra=186.228 dec=21.3814 rad=12.0 tmin=559180801.0 tmax=559440001.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.55
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603151/ft1_filtered_4FGL_J1224.9+2122_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/603151/ft2_4FGL_J1224.9+2122_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/603151/ltcube_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.fits outfile=/scratch/kocevski/603151/expmap_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.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/603151/ltcube_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.fits
.....................!
real 193.90
user 186.76
sys 5.94

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/603151/ft1_filtered_4FGL_J1224.9+2122_daily_bin1234.fits scfile=/scratch/kocevski/603151/ft2_4FGL_J1224.9+2122_daily_bin1234.fits outfile=/scratch/kocevski/603151/cmap_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.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/603151/ft1_filtered_4FGL_J1224.9+2122_daily_bin1234.fits scfile=/scratch/kocevski/603151/ft2_4FGL_J1224.9+2122_daily_bin1234.fits outfile=/scratch/kocevski/603151/cmap_HighResolution_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.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.66
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2087       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3539       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0032       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21954E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3423       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5356       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12951E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30710       1.0000         .10000E-03   10000.    
    15 'norm      '    10.671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.712       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11509E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61936       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5100       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=   5344.468     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2960 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.994       -.68735E-07** at limit **
   2  Prefactor     4.6507        16.050       -.33353E-06   -.43589E-04
   3  Prefactor     2.2085        1.7841       -.12408E-06   -.43552E-05
   4  norm          6.3536        1.6950       -.11642E-06    .62146E-04
   5  Prefactor     15.343        34.743       -.27396E-04   -.10169E-04
   6  Prefactor     3.0026        5.8130       -.76553E-06   -.51246E-03
   7  Prefactor     .10000E-03    149.58        .16972E-04** at limit **
   8  Prefactor     .10000E-03    2.1625        .81404E-07** at limit **
   9  Prefactor     1.3403        3.1757       -.58103E-07   -.50415E-03
  10  norm          3.1249        2.1932       -.76145E-07    .19686E-04
  11  Prefactor     3.2520        1.8337       -.21251E-07    .15692E-03
  12  Prefactor     2.5356        2.1762       -.13076E-06   -.10118E-03
  13  Prefactor     .10000E-03    3.2346       -.13676E-06** at limit **
  14  norm          .30710        .26647       -.60060E-07   -.71956E-03
  15  norm          10.673        5.3153       -.10754E-06    .61726E-04
  16  Prefactor     .10000E-03    12.400        .15543E-07** at limit **
  17  Prefactor     12.024        12.744       -.79746E-06   -.19675E-04
  18  Prefactor     52.695        44.256       -.99184E-05    .84625E-05
  19  Prefactor     .10000E-03    17.402       -.69213E-06** at limit **
  20  Prefactor     15.936        11.369       -.38115E-06    .57363E-04
  21  Prefactor     .10000E-03    53.986       -.15334E-05** at limit **
  22  norm          .10002E-03    2.5179       -.24762E-06** at limit **
  23  norm          .10000E-03    13.358        .49221E-06** at limit **
  24  Normalizat    .61944        .22768        .30478E-05    .62107E-04
  25  Prefactor     1.5101        .22915        .13927E-05    .53126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.65069
  Prefactor  = 2.20855
  norm       = 6.35358
  Prefactor  = 15.3431
  Prefactor  = 3.00262
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.34033
  norm       = 3.12487
  Prefactor  = 3.25202
  Prefactor  = 2.5356
  Prefactor  = 0.0001
  norm       = 0.3071
  norm       = 10.6727
  Prefactor  = 0.0001
  Prefactor  = 12.024
  Prefactor  = 52.695
  Prefactor  = 0.0001
  Prefactor  = 15.9356
  Prefactor  = 0.0001
  norm       = 0.000100018
  norm       = 0.0001
  Normalizat = 0.619439
  Prefactor  = 1.5101
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.468     FROM HESSE     STATUS=OK           435 CALLS     3395 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6507        15.925        .18649E-03   -1.5277    
   3  Prefactor     2.2085        1.7858        .84021E-04   -1.5411    
   4  norm          6.3536        1.6938        .46320E-04   -1.5204    
   5  Prefactor     15.343        34.651        .10207E-03   -1.4924    
   6  Prefactor     3.0026        5.7679        .22288E-03   -1.5361    
   7  Prefactor     .10000E-03    150.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1853        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3403        3.1246        .19254E-03   -1.5476    
  10  norm          3.1249        2.1912        .86489E-04   -1.5354    
  11  Prefactor     3.2520        1.8359        .71068E-04   -1.5347    
  12  Prefactor     2.5356        2.1661        .92244E-04   -1.5389    
  13  Prefactor     .10000E-03    6.4173        .25285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30710        .25541        .33126E-03   -1.5597    
  15  norm          10.673        5.2669        .11272E-03   -1.5054    
  16  Prefactor     .10000E-03    12.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.024        12.706        .11551E-03   -1.5014    
  18  Prefactor     52.695        44.182        .55242E-04   -1.4255    
  19  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.936        11.239        .10034E-03   -1.4909    
  21  Prefactor     .10000E-03    54.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    28.151        .21770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61944        .25525        .35377E-03   -1.0716    
  25  Prefactor     1.5101        .26380        .25547E-03   -.77257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20145e-09
Minuit parameter uncertainties:
  1  5.81746e-05
  2  15.9395
  3  1.78584
  4  1.69379
  5  34.6967
  6  5.76894
  7  0.00121962
  8  1.18311e-05
  9  3.12502
  10  2.19128
  11  1.83591
  12  2.16621
  13  3.32369e-05
  14  0.255413
  15  5.26715
  16  0.000106153
  17  12.7085
  18  44.2096
  19  6.41551e-06
  20  11.2408
  21  8.13032e-05
  22  0.00142878
  23  1.18042e-05
  24  0.255741
  25  0.264037
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.071e-01  2.554e-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.510e+00  2.640e-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:  6.194e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/603151/likelihoodResults_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.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) = 5344.27065075
delta logL = 0.197191415169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5344.26109621
delta logL = 0.206745954959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32349       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8605       1.0000          .0000       5.0000    
     3 'Normalizat'    .58006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5375       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=   5344.261     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32341        5.9162        .65909E-02    .10133E-02
   2  alpha         2.8612        2.5013        .41705        .10400E-04
   3  Normalizat    .58024        .78395E-01    .82369E-01    .29909E-04
   4  Prefactor     1.5373        .95402E-01    .57364E-01   -.19848E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.323414
  alpha      = 2.86124
  Normalizat = 0.580242
  Prefactor  = 1.53734
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.261     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32341        .26965        .29840E-04   -1.5594    
   2  alpha         2.8612        .99119        .21091E-01    .14500    
   3  Normalizat    .58024        .25181        .36483E-03   -1.0883    
   4  Prefactor     1.5373        .26682        .25362E-03   -.76499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00118e-10
Minuit parameter uncertainties:
  1  0.269653
  2  1.01983
  3  0.252307
  4  0.267061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603151': 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) = 5344.26109544
delta logL = 0.206746725371

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.234e-01  2.697e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.861e+00  1.020e+00  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.537e+00  2.671e-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:  5.802e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.86 +/- 1.02
Photon Flux (Free Index): 8.32e-08 +/- 7.30e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.33e-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/603151/cmap_HighResolution_559180801_559440001_4FGL_J1224.9+2122_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-05', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='1.78e-05', photon_flux_error='4.31e-08', dlogl='2.07e-01', energy_flux='1.80e-05', photon_flux2='8.32e-08', job_status='DONE', time_completed='2021-09-05 13:49:36.441407', photon_index_error2='1.02', photon_index2='2.86', ts='2.39', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.33e-05', EG='0.62', time_epoch_completed='1630874976.44', return_code='0', job_id='603151', GAL2='1.54', EG2='0.58', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.30e-08', ts2='2.82', photon_index='2.28' WHERE bin_id='1234' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 603151: <4FGL_J1224.9+2122_daily_bin1234> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1234 186.228 21.3814 559180801 559440001 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 :                                   655.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

