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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin782
RA = 187.268, Dec = 2.0454
tmin = 442022401, tmax = 442281601
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='708433', job_status='RUN', time_executed='2021-09-05 18:56:23.354663', time_epoch_executed='1630893383.35' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708433/ft1_4FGL_J1229.0+0202_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708433/ft1_4FGL_J1229.0+0202_daily_bin782.fits outfile=/scratch/kocevski/708433/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin782.fits ra=187.268 dec=2.0454 rad=12.0 tmin=442022401.0 tmax=442281601.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.76
user 3.54
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708433/ft1_filtered_4FGL_J1229.0+0202_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/708433/ltcube_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.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/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits
.....................!
real 11.88
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708433/ft1_filtered_4FGL_J1229.0+0202_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/708433/ltcube_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.fits outfile=/scratch/kocevski/708433/expmap_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.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/708433/ltcube_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.fits
.....................!
real 189.95
user 185.53
sys 4.03

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/708433/ft1_filtered_4FGL_J1229.0+0202_daily_bin782.fits scfile=/scratch/kocevski/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits outfile=/scratch/kocevski/708433/cmap_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708433/ft1_filtered_4FGL_J1229.0+0202_daily_bin782.fits scfile=/scratch/kocevski/708433/ft2_4FGL_J1229.0+0202_daily_bin782.fits outfile=/scratch/kocevski/708433/cmap_HighResolution_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.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.60
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    146.19       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0767       1.0000         .10000E-03   10000.    
    14 'norm      '    7.6287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .86687       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3799       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.225       1.0000         .10000E-03   10000.    
    25 'Prefactor '    88.712       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.886       1.0000         .10000E-03   10000.    
    29 'norm      '    2.4228       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95161       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=   7200.349     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4437 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1347        59.267       -.47098E-07   -.98665E-05
   2  Prefactor     .10000E-03    25.276        .43571E-07** at limit **
   3  Prefactor     .10000E-03    5.4426        .75168E-07** at limit **
   4  Prefactor     146.32        94.861       -.23129E-05    .22640E-04
   5  Prefactor     1.3060        4.6456        .15742E-05    .10356E-03
   6  Prefactor     21.065        21.603       -.18036E-05   -.81415E-04
   7  Prefactor     .10000E-03    35.477        .52723E-07** at limit **
   8  Prefactor     .29597        34.834       -.11941E-05    .24630E-03
   9  Prefactor     .10000E-03    82.238       -.46087E-06** at limit **
  10  Prefactor     .10000E-03    8.8207       -.15892E-06** at limit **
  11  Prefactor     10.441        28.682        .10554E-06   -.89152E-05
  12  Prefactor     .10000E-03    4.7121       -.27552E-07** at limit **
  13  norm          1.0777        1.6612        .19447E-06    .40388E-03
  14  norm          7.6292        3.6118       -.27637E-07   -.29801E-04
  15  Prefactor     .10000E-03    8.1512        .91449E-08** at limit **
  16  norm          .10000E-03    27.770        .55350E-07** at limit **
  17  Prefactor     .10000E-03    56.664        .31040E-07** at limit **
  18  norm          .86674        .49824       -.78401E-08   -.14914E-03
  19  Prefactor     6.4715        6.8790       -.47640E-06   -.56605E-04
  20  Prefactor     21.857        31.890        .33598E-06    .66884E-05
  21  Prefactor     .10000E-03    4.9987        .12343E-07** at limit **
  22  norm          5.3797        1.8757        .15386E-07   -.11907E-04
  23  Prefactor     .10000E-03    4.6810       -.69212E-07** at limit **
  24  Prefactor     32.258        41.154        .17017E-06   -.16103E-04
  25  Prefactor     88.725        56.119        .15462E-06    .26910E-06
  26  Prefactor     .10000E-03    16.385        .17926E-07** at limit **
  27  norm          .10000E-03    9.3339       -.36403E-07** at limit **
  28  Prefactor     20.884        15.049        .93518E-08    .19958E-05
  29  norm          2.4228        .39258       -.29511E-09   -.12191E-03
  30  Prefactor     .10000E-03    23.897        .44010E-08** at limit **
  31  Normalizat    1.0969        .21599        .98727E-06   -.11868E-03
  32  Prefactor     .95169        .16445       -.14706E-05   -.31771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 146.324
  Prefactor  = 1.30605
  Prefactor  = 21.065
  Prefactor  = 0.0001
  Prefactor  = 0.295969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4409
  Prefactor  = 0.0001
  norm       = 1.07772
  norm       = 7.62917
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.866743
  Prefactor  = 6.47154
  Prefactor  = 21.8569
  Prefactor  = 0.0001
  norm       = 5.37973
  Prefactor  = 0.0001
  Prefactor  = 32.2583
  Prefactor  = 88.7251
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.8837
  norm       = 2.42278
  Prefactor  = 0.0001
  Normalizat = 1.09685
  Prefactor  = 0.951689
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.349     FROM HESSE     STATUS=OK           667 CALLS     5104 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1347        59.227        .22986E-03   -1.5354    
   2  Prefactor     .10000E-03    25.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     146.32        95.712        .16664E-03   -1.3283    
   5  Prefactor     1.3060        4.5756        .33135E-03   -1.5479    
   6  Prefactor     21.065        21.849        .87273E-04   -1.4790    
   7  Prefactor     .10000E-03    35.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29597        38.348        .16071       -1.5599    
   9  Prefactor     .10000E-03    83.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.441        28.665        .12408E-03   -1.5062    
  12  Prefactor     .10000E-03    4.7319        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0777        1.3994        .13273E-02   -1.5500    
  14  norm          7.6292        3.6138        .10002E-03   -1.5155    
  15  Prefactor     .10000E-03    8.1535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .86674        .48522        .41770E-04   -1.5522    
  19  Prefactor     6.4715        6.8580        .78884E-03   -1.5199    
  20  Prefactor     21.857        31.957        .85668E-04   -1.4773    
  21  Prefactor     .10000E-03    5.0463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3797        1.8748        .64858E-04   -1.5244    
  23  Prefactor     .10000E-03    4.7144        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.258        41.132        .70585E-04   -1.4571    
  25  Prefactor     88.725        56.556        .42659E-04   -1.3821    
  26  Prefactor     .10000E-03    16.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.3395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     20.884        15.129        .87641E-04   -1.4794    
  29  norm          2.4228        .39605        .19655E-04   -1.5397    
  30  Prefactor     .10000E-03    23.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0969        .25051        .30275E-03   -.89853    
  32  Prefactor     .95169        .18827        .26036E-03   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11768e-09
