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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin783
RA = 187.268, Dec = 2.0454
tmin = 442281601, tmax = 442540801
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='708435', job_status='RUN', time_executed='2021-09-05 18:58:10.600552', time_epoch_executed='1630893490.6' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708435/ft1_4FGL_J1229.0+0202_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708435/ft1_4FGL_J1229.0+0202_daily_bin783.fits outfile=/scratch/kocevski/708435/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin783.fits ra=187.268 dec=2.0454 rad=12.0 tmin=442281601.0 tmax=442540801.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.63
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.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/708435/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/708435/ltcube_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.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/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits
.....................!
real 12.38
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/708435/ltcube_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits outfile=/scratch/kocevski/708435/expmap_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.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/708435/ltcube_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits
.....................!
real 191.55
user 185.97
sys 5.12

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/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits scfile=/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits outfile=/scratch/kocevski/708435/cmap_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits scfile=/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits outfile=/scratch/kocevski/708435/cmap_HighResolution_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits', '/scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits', expMap='/scratch/kocevski/708435/expmap_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits', expCube='/scratch/kocevski/708435/ltcube_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708435/Model_4FGL_J1229.0+0202_daily_bin783.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/708435/ft1_filtered_4FGL_J1229.0+0202_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/708435/ft2_4FGL_J1229.0+0202_daily_bin783.fits
Exposure map: /scratch/kocevski/708435/expmap_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits
Exposure cube: /scratch/kocevski/708435/ltcube_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708435/Model_4FGL_J1229.0+0202_daily_bin783.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) = 6100.67762517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16263E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27824       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.810       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    107.16       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0960       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.994       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10939E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6236       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6266       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4612       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.153       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
    27 'norm      '    26.344       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.0912       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96812       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0624       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=   6100.611     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     5064 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8853        .45931E-07** at limit **
   2  Prefactor     .10000E-03    52.818        .52268E-06** at limit **
   3  Prefactor     .10000E-03    10.503        .91122E-06** at limit **
   4  Prefactor     .10000E-03    119.10        .70381E-05** at limit **
   5  Prefactor     .10000E-03    6.4378       -.16909E-05** at limit **
   6  Prefactor     11.955        20.459       -.16404E-06   -.32159E-04
   7  Prefactor     31.000        78.202       -.35460E-05    .10510E-04
   8  Prefactor     56.351        50.075       -.18257E-05   -.35587E-04
   9  Prefactor     18.753        44.889        .34457E-05    .47684E-04
  10  Prefactor     20.434        24.112       -.22133E-07    .38449E-04
  11  Prefactor     16.064        23.207       -.24400E-06   -.13889E-06
  12  Prefactor     .10000E-03    20.063       -.46855E-06** at limit **
  13  norm          .28234        1.6391        .90114E-07   -.91084E-05
  14  norm          1.5827        3.1792       -.25981E-06    .14976E-04
  15  Prefactor     19.825        39.728        .98036E-06   -.11490E-04
  16  norm          .10000E-03    21.409        .12538E-05** at limit **
  17  Prefactor     107.14        218.96       -.23731E-05   -.15472E-05
  18  norm          1.0960        .53978       -.23110E-07   -.14009E-03
  19  Prefactor     16.993        11.007       -.24667E-06   -.52543E-04
  20  Prefactor     .10000E-03    155.67       -.14030E-04** at limit **
  21  Prefactor     5.6228        7.1747       -.13384E-05    .38747E-04
  22  norm          2.6266        1.6089       -.27232E-07   -.25026E-04
  23  Prefactor     1.4611        2.9732       -.95973E-07   -.76150E-05
  24  Prefactor     15.154        26.923       -.31213E-07   -.20404E-05
  25  Prefactor     .10000E-03    11.132        .29514E-06** at limit **
  26  Prefactor     10.537        28.316       -.79020E-06   -.10825E-05
  27  norm          26.338        21.357        .93222E-07   -.57216E-05
  28  Prefactor     .10000E-03    8.3161        .11254E-06** at limit **
  29  norm          1.0912        .26648       -.74794E-08   -.20542E-03
  30  Prefactor     .10000E-03    36.083       -.24430E-08** at limit **
  31  Normalizat    .96810        .22641        .15976E-05   -.20088E-04
  32  Prefactor     1.0624        .17321       -.11487E-05    .38982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.9548
  Prefactor  = 31.0003
  Prefactor  = 56.351
  Prefactor  = 18.7528
  Prefactor  = 20.4343
  Prefactor  = 16.0638
  Prefactor  = 0.0001
  norm       = 0.282341
  norm       = 1.58273
  Prefactor  = 19.8247
  norm       = 0.0001
  Prefactor  = 107.142
  norm       = 1.09603
  Prefactor  = 16.9929
  Prefactor  = 0.0001
  Prefactor  = 5.6228
  norm       = 2.62656
  Prefactor  = 1.46108
  Prefactor  = 15.1536
  Prefactor  = 0.0001
  Prefactor  = 10.5373
  norm       = 26.3378
  Prefactor  = 0.0001
  norm       = 1.09116
  Prefactor  = 0.0001
  Normalizat = 0.968098
  Prefactor  = 1.06242
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.611     FROM HESSE     STATUS=OK           669 CALLS     5733 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    119.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.948        .34306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.955        20.470        .11586E-03   -1.5016    
   7  Prefactor     31.000        78.228        .71935E-04   -1.4594    
   8  Prefactor     56.351        50.290        .53430E-04   -1.4205    
   9  Prefactor     18.753        44.314        .92567E-04   -1.4842    
  10  Prefactor     20.434        23.971        .88616E-04   -1.4804    
  11  Prefactor     16.064        23.146        .99912E-04   -1.4906    
  12  Prefactor     .10000E-03    20.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28234        6.8367        .18479E-02   -1.5602    
  14  norm          1.5827        3.1212        .17396E-03   -1.5456    
  15  Prefactor     19.825        39.662        .89990E-04   -1.4817    
  16  norm          .10000E-03    21.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     107.14        218.25        .38850E-04   -1.3634    
  18  norm          1.0960        .53011        .36349E-04   -1.5499    
  19  Prefactor     16.993        10.601        .97156E-04   -1.4883    
  20  Prefactor     .10000E-03    153.07        .68910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6228        7.1659        .84701E-03   -1.5234    
  22  norm          2.6266        1.6008        .73258E-04   -1.5384    
  23  Prefactor     1.4611        2.9230        .18698E-03   -1.5466    
  24  Prefactor     15.154        26.919        .10289E-03   -1.4929    
  25  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.537        28.330        .61708E-03   -1.5059    
  27  norm          26.338        21.355        .78050E-04   -1.4681    
  28  Prefactor     .10000E-03    8.4056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.0912        .26658        .19217E-04   -1.5499    
  30  Prefactor     .10000E-03    36.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .96810        .25685        .29675E-03   -.94107    
  32  Prefactor     1.0624        .19920        .23647E-03   -.90677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58412e-08
