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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin96
RA = 186.228, Dec = 21.3814
tmin = 264211201, tmax = 264470401
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='597198', job_status='RUN', time_executed='2021-09-05 13:19:32.368283', time_epoch_executed='1630873172.37' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597198/ft1_4FGL_J1224.9+2122_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597198/ft1_4FGL_J1224.9+2122_daily_bin96.fits outfile=/scratch/kocevski/597198/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin96.fits ra=186.228 dec=21.3814 rad=12.0 tmin=264211201.0 tmax=264470401.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.70
user 1.50
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597198/ft1_filtered_4FGL_J1224.9+2122_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/597198/ltcube_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.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/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits
.....................!
real 12.51
user 12.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597198/ft1_filtered_4FGL_J1224.9+2122_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/597198/ltcube_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.fits outfile=/scratch/kocevski/597198/expmap_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.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/597198/ltcube_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.fits
.....................!
real 190.02
user 185.02
sys 4.65

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/597198/ft1_filtered_4FGL_J1224.9+2122_daily_bin96.fits scfile=/scratch/kocevski/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits outfile=/scratch/kocevski/597198/cmap_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597198/ft1_filtered_4FGL_J1224.9+2122_daily_bin96.fits scfile=/scratch/kocevski/597198/ft2_4FGL_J1224.9+2122_daily_bin96.fits outfile=/scratch/kocevski/597198/cmap_HighResolution_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84234       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .77647       1.0000         .10000E-03   10000.    
    15 'norm      '    .11256E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.675       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.701       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11954       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6326       1.0000         .10000E-03   10000.    
    23 'norm      '    11.681       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3238       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=   8369.651     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2532 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.780        2.3992        .37907E-06   -.11843E-01
   2  Prefactor     .10000E-03    3.7871       -.13039E-05** at limit **
   3  Prefactor     .10000E-03    1.6466        .11507E-07** at limit **
   4  norm          1.1748        1.0214       -.10183E-05    .38710E-03
   5  Prefactor     .10000E-03    4.5753       -.40853E-05** at limit **
   6  Prefactor     .10000E-03    13.827       -.50151E-06** at limit **
   7  Prefactor     .10000E-03    26.379       -.11169E-04** at limit **
   8  Prefactor     .10000E-03    1.5914       -.89738E-08** at limit **
   9  Prefactor     .84259        1.8527       -.36760E-06    .17564E-04
  10  norm          1.9887        2.2759       -.59142E-06    .10880E-03
  11  Prefactor     .95545        1.9259        .46810E-06   -.91600E-05
  12  Prefactor     4.6834        2.2450        .34525E-06    .72864E-04
  13  Prefactor     .10000E-03    1.8031       -.18077E-06** at limit **
  14  norm          .77640        .25656        .20987E-06   -.33239E-03
  15  norm          .10000E-03    9.8408        .33959E-05** at limit **
  16  Prefactor     4.9850        1.0337        .50577E-07   -.95694E-03
  17  Prefactor     12.738        1.1073        .25664E-06   -.35328E-02
  18  Prefactor     42.673        1.0196       -.39100E-07    .11543E-02
  19  Prefactor     11.695        1.1480       -.17631E-06    .19217E-02
  20  Prefactor     .10000E-03    8.9211       -.82554E-05** at limit **
  21  Prefactor     .10400E-03    823.45       -.19821E-04** at limit **
  22  norm          9.6316        3.9327        .32929E-05    .18589E-02
  23  norm          11.676        1.1120        .35761E-07   -.31055E-03
  24  Normalizat    1.0551        .20718       -.11767E-04   -.28553E-03
  25  Prefactor     1.3238        .21273        .51593E-05   -.27773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.842594
  norm       = 1.9887
  Prefactor  = 0.955454
  Prefactor  = 4.68336
  Prefactor  = 0.0001
  norm       = 0.7764
  norm       = 0.000100001
  Prefactor  = 4.98496
  Prefactor  = 12.7377
  Prefactor  = 42.6734
  Prefactor  = 11.6954
  Prefactor  = 0.0001
  Prefactor  = 0.000103997
  norm       = 9.63157
  norm       = 11.6764
  Normalizat = 1.0551
  Prefactor  = 1.32379
 **********
 **   18 **HESSE 
 **********

 FCN=   8369.651     FROM HESSE     STATUS=OK           515 CALLS     3047 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.780        18.437        .23729E-02   -1.4864    
   2  Prefactor     .10000E-03    3.7762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .86593        .30389E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1748        1.0487        .10568E-01   -1.5491    
   5  Prefactor     .10000E-03    4.5626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6022        .66451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .97874        .34540E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84259        1.9533        .41310E-01   -1.5524    
  10  norm          1.9887        2.2619        .73458E-02   -1.5426    
  11  Prefactor     .95545        2.1338        .36224E-01   -1.5512    
  12  Prefactor     4.6834        2.2917        .46488E-02   -1.5275    
  13  Prefactor     .10000E-03    1.7946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77640        .25888        .57167E-02   -1.5532    
  15  norm          .10000E-03    2.6512        .45935E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9850        11.349        .45016E-02   -1.5261    
  17  Prefactor     12.738        9.1770        .28057E-02   -1.4994    
  18  Prefactor     42.673        34.755        .15342E-02   -1.4401    
  19  Prefactor     11.695        84.695        .29278E-02   -1.5024    
  20  Prefactor     .10000E-03    8.5676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10400E-03    7.5304        .96040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6316        3.9571        .32280E-02   -1.5087    
  23  norm          11.676        21.645        .29303E-02   -1.5024    
  24  Normalizat    1.0551        .17992        .63278E-01   -.91207    
  25  Prefactor     1.3238        .17701        .60107E-01   -.82602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04858e-07
