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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin658
RA = 180.187, Dec = 20.1354
tmin = 409881601, tmax = 410140801
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='258814', job_status='RUN', time_executed='2021-09-04 20:35:55.032470', time_epoch_executed='1630812955.03' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258814

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258814/ft1_4FGL_J1200.7+2008_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258814/ft1_4FGL_J1200.7+2008_daily_bin658.fits outfile=/scratch/kocevski/258814/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin658.fits ra=180.187 dec=20.1354 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.54
user 6.02
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.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/258814/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.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/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/258814/ltcube_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.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/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits
.....................!
real 12.43
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/258814/ltcube_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits outfile=/scratch/kocevski/258814/expmap_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.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/258814/ltcube_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits
.....................!
real 191.45
user 184.96
sys 6.13

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits outfile=/scratch/kocevski/258814/cmap_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.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=180.187 yref=20.1354 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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits outfile=/scratch/kocevski/258814/cmap_HighResolution_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.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=180.187 yref=20.1354 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258814/Model_4FGL_J1200.7+2008_daily_bin658.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/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits.....................!
real 49.40
user 47.97
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits', '/scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits', expMap='/scratch/kocevski/258814/expmap_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits', expCube='/scratch/kocevski/258814/ltcube_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258814/Model_4FGL_J1200.7+2008_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/258814/ft1_filtered_4FGL_J1200.7+2008_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/258814/ft2_4FGL_J1200.7+2008_daily_bin658.fits
Exposure map: /scratch/kocevski/258814/expmap_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits
Exposure cube: /scratch/kocevski/258814/ltcube_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258814/Model_4FGL_J1200.7+2008_daily_bin658.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) = 4786.36881269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.294       1.0000         .10000E-03   10000.    
     2 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.785       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8955       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22268E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    15.163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16517E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0041       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2012       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.685       1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.278       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88245       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4786.330     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3116 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.293        10.627       -.48913E-06   -.59648E-03
   2  norm          .10000E-03    5.3081        .48085E-07** at limit **
   3  Prefactor     8.6690        14.423        .32961E-07   -.12708E-03
   4  Prefactor     30.937        52.751        .16919E-05    .61447E-04
   5  Prefactor     11.131        16.756        .12588E-05    .24964E-03
   6  Prefactor     13.310        17.091        .22603E-05    .51593E-03
   7  Prefactor     .10000E-03    3.3928        .10379E-07** at limit **
   8  Prefactor     1.7207        1.5863       -.28355E-08   -.58305E-04
   9  Prefactor     5.8939        12.186       -.10902E-05   -.34482E-03
  10  norm          .10000E-03    .41706        .46556E-07** at limit **
  11  Prefactor     .10000E-03    7.3986       -.19845E-06** at limit **
  12  Prefactor     .10000E-03    2.0804       -.47455E-09** at limit **
  13  Prefactor     94.339        95.468       -.20234E-05   -.14328E-03
  14  Prefactor     .10000E-03    1.4989        .11984E-07** at limit **
  15  Prefactor     .10016E-03    2.3205       -.11562E-05** at limit **
  16  norm          15.154        5.5726        .14588E-06   -.56892E-03
  17  Prefactor     .10002E-03    2.3790        .46467E-06** at limit **
  18  Prefactor     .10000E-03    1.3197       -.96076E-07** at limit **
  19  Prefactor     8.0041        6.3153       -.43468E-06    .15808E-04
  20  norm          5.2012        .63584       -.77738E-08    .13426E-02
  21  norm          5.4751        5.3796        .26906E-05   -.63823E-03
  22  Prefactor     .10000E-03    7.6139        .30129E-06** at limit **
  23  Prefactor     18.681        12.816       -.10057E-05   -.61077E-03
  24  Prefactor     46.286        39.123        .17754E-05    .30469E-03
  25  Normalizat    .88253        .22635       -.17254E-05    .16455E-03
  26  Prefactor     .97302        .22117        .44857E-06    .84748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2928
  norm       = 0.0001
  Prefactor  = 8.66902
  Prefactor  = 30.937
  Prefactor  = 11.131
  Prefactor  = 13.3104
  Prefactor  = 0.0001
  Prefactor  = 1.72069
  Prefactor  = 5.8939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.3385
  Prefactor  = 0.0001
  Prefactor  = 0.000100158
  norm       = 15.1543
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 8.00406
  norm       = 5.20121
  norm       = 5.47506
  Prefactor  = 0.0001
  Prefactor  = 18.6815
  Prefactor  = 46.2855
  Normalizat = 0.882528
  Prefactor  = 0.973025
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.330     FROM HESSE     STATUS=OK           450 CALLS     3566 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.293        10.709        .86799E-04   -1.4785    
   2  norm          .10000E-03    5.3271        .15565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6690        14.488        .13611E-03   -1.5119    
   4  Prefactor     30.937        52.866        .72213E-04   -1.4595    
   5  Prefactor     11.131        16.832        .12007E-03   -1.5041    
   6  Prefactor     13.310        17.517        .10978E-03   -1.4978    
   7  Prefactor     .10000E-03    3.3953        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7207        1.5757        .80320E-04   -1.5446    
   9  Prefactor     5.8939        12.299        .16539E-03   -1.5222    
  10  norm          .10000E-03    .42629        .43586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1072        .97405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     94.339        96.164        .20687E-03   -1.3762    
  14  Prefactor     .10000E-03    1.5149        .82628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    16.218        .19174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.154        5.0664        .86125E-04   -1.4929    
  17  Prefactor     .10002E-03    13.486        .18579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3509        .15494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0041        6.3268        .14172E-03   -1.5142    
  20  norm          5.2012        .63781        .18280E-04   -1.5252    
  21  norm          5.4751        5.6303        .78910E-03   -1.5240    
  22  Prefactor     .10000E-03    7.6294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.681        12.947        .92656E-04   -1.4843    
  24  Prefactor     46.286        39.437        .58939E-04   -1.4346    
  25  Normalizat    .88253        .26081        .28868E-03   -.97077    
  26  Prefactor     .97302        .25544        .28773E-03   -.93634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30806e-08
