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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1240
RA = 186.228, Dec = 21.3814
tmin = 560736001, tmax = 560995201
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='603161', job_status='RUN', time_executed='2021-09-05 13:38:47.406623', time_epoch_executed='1630874327.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603161/ft1_4FGL_J1224.9+2122_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603161/ft1_4FGL_J1224.9+2122_daily_bin1240.fits outfile=/scratch/kocevski/603161/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1240.fits ra=186.228 dec=21.3814 rad=12.0 tmin=560736001.0 tmax=560995201.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.85
user 3.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.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/603161/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.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 1.10
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/603161/ltcube_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.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/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits
.....................!
real 12.71
user 11.66
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/603161/ltcube_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits outfile=/scratch/kocevski/603161/expmap_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.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/603161/ltcube_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits
.....................!
real 193.88
user 185.33
sys 5.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits scfile=/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits outfile=/scratch/kocevski/603161/cmap_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.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.71
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits scfile=/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits outfile=/scratch/kocevski/603161/cmap_HighResolution_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.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.87
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits', '/scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits', expMap='/scratch/kocevski/603161/expmap_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits', expCube='/scratch/kocevski/603161/ltcube_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603161/Model_4FGL_J1224.9+2122_daily_bin1240.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/603161/ft1_filtered_4FGL_J1224.9+2122_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/603161/ft2_4FGL_J1224.9+2122_daily_bin1240.fits
Exposure map: /scratch/kocevski/603161/expmap_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits
Exposure cube: /scratch/kocevski/603161/ltcube_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603161/Model_4FGL_J1224.9+2122_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 125.414347069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 122.867421746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14964E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0883       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52758E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14795E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
    14 'norm      '    .16425E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1003.6       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7873       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7212       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    23 'norm      '    9.2768       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1378       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=   122.6999     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      338 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6146        1.0099         .0000         .0000    
   2  Prefactor     .10000E-03    68.187        .25125E-04** at limit **
   3  Prefactor     .10000E-03    180.62        .50315E-04** at limit **
   4  norm          6.1171        1.0034         .0000         .0000    
   5  Prefactor     .10000E-03    61.394       -.17750E-03** at limit **
   6  Prefactor     .10000E-03    57.308       -.35820E-04** at limit **
   7  Prefactor     243.09        454.14       -.26188E-03    .24257E-05
   8  Prefactor     .10000E-03    28.629        .22188E-04** at limit **
   9  Prefactor     .10000E-03    26.544        .97107E-05** at limit **
  10  norm          7.9802        1.0020         .0000         .0000    
  11  Prefactor     1.8326        1.0431         .0000         .0000    
  12  Prefactor     3.2056        1.0127         .0000         .0000    
  13  Prefactor     2.5058        1.0214         .0000         .0000    
  14  norm          .10000E-03    32.766        .80342E-04** at limit **
  15  norm          6.5566        1.0029         .0000         .0000    
  16  Prefactor     .10016E-03    89.198       -.22068E-03** at limit **
  17  Prefactor     7.3878        1.0023         .0000         .0000    
  18  Prefactor     1050.4        632.19        .89915E-05   -.74602E-04
  19  Prefactor     8.0566        1.0019         .0000         .0000    
  20  Prefactor     1.7873        1.0457         .0000         .0000    
  21  Prefactor     .10006E-03    692.96        .17851E-03** at limit **
  22  norm          3.0127        1.0145         .0000         .0000    
  23  norm          9.2768        1.0015         .0000         .0000    
  24  Normalizat    .10000E-01    .70751       -.12004E-02** at limit **
  25  Prefactor     .90528        .72647        .56463E-03   -.84913E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1171
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 243.087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.98016
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  Prefactor  = 2.50582
  norm       = 0.0001
  norm       = 6.55658
  Prefactor  = 0.000100158
  Prefactor  = 7.38783
  Prefactor  = 1050.4
  Prefactor  = 8.05657
  Prefactor  = 1.78728
  Prefactor  = 0.000100064
  norm       = 3.01271
  norm       = 9.27679
  Normalizat = 0.01
  Prefactor  = 0.905282
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   122.6999     FROM HESSE     STATUS=FAILED         9 CALLS      347 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     546.64        542.95         .0000       -1.5328    
   2  Prefactor     .10000E-03    .26195        .25125E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .32955        .50315E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1171        1.0034         .0000       -1.5213    
   5  Prefactor     .10000E-03    .21546       -.17750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .20571       -.35820E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     243.09        3.5577       -.26188E-03   -1.2577    
   8  Prefactor     .10000E-03    .20571        .22188E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571        .97107E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9802        1.0020         .0000       -1.5143    
  11  Prefactor     1.8326        1.0431         .0000       -1.5437    
  12  Prefactor     3.2056        1.0127         .0000       -1.5350    
  13  Prefactor     2.5058        1.0214         .0000       -1.5391    
  14  norm          .10000E-03    .20571        .80342E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5566        1.0029         .0000       -1.5196    
  16  Prefactor     .10016E-03    .20571       -.22068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3878        1.0023         .0000       -1.5164    
  18  Prefactor     1050.4        1.0204        .89915E-05   -.91068    
  19  Prefactor     8.0566        1.0019         .0000       -1.5140    
  20  Prefactor     1.7873        1.0457         .0000       -1.5441    
  21  Prefactor     .10006E-03    .44062E-01    .17851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0127        1.0145         .0000       -1.5361    
  23  norm          9.2768        1.0015         .0000       -1.5099    
  24  Normalizat    .10000E-01    .25744       -.12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .90528        1.0189        .56463E-03   -.95957    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.3485e-09
