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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1297
RA = 186.228, Dec = 21.3814
tmin = 575510401, tmax = 575769601
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='603245', job_status='RUN', time_executed='2021-09-05 13:38:32.045804', time_epoch_executed='1630874312.05' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603245/ft1_4FGL_J1224.9+2122_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603245/ft2_4FGL_J1224.9+2122_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603245/ft1_4FGL_J1224.9+2122_daily_bin1297.fits outfile=/scratch/kocevski/603245/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1297.fits ra=186.228 dec=21.3814 rad=12.0 tmin=575510401.0 tmax=575769601.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 5.55
user 5.02
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603245/ft1_filtered_4FGL_J1224.9+2122_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/603245/ft2_4FGL_J1224.9+2122_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/603245/ltcube_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.fits outfile=/scratch/kocevski/603245/expmap_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.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/603245/ltcube_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.fits
.....................!
real 194.97
user 186.08
sys 4.66

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/603245/ft1_filtered_4FGL_J1224.9+2122_daily_bin1297.fits scfile=/scratch/kocevski/603245/ft2_4FGL_J1224.9+2122_daily_bin1297.fits outfile=/scratch/kocevski/603245/cmap_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.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.84
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603245/ft1_filtered_4FGL_J1224.9+2122_daily_bin1297.fits scfile=/scratch/kocevski/603245/ft2_4FGL_J1224.9+2122_daily_bin1297.fits outfile=/scratch/kocevski/603245/cmap_HighResolution_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.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.78
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9883       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .92495E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .55236       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98986       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88734       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=   5259.901     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2940 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59425        9.2240       -.11289E-05   -.97557E-04
   2  Prefactor     23.177        12.489        .18357E-06   -.74189E-05
   3  Prefactor     .10000E-03    .66329        .62555E-07** at limit **
   4  norm          2.6907        1.1952        .56278E-07    .11161E-03
   5  Prefactor     .10000E-03    5.0890       -.63070E-06** at limit **
   6  Prefactor     5.6447        3.2699        .28467E-07   -.86941E-05
   7  Prefactor     .10000E-03    24.598       -.35381E-06** at limit **
   8  Prefactor     1.1073        1.9519       -.33763E-06   -.83699E-03
   9  Prefactor     .10000E-03    1.3945       -.18927E-08** at limit **
  10  norm          5.9879        3.6190       -.69823E-06   -.14609E-04
  11  Prefactor     6.1327        3.4200        .65059E-06   -.14018E-03
  12  Prefactor     .10000E-03    1.3927        .43139E-07** at limit **
  13  Prefactor     .10000E-03    3.6633        .44777E-06** at limit **
  14  norm          .92516E-01    .15212       -.77607E-08   -.20430E-02
  15  norm          8.7126        4.5795       -.76041E-06   -.15319E-03
  16  Prefactor     .10000E-03    7.3299       -.67070E-06** at limit **
  17  Prefactor     .10000E-03    4.7162        .49568E-06** at limit **
  18  Prefactor     23.250        29.554        .86109E-05    .27580E-05
  19  Prefactor     .10000E-03    29.029        .21294E-06** at limit **
  20  Prefactor     5.5758        6.1104        .25160E-07   -.11525E-03
  21  Prefactor     .10000E-03    6.2655        .45927E-06** at limit **
  22  norm          .10000E-03    1.1281       -.21645E-07** at limit **
  23  norm          .62632        23.913       -.20301E-05    .43249E-04
  24  Normalizat    .98974        .17790       -.70950E-06    .86805E-04
  25  Prefactor     .88738        .17878       -.20535E-06    .17788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.594246
  Prefactor  = 23.1766
  Prefactor  = 0.0001
  norm       = 2.69074
  Prefactor  = 0.0001
  Prefactor  = 5.6447
  Prefactor  = 0.0001
  Prefactor  = 1.10734
  Prefactor  = 0.0001
  norm       = 5.98789
  Prefactor  = 6.13269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0925157
  norm       = 8.71258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2503
  Prefactor  = 0.0001
  Prefactor  = 5.5758
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.626319
  Normalizat = 0.989739
  Prefactor  = 0.887382
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.901     FROM HESSE     STATUS=OK           439 CALLS     3379 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59425        38.230        .42422E-02   -1.5554    
   2  Prefactor     23.177        12.501        .83205E-04   -1.4745    
   3  Prefactor     .10000E-03    1.7547        .11485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6907        1.1948        .50802E-04   -1.5380    
   5  Prefactor     .10000E-03    5.0923        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6447        3.2661        .95605E-04   -1.5233    
   7  Prefactor     .10000E-03    24.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1073        1.9322        .13018E-03   -1.5498    
   9  Prefactor     .10000E-03    1.4166        .83438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9879        3.6272        .94984E-04   -1.5219    
  11  Prefactor     6.1327        3.4112        .88259E-04   -1.5213    
  12  Prefactor     .10000E-03    1.4261        .16673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2654        .26638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .92516E-01    .13353        .34744E-03   -1.5647    
  15  norm          8.7126        4.5433        .10762E-03   -1.5118    
  16  Prefactor     .10000E-03    7.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7314        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.250        29.117        .83119E-04   -1.4743    
  19  Prefactor     .10000E-03    29.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5758        6.1091        .17015E-03   -1.5236    
  21  Prefactor     .10000E-03    6.2870        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1384        .75212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .62632        205.76        .68406E-02   -1.5550    
  24  Normalizat    .98974        .20320        .23296E-03   -.93375    
  25  Prefactor     .88738        .20498        .25660E-03   -.96583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89772e-08