Minuit parameter uncertainties:
  1  10.7096
  2  9.86535e-07
  3  14.4941
  4  52.9461
  5  16.8392
  6  17.5242
  7  2.48778e-06
  8  1.57575
  9  12.3038
  10  6.64557e-07
  11  3.46221e-06
  12  3.37582e-06
  13  96.3234
  14  7.07895e-06
  15  0.00320669
  16  5.06657
  17  0.000988039
  18  1.76891e-06
  19  6.32733
  20  0.637813
  21  5.63083
  22  5.38364e-07
  23  12.949
  24  39.4597
  25  0.261183
  26  0.255753
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.376e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.730e-01  2.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  8.825e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258814/likelihoodResults_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4786.33244311
delta logL = -0.00224930243803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4786.33019384
delta logL = -3.58813849743e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5057       1.0000          .0000       10.000    
     3 'Normalizat'    .88256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   4786.330     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.810        .98279E-02** at limit **
   2  Index         1.9618        8.8201        .50000       -.15689E-08
   3  Normalizat    .88253        .13642E-01    .28868E-03    .11168E-03
   4  Prefactor     .97303        .14302E-01    .28773E-03    .12577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96184
  Normalizat = 0.882527
  Prefactor  = 0.973026
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.330     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    163.71        .10659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9618        5.7346        .50000       -.65308    
   3  Normalizat    .88253        .47150E-01    .11547E-04   -.97077    
   4  Prefactor     .97303        .49431E-01    .11509E-04   -.93634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75002e-12
Minuit parameter uncertainties:
  1  6.2949e-06
  2  778.906
  3  0.0471524
  4  0.0494334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258814': 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): 102
logL (Free Index) = 4786.33019004
delta logL = 3.76906882593e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.295e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.962e+00  7.789e+02  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.730e-01  4.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  8.825e-01  4.715e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/258814/cmap_HighResolution_409881601_410140801_4FGL_J1200.7+2008_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-09-04 20:47:39.476056', job_id='258814', GAL2='0.97', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630813659.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='658' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:47:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 258814: <4FGL_J1200.7+2008_daily_bin658> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin658> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:44 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:35:46 2021
Terminated at Sat Sep  4 20:47:39 2021
Results reported at Sat Sep  4 20:47:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin658 180.187 20.1354 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