Minuit parameter uncertainties:
  1  27.2824
  2  1.39578e-05
  3  2.29763e-06
  4  95.814
  5  4.57682
  6  21.8575
  7  6.66575e-08
  8  6.74115
  9  0.000135799
  10  1.11326e-06
  11  28.7026
  12  2.30722e-07
  13  1.39945
  14  3.61389
  15  1.25536e-06
  16  1.04017e-05
  17  2.57555e-05
  18  0.485225
  19  6.85885
  20  31.9818
  21  3.89654e-06
  22  1.87478
  23  1.80604e-06
  24  41.1679
  25  56.5908
  26  2.03786e-06
  27  9.38627e-07
  28  15.1316
  29  0.396053
  30  6.60775e-06
  31  0.250779
  32  0.188399
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.667e-01  4.852e-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.517e-01  1.884e-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.097e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.52e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.27e-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) = 7200.30658114
delta logL = 0.042343594052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7200.30386336
delta logL = 0.045061372346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84713       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4083       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94208       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=   7200.304     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84720        .61280        .93374E-02    .33589E-03
   2  alpha         2.4082        .65947        .41187       -.81958E-04
   3  Normalizat    1.1124        .19901        .68026E-01    .18715E-04
   4  Prefactor     .94211        .16069        .45539E-01    .10691E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.847202
  alpha      = 2.40824
  Normalizat = 1.11244
  Prefactor  = 0.94211
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.304     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84720        .48208        .42024E-04   -1.5524    
   2  alpha         2.4082        .65078        .17048E-01   -.36711E-01
   3  Normalizat    1.1124        .23434        .30096E-03   -.89353    
   4  Prefactor     .94211        .18694        .26147E-03   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01427e-10
Minuit parameter uncertainties:
  1  0.482082
  2  0.658376
  3  0.234558
  4  0.187064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708433': 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) = 7200.30386327
delta logL = 0.0450614577567

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.472e-01  4.821e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.408e+00  6.584e-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.421e-01  1.871e-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.112e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.41 +/- 0.66
Photon Flux (Free Index): 8.45e-08 +/- 5.85e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.31e-05

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/708433/cmap_HighResolution_442022401_442281601_4FGL_J1229.0+0202_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.52e-08', energy_flux2='2.32e-05', photon_flux_error='5.33e-08', dlogl='4.51e-02', energy_flux='2.26e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2021-09-05 19:11:34.454572', photon_index_error2='0.66', photon_index2='2.41', ts='5.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.10', time_epoch_completed='1630894294.45', return_code='0', job_id='708433', GAL2='0.94', EG2='1.11', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.85e-08', ts2='5.89', photon_index='2.61' WHERE bin_id='782' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 708433: <4FGL_J1229.0+0202_daily_bin782> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin782> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:56:01 2021
Job was executed on host(s) <bullet0210>, 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:11:34 2021
Results reported at Sun Sep  5 19:11:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin782 187.268 2.0454 442022401 442281601 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 :                                   908.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

