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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1555
RA = 186.228, Dec = 21.3814
tmin = 642384001, tmax = 642643201
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='603613', job_status='RUN', time_executed='2021-09-05 13:38:24.518229', time_epoch_executed='1630874304.52' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603613/ft1_4FGL_J1224.9+2122_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603613/ft1_4FGL_J1224.9+2122_daily_bin1555.fits outfile=/scratch/kocevski/603613/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1555.fits ra=186.228 dec=21.3814 rad=12.0 tmin=642384001.0 tmax=642643201.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.62
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603613/ft1_filtered_4FGL_J1224.9+2122_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/603613/ltcube_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.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/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits
.....................!
real 11.82
user 11.25
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603613/ft1_filtered_4FGL_J1224.9+2122_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/603613/ltcube_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.fits outfile=/scratch/kocevski/603613/expmap_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.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/603613/ltcube_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.fits
.....................!
real 190.16
user 185.50
sys 3.98

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/603613/ft1_filtered_4FGL_J1224.9+2122_daily_bin1555.fits scfile=/scratch/kocevski/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits outfile=/scratch/kocevski/603613/cmap_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603613/ft1_filtered_4FGL_J1224.9+2122_daily_bin1555.fits scfile=/scratch/kocevski/603613/ft2_4FGL_J1224.9+2122_daily_bin1555.fits outfile=/scratch/kocevski/603613/cmap_HighResolution_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.729       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5744       1.0000         .10000E-03   10000.    
     4 'norm      '    24.643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15518E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37305E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    263.62       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.022       1.0000         .10000E-03   10000.    
    22 'norm      '    11.098       1.0000         .10000E-03   10000.    
    23 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0431       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88080       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=   6999.846     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2956 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.750        28.933       -.76094E-05    .11563E-04
   2  Prefactor     .10000E-03    4.4627       -.41386E-07** at limit **
   3  Prefactor     5.5744        2.8641        .20763E-06    .57456E-04
   4  norm          24.644        2.9589        .17004E-07    .22529E-03
   5  Prefactor     .10000E-03    14.664       -.22181E-06** at limit **
   6  Prefactor     1.6849        4.3004       -.18862E-05   -.97987E-03
   7  Prefactor     .10000E-03    300.98        .13178E-04** at limit **
   8  Prefactor     2.1271        3.1038       -.58564E-06   -.33076E-03
   9  Prefactor     .10000E-03    2.2797       -.25628E-06** at limit **
  10  norm          7.4035        3.4426       -.57207E-07    .31833E-04
  11  Prefactor     .10000E-03    1.1259        .13705E-08** at limit **
  12  Prefactor     11.016        3.3985        .24182E-08    .13832E-03
  13  Prefactor     .10000E-03    5.5131       -.15554E-06** at limit **
  14  norm          .10000E-03    .94094E-01   -.92165E-07** at limit **
  15  norm          18.734        7.6352       -.20728E-06    .21529E-03
  16  Prefactor     27.764        13.377       -.90822E-06    .48908E-04
  17  Prefactor     .10000E-03    4.5133        .44242E-07** at limit **
  18  Prefactor     .10000E-03    11.974       -.17831E-07** at limit **
  19  Prefactor     263.51        109.52       -.54104E-04    .12763E-04
  20  Prefactor     .10000E-03    7.7197       -.21403E-06** at limit **
  21  Prefactor     12.026        14.979       -.14264E-06    .41985E-05
  22  norm          11.100        4.7923       -.71538E-07    .11595E-03
  23  norm          .10000E-03    95.014       -.19125E-05** at limit **
  24  Normalizat    1.0429        .19655        .60511E-05    .28444E-04
  25  Prefactor     .88062        .18280       -.37826E-06    .38212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7495
  Prefactor  = 0.0001
  Prefactor  = 5.57443
  norm       = 24.6437
  Prefactor  = 0.0001
  Prefactor  = 1.68488
  Prefactor  = 0.000100002
  Prefactor  = 2.12707
  Prefactor  = 0.0001
  norm       = 7.40346
  Prefactor  = 0.0001
  Prefactor  = 11.016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.7338
  Prefactor  = 27.7644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 263.514
  Prefactor  = 0.0001
  Prefactor  = 12.0263
  norm       = 11.1
  norm       = 0.0001
  Normalizat = 1.04287
  Prefactor  = 0.88062
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.846     FROM HESSE     STATUS=OK           431 CALLS     3387 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.750        28.971        .10099E-03   -1.4914    
   2  Prefactor     .10000E-03    4.4741        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5744        2.8555        .90669E-04   -1.5236    
   4  norm          24.644        2.9598        .47282E-04   -1.4715    
   5  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6849        4.2746        .25734E-03   -1.5448    
   7  Prefactor     .10000E-03    302.78        .19580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1271        2.8892        .15586E-03   -1.5416    
   9  Prefactor     .10000E-03    3.8657        .22708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4035        3.4375        .10065E-03   -1.5164    
  11  Prefactor     .10000E-03    1.1327        .86528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.016        3.4000        .80342E-04   -1.5044    
  13  Prefactor     .10000E-03    39.367        .34711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .31798        .49146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.734        7.0204        .92536E-04   -1.4842    
  16  Prefactor     27.764        13.379        .76033E-04   -1.4654    
  17  Prefactor     .10000E-03    4.5283        .17356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     263.51        109.44        .12484E-03   -1.2447    
  20  Prefactor     .10000E-03    7.8226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.026        14.993        .11553E-03   -1.5014    
  22  norm          11.100        4.7972        .11586E-03   -1.5042    
  23  norm          .10000E-03    98.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0429        .23267        .28888E-03   -.91608    
  25  Prefactor     .88062        .21750        .30742E-03   -.96822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01251e-09