Minuit parameter uncertainties:
  1  9.5383
  2  12.5024
  3  2.5796e-06
  4  1.19484
  5  5.78405e-07
  6  3.26624
  7  5.0683e-07
  8  1.93226
  9  7.39598e-08
  10  3.62733
  11  3.41129
  12  4.43934e-06
  13  0.00011443
  14  0.133527
  15  4.54343
  16  0.000100399
  17  3.73991e-06
  18  29.1346
  19  5.95866e-06
  20  6.10975
  21  4.70622e-06
  22  1.65711e-06
  23  22.7819
  24  0.203356
  25  0.205158
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.252e-02  1.335e-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:  8.874e-01  2.052e-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.897e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603245/likelihoodResults_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.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) = 5259.65405093
delta logL = 0.246944378496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5259.6464519
delta logL = 0.254543411832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77839E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6616       1.0000          .0000       5.0000    
     3 'Normalizat'    .99819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88077       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=   5259.646     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77989E-01    .11313        .56147E-02    .84439E-03
   2  alpha         1.6617        .55491        .32997       -.37491E-04
   3  Normalizat    .99772        .16918        .46144E-01    .57548E-05
   4  Prefactor     .88128        .17831        .44759E-01    .10842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0779889
  alpha      = 1.66167
  Normalizat = 0.997716
  Prefactor  = 0.88128
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.646     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77989E-01    .11852        .27912E-03   -1.5652    
   2  alpha         1.6617        .77272        .16476E-01   -.34196    
   3  Normalizat    .99772        .19394        .23208E-03   -.93107    
   4  Prefactor     .88128        .20443        .25727E-03   -.96798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9175e-09
Minuit parameter uncertainties:
  1  0.118517
  2  0.787305
  3  0.194077
  4  0.204611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603245': 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) = 5259.64644741
delta logL = 0.254547902667

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.799e-02  1.185e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.662e+00  7.873e-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:  8.813e-01  2.046e-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.977e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.66 +/- 0.79
Photon Flux (Free Index): 1.05e-08 +/- 1.63e-08
Energy Flux (Free Index): 1.20e-05 +/- 2.08e-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/603245/cmap_HighResolution_575510401_575769601_4FGL_J1224.9+2122_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='2.55e-01', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-05 13:50:09.241204', photon_index_error2='0.79', photon_index2='1.66', ts='0.75', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='2.08e-05', EG='0.99', time_epoch_completed='1630875009.24', return_code='0', job_id='603245', GAL2='0.88', EG2='1.00', return_code2='0', photon_flux_error2='1.63e-08', ts2='1.26', photon_index='2.28' WHERE bin_id='1297' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 603245: <4FGL_J1224.9+2122_daily_bin1297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1297 186.228 21.3814 575510401 575769601 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 :                                   672.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