Minuit parameter uncertainties:
  1  3.10223e-06
  2  4.78349e-05
  3  7.21898e-05
  4  9.71534e-05
  5  0.000595637
  6  20.4816
  7  78.4889
  8  50.3279
  9  44.392
  10  23.9824
  11  23.159
  12  0.00010412
  13  2.77857
  14  3.12148
  15  39.7148
  16  4.86906e-05
  17  219.915
  18  0.530115
  19  10.6019
  20  1.6035e-05
  21  7.16699
  22  1.60078
  23  2.92332
  24  26.9403
  25  4.22262e-06
  26  28.3666
  27  21.3615
  28  6.44032e-06
  29  0.266582
  30  2.49251e-05
  31  0.257179
  32  0.19934
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.096e+00  5.301e-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:  1.062e+00  1.993e-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:  9.681e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.83
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.82e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.38e-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) = 6099.92439327
delta logL = 0.686318816634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6099.91500248
delta logL = 0.695709609738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86614       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5157       1.0000          .0000       5.0000    
     3 'Normalizat'    .89849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1074       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=   6099.915     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86644        5.5932        .64045E-02   -.12586E-03
   2  alpha         3.5171        3.6114        .41348        .15158E-04
   3  Normalizat    .89836        .90678E-01    .69262E-01   -.24513E-04
   4  Prefactor     1.1074        .78371E-01    .37314E-01   -.39072E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.86644
  alpha      = 3.51709
  Normalizat = 0.898365
  Prefactor  = 1.10735
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.915     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86644        .51238        .28559E-04   -1.5522    
   2  alpha         3.5171        .79997        .18462E-02    .41899    
   3  Normalizat    .89836        .24113        .30644E-03   -.96518    
   4  Prefactor     1.1074        .19696        .23219E-03   -.89232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05592e-12
Minuit parameter uncertainties:
  1  0.512382
  2  0.817308
  3  0.24142
  4  0.197087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708435': 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) = 6099.91499763
delta logL = 0.695714462085

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.664e-01  5.124e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.517e+00  8.173e-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:  1.107e+00  1.971e-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:  8.984e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.52 +/- 0.82
Photon Flux (Free Index): 1.67e-07 +/- 7.48e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.16e-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/708435/cmap_HighResolution_442281601_442540801_4FGL_J1229.0+0202_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='2.79e-05', photon_flux_error='5.82e-08', dlogl='6.96e-01', energy_flux='2.86e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-05 19:12:37.486876', photon_index_error2='0.82', photon_index2='3.52', ts='8.83', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.97', time_epoch_completed='1630894357.49', return_code='0', job_id='708435', GAL2='1.11', EG2='0.90', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='7.48e-08', ts2='10.52', photon_index='2.61' WHERE bin_id='783' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 708435: <4FGL_J1229.0+0202_daily_bin783> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin783> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:56:02 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:56:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:56:03 2021
Terminated at Sun Sep  5 19:12:38 2021
Results reported at Sun Sep  5 19:12:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin783 187.268 2.0454 442281601 442540801 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 :                                   865.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

