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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin925
RA = 187.268, Dec = 2.0454
tmin = 479088001, tmax = 479347201
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='709687', job_status='RUN', time_executed='2021-09-05 19:03:24.042393', time_epoch_executed='1630893804.04' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709687/ft1_4FGL_J1229.0+0202_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709687/ft1_4FGL_J1229.0+0202_daily_bin925.fits outfile=/scratch/kocevski/709687/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin925.fits ra=187.268 dec=2.0454 rad=12.0 tmin=479088001.0 tmax=479347201.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.44
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.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/709687/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin925.fits evtable="EVENTS" outfile="/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/709687/ltcube_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.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/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits
.....................!
real 11.77
user 11.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/709687/ltcube_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits outfile=/scratch/kocevski/709687/expmap_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.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/709687/ltcube_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits
.....................!
real 190.65
user 185.19
sys 5.09

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 J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits outfile=/scratch/kocevski/709687/cmap_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.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=187.268 yref=2.0454 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.92
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits outfile=/scratch/kocevski/709687/cmap_HighResolution_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.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=187.268 yref=2.0454 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.79
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/709687/Model_4FGL_J1229.0+0202_daily_bin925.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/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits.....................!
real 52.07
user 49.17
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits', '/scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits', expMap='/scratch/kocevski/709687/expmap_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits', expCube='/scratch/kocevski/709687/ltcube_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/709687/Model_4FGL_J1229.0+0202_daily_bin925.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/709687/ft1_filtered_4FGL_J1229.0+0202_daily_bin925.fits
Spacecraft file(s): /scratch/kocevski/709687/ft2_4FGL_J1229.0+0202_daily_bin925.fits
Exposure map: /scratch/kocevski/709687/expmap_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits
Exposure cube: /scratch/kocevski/709687/ltcube_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/709687/Model_4FGL_J1229.0+0202_daily_bin925.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) = 5796.1408136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12681E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10361       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69241E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35573E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.840       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.852       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5199       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    40.334       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11635E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3658       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3910       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5796.128     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4363 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.586       -.59593E-05** at limit **
   2  Prefactor     .10000E-03    38.037        .11244E-04** at limit **
   3  Prefactor     .10000E-03    10.114        .11193E-05** at limit **
   4  Prefactor     82.898        81.238       -.30882E-04   -.10380E-03
   5  Prefactor     .73969E-01    5.4933        .27628E-06   -.27150E-03
   6  Prefactor     .10000E-03    23.459        .13510E-04** at limit **
   7  Prefactor     .10000E-03    29.960       -.88249E-05** at limit **
   8  Prefactor     .10001E-03    93.665        .20460E-04** at limit **
   9  Prefactor     .10000E-03    42.424        .35123E-05** at limit **
  10  Prefactor     .10144E-03    24.126       -.27212E-05** at limit **
  11  Prefactor     .10000E-03    12.853        .44715E-05** at limit **
  12  Prefactor     .10000E-03    35.885        .11056E-04** at limit **
  13  norm          .50535E-01    1.6278       -.38637E-06    .16030E-03
  14  norm          .10000E-03    1.9283       -.72402E-08** at limit **
  15  Prefactor     .10000E-03    10.450       -.11132E-05** at limit **
  16  norm          .10000E-03    13.137       -.35493E-05** at limit **
  17  Prefactor     76.857        89.077        .14026E-04    .14104E-05
  18  norm          2.6015        .75005       -.43291E-07   -.18471E-03
  19  Prefactor     .10000E-03    5.6321        .76674E-06** at limit **
  20  Prefactor     .10000E-03    26.043       -.82409E-05** at limit **
  21  Prefactor     23.848        12.209        .77764E-08    .33480E-05
  22  norm          1.5201        1.8247       -.27078E-06   -.66812E-03
  23  Prefactor     .10000E-03    8.1150        .16513E-06** at limit **
  24  Prefactor     .10000E-03    14.566       -.10870E-05** at limit **
  25  Prefactor     .10000E-03    60.239       -.49389E-04** at limit **
  26  Prefactor     .10000E-03    28.449       -.12123E-04** at limit **
  27  norm          40.330        28.066       -.30883E-06    .85448E-05
  28  Prefactor     .10000E-03    35.517        .10185E-04** at limit **
  29  norm          1.3656        .34730        .11018E-07    .13934E-02
  30  Prefactor     .10000E-03    112.32        .63228E-04** at limit **
  31  Normalizat    1.3911        .23020       -.13416E-06   -.62122E-04
  32  Prefactor     .96884        .18308        .15977E-05   -.10005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.8981
  Prefactor  = 0.0739686
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.00010144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0505354
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.8568
  norm       = 2.60145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8481
  norm       = 1.52013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.3298
  Prefactor  = 0.0001
  norm       = 1.36563
  Prefactor  = 0.0001
  Normalizat = 1.39114
  Prefactor  = 0.968842
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.128     FROM HESSE     STATUS=OK           657 CALLS     5020 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     82.898        81.712        .22053E-03   -1.3884    
   5  Prefactor     .73969E-01    10.604        .58574E-01   -1.5654    
   6  Prefactor     .10000E-03    23.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    94.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10144E-03    220.57        .69872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50535E-01    39.965        .18160E-02   -1.5663    
  14  norm          .10000E-03    1.9643        .10306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     76.857        89.064        .22905E-03   -1.3952    
  18  norm          2.6015        .74952        .32849E-04   -1.5385    
  19  Prefactor     .10000E-03    5.6644        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.848        12.205        .82018E-04   -1.4731    
  22  norm          1.5201        1.8007        .10566E-03   -1.5461    
  23  Prefactor     .10000E-03    8.3020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    60.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          40.330        28.071        .63115E-04   -1.4437    
  28  Prefactor     .10000E-03    36.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3656        .34729        .21724E-04   -1.5474    
  30  Prefactor     .10000E-03    112.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3911        .26838        .27932E-03   -.80885    
  32  Prefactor     .96884        .21373        .26631E-03   -.93775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00294e-09
