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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin4
RA = 186.228, Dec = 21.3814
tmin = 240364801, tmax = 240624001
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='595787', job_status='RUN', time_executed='2021-09-05 13:12:26.015170', time_epoch_executed='1630872746.02' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595787/ft1_4FGL_J1224.9+2122_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595787/ft2_4FGL_J1224.9+2122_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595787/ft1_4FGL_J1224.9+2122_daily_bin4.fits outfile=/scratch/kocevski/595787/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin4.fits ra=186.228 dec=21.3814 rad=12.0 tmin=240364801.0 tmax=240624001.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.43
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595787/ft1_filtered_4FGL_J1224.9+2122_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/595787/ft2_4FGL_J1224.9+2122_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/595787/ltcube_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.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/595787/ft2_4FGL_J1224.9+2122_daily_bin4.fits
.....................!
real 12.48
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595787/ft1_filtered_4FGL_J1224.9+2122_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/595787/ft2_4FGL_J1224.9+2122_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/595787/ltcube_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.fits outfile=/scratch/kocevski/595787/expmap_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.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/595787/ltcube_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.fits
.....................!
real 190.34
user 184.22
sys 5.57

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/595787/ft1_filtered_4FGL_J1224.9+2122_daily_bin4.fits scfile=/scratch/kocevski/595787/ft2_4FGL_J1224.9+2122_daily_bin4.fits outfile=/scratch/kocevski/595787/cmap_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.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.59
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4208       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35503       1.0000         .10000E-03   10000.    
    10 'norm      '    6.4679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1866       1.0000         .10000E-03   10000.    
    14 'norm      '    .16426       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4329       1.0000         .10000E-03   10000.    
    22 'norm      '    .13567       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94436       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1996       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=   5734.833     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3043 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.381        .10763E-05** at limit **
   2  Prefactor     .10000E-03    13.340       -.19260E-06** at limit **
   3  Prefactor     5.4208        2.3986        .68052E-07    .27200E-04
   4  norm          1.6181        1.2479        .20442E-07   -.16922E-03
   5  Prefactor     .10000E-03    14.093       -.12824E-05** at limit **
   6  Prefactor     3.4417        3.5288       -.93080E-06   -.99855E-03
   7  Prefactor     49.252        96.263       -.11117E-04   -.18094E-03
   8  Prefactor     3.5875        2.5268        .37371E-07    .53874E-05
   9  Prefactor     .35488        2.6510        .12031E-05   -.43599E-03
  10  norm          6.4679        2.9954       -.20469E-06   -.35357E-03
  11  Prefactor     .35205        1.2158        .40981E-06   -.41144E-03
  12  Prefactor     9.8174        3.3020        .15842E-06    .47596E-03
  13  Prefactor     3.1872        6.1489        .45432E-06    .16793E-04
  14  norm          .16416        .21427        .31944E-07   -.59216E-03
  15  norm          5.7649        4.4988        .43885E-06    .50028E-03
  16  Prefactor     .10000E-03    3.4060        .35722E-08** at limit **
  17  Prefactor     15.924        11.714        .63726E-07    .42699E-04
  18  Prefactor     .10000E-03    10.238        .11620E-05** at limit **
  19  Prefactor     .10000E-03    67.056       -.48088E-06** at limit **
  20  Prefactor     .10000E-03    2.3328        .33839E-07** at limit **
  21  Prefactor     4.4315        12.514        .49896E-05   -.56985E-03
  22  norm          .13690        2.2563       -.11161E-06    .13456E-03
  23  norm          .10000E-03    9.1970       -.61075E-06** at limit **
  24  Normalizat    .94444        .19601       -.39761E-06   -.39301E-04
  25  Prefactor     1.1996        .19679       -.30867E-06   -.17044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42078
  norm       = 1.61806
  Prefactor  = 0.0001
  Prefactor  = 3.44169
  Prefactor  = 49.2517
  Prefactor  = 3.58748
  Prefactor  = 0.354883
  norm       = 6.46792
  Prefactor  = 0.352053
  Prefactor  = 9.8174
  Prefactor  = 3.18719
  norm       = 0.164159
  norm       = 5.76495
  Prefactor  = 0.0001
  Prefactor  = 15.9242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43147
  norm       = 0.136901
  norm       = 0.0001
  Normalizat = 0.944439
  Prefactor  = 1.19958
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.833     FROM HESSE     STATUS=OK           437 CALLS     3480 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4208        2.3991        .74928E-04   -1.5242    
   4  norm          1.6181        1.2394        .71483E-04   -1.5454    
   5  Prefactor     .10000E-03    14.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4417        3.6254        .14157E-03   -1.5337    
   7  Prefactor     49.252        101.44        .57124E-04   -1.4303    
   8  Prefactor     3.5875        2.5069        .95333E-04   -1.5329    
   9  Prefactor     .35488        2.7485        .23698E-03   -1.5589    
  10  norm          6.4679        2.9919        .85063E-04   -1.5199    
  11  Prefactor     .35205        1.2083        .14849E-03   -1.5589    
  12  Prefactor     9.8174        3.2932        .75080E-04   -1.5081    
  13  Prefactor     3.1872        6.1106        .22700E-03   -1.5351    
  14  norm          .16416        .19788        .37642E-03   -1.5627    
  15  norm          5.7649        4.5041        .13271E-03   -1.5228    
  16  Prefactor     .10000E-03    3.4143        .13649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.924        11.713        .10037E-03   -1.4910    
  18  Prefactor     .10000E-03    10.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    67.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3365        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4315        14.074        .95632E-03   -1.5287    
  22  norm          .13690        26.616        .21663E-02   -1.5634    
  23  norm          .10000E-03    9.2137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94444        .22814        .27103E-03   -.94916    
  25  Prefactor     1.1996        .23036        .25643E-03   -.86344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29868e-09