Minuit parameter uncertainties:
  1  28.9966
  2  9.39014e-06
  3  2.85562
  4  2.95986
  5  7.23428e-05
  6  4.27534
  7  0.00139598
  8  2.88941
  9  5.04656e-05
  10  3.4376
  11  1.11001e-07
  12  3.4001
  13  0.000166026
  14  5.23161e-06
  15  7.02072
  16  13.3803
  17  1.04711e-05
  18  1.91018e-05
  19  109.527
  20  5.92303e-05
  21  14.9978
  22  4.79733
  23  0.000381387
  24  0.232893
  25  0.217716
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  5.232e-06  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.806e-01  2.177e-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.043e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603613/likelihoodResults_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.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): 102
logL (Free Index) = 6999.86196538
delta logL = -0.0161321952764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6999.63200118
delta logL = 0.213831995368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33143E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4428       1.0000          .0000       5.0000    
     3 'Normalizat'    .99403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90855       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6999.632     FROM MIGRAD    STATUS=FAILED       100 CALLS      335 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32821E-01    3.4997        .22672E-04   -.26827E-03
   2  alpha         4.4518        4.2323        .44372        .21863E-03
   3  Normalizat    .99370        .11031        .29537E-03   -.52731E-05
   4  Prefactor     .90866        .11122        .30319E-03   -.16723E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6999.632     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      424 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32821E-01    3.4997        .17057E-04   -.26827E-03
   2  alpha         4.4518        4.2323        .59913E-02    .21863E-03
   3  Normalizat    .99370        .11031        .90992E-04   -.52731E-05
   4  Prefactor     .90866        .11122        .62957E-04   -.16723E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6999.632     FROM MIGRAD    STATUS=FAILED        72 CALLS      496 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32821E-01    3.5252        .37364E-06   -.27871E-03
   2  alpha         4.4518        4.1184        .42404        .21363E-03
   3  Normalizat    .99370        .11235        .23629E-05   -.48112E-05
   4  Prefactor     .90866        .11338        .24255E-05   -.16873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0328207
  alpha      = 4.45177
  Normalizat = 0.993696
  Prefactor  = 0.908664
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.632     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      523 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32821E-01    3.5298        .37364E-06   -1.5672    
   2  alpha         4.4518        4.1184        .42307        .89580    
   3  Normalizat    .99370        .11155        .47259E-06   -.93242    
   4  Prefactor     .90866        .11229        .48511E-06   -.95839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.98889e-06
Minuit parameter uncertainties:
  1  0.679743
  2  21.8744
  3  0.111577
  4  0.112318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603613': 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): 1
logL (Free Index) = 6999.63199513
delta logL = 0.213838054801

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.282e-02  6.797e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.452e+00  2.187e+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:  9.087e-01  1.123e-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.937e-01  1.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603613/cmap_HighResolution_642384001_642643201_4FGL_J1224.9+2122_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-05 13:51:53.666105', job_id='603613', GAL2='0.91', fit_tolerance='1e-08', EG2='0.99', EG='1.04', time_epoch_completed='1630875113.67', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.14e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1555' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 603613: <4FGL_J1224.9+2122_daily_bin1555> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1555> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:23 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:26 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:36:26 2021
Terminated at Sun Sep  5 13:51:54 2021
Results reported at Sun Sep  5 13:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1555 186.228 21.3814 642384001 642643201 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 :                                   805.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            931 sec.

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