Minuit parameter uncertainties:
  1  18.4426
  2  2.17446e-06
  3  9.59085e-07
  4  1.04867
  5  2.40539e-05
  6  5.27278e-05
  7  0.000224001
  8  1.0443e-06
  9  1.95347
  10  2.26197
  11  2.13393
  12  2.29175
  13  3.13657e-06
  14  0.25888
  15  9.0014e-05
  16  11.3542
  17  9.17803
  18  34.7717
  19  63.0719
  20  8.73976e-05
  21  0.0109737
  22  3.95721
  23  21.6595
  24  0.180027
  25  0.177086
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.764e-01  2.589e-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.324e+00  1.771e-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.055e+00  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.04
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 4.37e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.52e-05

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) = 8369.55567373
delta logL = 0.095046075774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8369.55336099
delta logL = 0.0973588131383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78321       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4199       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3355       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=   8369.553     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78318        .47691        .55920E-02    .10961E-02
   2  alpha         2.4199        .56930        .25654        .52524E-04
   3  Normalizat    1.0377        .17046        .63730E-01    .15461E-04
   4  Prefactor     1.3354        .17878        .59886E-01    .44611E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.783183
  alpha      = 2.4199
  Normalizat = 1.0377
  Prefactor  = 1.33544
 **********
 **   18 **HESSE 
 **********

 FCN=   8369.553     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78318        .25322        .24855E-04   -1.5531    
   2  alpha         2.4199        .32519        .10676E-01   -.32044E-01
   3  Normalizat    1.0377        .20727        .28189E-03   -.91778    
   4  Prefactor     1.3354        .21413        .26483E-03   -.82259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10295e-11
Minuit parameter uncertainties:
  1  0.253217
  2  0.326111
  3  0.207431
  4  0.214269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597198': 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) = 8369.55336096
delta logL = 0.0973588459765

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.832e-01  2.532e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.420e+00  3.261e-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.335e+00  2.143e-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.038e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.13
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.42 +/- 0.33
Photon Flux (Free Index): 1.45e-07 +/- 5.44e-08
Energy Flux (Free Index): 4.29e-05 +/- 1.50e-05

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/597198/cmap_HighResolution_264211201_264470401_4FGL_J1224.9+2122_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='4.29e-05', photon_flux_error='4.37e-08', dlogl='9.74e-02', energy_flux='4.56e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-05 13:31:36.338312', photon_index_error2='0.33', photon_index2='2.42', ts='19.04', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.06', time_epoch_completed='1630873896.34', return_code='0', job_id='597198', GAL2='1.34', EG2='1.04', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.44e-08', ts2='19.13', photon_index='2.28' WHERE bin_id='96' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 597198: <4FGL_J1224.9+2122_daily_bin96> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin96> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:57 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:15:58 2021
Terminated at Sun Sep  5 13:31:37 2021
Results reported at Sun Sep  5 13:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin96 186.228 21.3814 264211201 264470401 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 :                                   721.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