Minuit parameter uncertainties:
  1  0.00013689
  2  7.328e-06
  3  2.39916
  4  1.23941
  5  1.14783e-05
  6  3.62561
  7  101.802
  8  2.50694
  9  1.9751
  10  2.99195
  11  1.20836
  12  3.29329
  13  6.11179
  14  0.197877
  15  4.50436
  16  5.47634e-07
  17  11.715
  18  0.00012064
  19  0.000156731
  20  3.10866e-07
  21  14.0841
  22  3.81808
  23  6.21655e-05
  24  0.228371
  25  0.230554
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.642e-01  1.979e-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.200e+00  2.306e-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:  9.444e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 9.64e-06 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/595787/likelihoodResults_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.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) = 5734.09859952
delta logL = 0.73440859897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.09707309
delta logL = 0.73593503086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15229       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4772       1.0000          .0000       5.0000    
     3 'Normalizat'    .89353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2319       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=   5734.097     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15209        2.3206        .47637E-02    .17104E-02
   2  alpha         3.4781        3.5202        .46068        .29407E-04
   3  Normalizat    .89362        .57959E-01    .44819E-01    .13586E-04
   4  Prefactor     1.2318        .62455E-01    .57315E-01    .33859E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.152088
  alpha      = 3.47808
  Normalizat = 0.893615
  Prefactor  = 1.23181
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.097     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15209        .22876        .21711E-03   -1.5630    
   2  alpha         3.4781        1.3698        .22140E-01    .40197    
   3  Normalizat    .89362        .22318        .27759E-03   -.96685    
   4  Prefactor     1.2318        .23237        .25344E-03   -.85358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51924e-09
Minuit parameter uncertainties:
  1  0.228765
  2  1.46724
  3  0.223411
  4  0.232566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595787': 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) = 5734.09707243
delta logL = 0.735935689685

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.521e-01  2.288e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.478e+00  1.467e+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.232e+00  2.326e-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:  8.936e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.48 +/- 1.47
Photon Flux (Free Index): 6.80e-08 +/- 5.17e-08
Energy Flux (Free Index): 1.15e-05 +/- 9.28e-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/595787/cmap_HighResolution_240364801_240624001_4FGL_J1224.9+2122_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.15e-05', photon_flux_error='3.34e-08', dlogl='7.36e-01', energy_flux='9.64e-06', photon_flux2='6.80e-08', job_status='DONE', time_completed='2021-09-05 13:23:59.431427', photon_index_error2='1.47', photon_index2='3.48', ts='1.08', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='9.28e-06', EG='0.94', time_epoch_completed='1630873439.43', return_code='0', job_id='595787', GAL2='1.23', EG2='0.89', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.17e-08', ts2='2.62', photon_index='2.28' WHERE bin_id='4' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 595787: <4FGL_J1224.9+2122_daily_bin4> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin4> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:11:25 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:11:27 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:11:27 2021
Terminated at Sun Sep  5 13:23:59 2021
Results reported at Sun Sep  5 13:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin4 186.228 21.3814 240364801 240624001 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