Minuit parameter uncertainties:
  1  1.0099
  2  4.75797e-06
  3  1.59872e-05
  4  1.00338
  5  3.40264e-05
  6  1.32191e-06
  7  3.5577
  8  8.51774e-06
  9  2.00034e-06
  10  1.00198
  11  1.04314
  12  1.01271
  13  1.02144
  14  6.99952e-06
  15  1.00294
  16  0.000360161
  17  1.00231
  18  1.02038
  19  1.00194
  20  1.04575
  21  0.000106527
  22  1.01448
  23  1.00146
  24  3.75814e-06
  25  1.04162
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 122.699933686

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  7.000e-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:  9.053e-01  1.042e+00  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.000e-02  3.758e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603161/likelihoodResults_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.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) = 122.700073294
delta logL = -0.000139607947659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 122.699934571
delta logL = -8.85247942506e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6210       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90514       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   122.6999     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      265 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1825.8        .49962E-02** at limit **
   2  alpha         2.3669        3.6735        .50000       -.86260E-09
   3  Normalizat    .10000E-01    .96694E-01    .57046E-03** at limit **
   4  Prefactor     .90528        .23399        .24141E-03   -.32283E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36687
  Normalizat = 0.01
  Prefactor  = 0.905283
 **********
 **   18 **HESSE 
 **********

 FCN=   122.6999     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    40.187        .62115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3669        2.8881        .20000       -.53277E-01
   3  Normalizat    .10000E-01    .70422        .11409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90528        .63355        .48281E-04   -.95957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88592e-13
Minuit parameter uncertainties:
  1  3.29736e-05
  2  1020.37
  3  3.30241e-07
  4  0.638814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603161': 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) = 122.699933681
delta logL = 4.55307258562e-09

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  3.297e-05  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.367e+00  1.020e+03  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.053e-01  6.388e-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.000e-02  3.302e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603161/cmap_HighResolution_560736001_560995201_4FGL_J1224.9+2122_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='3.31e-05', time_completed='2021-09-05 13:44:23.983812', job_id='603161', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630874663.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='4.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1240' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 603161: <4FGL_J1224.9+2122_daily_bin1240> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1240> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:46 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:35:48 2021
Terminated at Sun Sep  5 13:44:24 2021
Results reported at Sun Sep  5 13:44:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1240 186.228 21.3814 560736001 560995201 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 :                                   326.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            518 sec.

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