Minuit parameter uncertainties:
  1  0.00013921
  2  1.14797e-05
  3  1.7659e-05
  4  81.8228
  5  1.77038
  6  0.000517319
  7  5.88462e-06
  8  0.00237342
  9  5.60152e-05
  10  0.0357805
  11  1.45845e-05
  12  7.3226e-05
  13  2.84139
  14  7.67059e-06
  15  6.96095e-06
  16  3.88122e-06
  17  89.2186
  18  0.749521
  19  2.3026e-06
  20  9.64663e-06
  21  12.2065
  22  1.80081
  23  1.09959e-05
  24  2.03615e-06
  25  4.54701e-05
  26  3.18857e-05
  27  28.0803
  28  0.000241455
  29  0.347288
  30  0.000329041
  31  0.268651
  32  0.213919
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.601e+00  7.495e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.688e-01  2.139e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.391e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.30
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.86e-07 +/- 8.23e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 1.96e-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) = 5795.92092844
delta logL = 0.206888119452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5795.9171706
delta logL = 0.210645962853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5284       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8667       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5795.917     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5286        2.0878        .64222E-02   -.64221E-03
   2  alpha         2.8666        1.0632        .24724       -.51007E-04
   3  Normalizat    1.3489        .23061        .63905E-01    .37996E-04
   4  Prefactor     .99417        .18928        .46192E-01   -.83743E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52863
  alpha      = 2.86663
  Normalizat = 1.34887
  Prefactor  = 0.99417
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.917     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5286        .73773        .31346E-04   -1.5390    
   2  alpha         2.8666        .40020        .10609E-01    .14718    
   3  Normalizat    1.3489        .27195        .28267E-03   -.82119    
   4  Prefactor     .99417        .21627        .26337E-03   -.92924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97269e-11
Minuit parameter uncertainties:
  1  0.737733
  2  0.401967
  3  0.272242
  4  0.216454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709687': 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) = 5795.91716966
delta logL = 0.21064690109

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.529e+00  7.377e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.867e+00  4.020e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.942e-01  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.349e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.84
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.87 +/- 0.40
Photon Flux (Free Index): 3.19e-07 +/- 9.89e-08
Energy Flux (Free Index): 6.62e-05 +/- 1.86e-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/709687/cmap_HighResolution_479088001_479347201_4FGL_J1229.0+0202_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-07', energy_flux2='6.62e-05', photon_flux_error='8.23e-08', dlogl='2.11e-01', energy_flux='6.80e-05', photon_flux2='3.19e-07', job_status='DONE', time_completed='2021-09-05 19:16:30.106061', photon_index_error2='0.40', photon_index2='2.87', ts='29.30', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.39', time_epoch_completed='1630894590.11', return_code='0', job_id='709687', GAL2='0.99', EG2='1.35', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='9.89e-08', ts2='29.84', photon_index='2.61' WHERE bin_id='925' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 709687: <4FGL_J1229.0+0202_daily_bin925> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin925> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 19:00:32 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 19:00:34 2021
Terminated at Sun Sep  5 19:16:30 2021
Results reported at Sun Sep  5 19:16:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin925 187.268 2.0454 479088001 479347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

