/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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin162
RA = 180.187, Dec = 20.1354
tmin = 281318401, tmax = 281577601
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='257066', job_status='RUN', time_executed='2021-09-04 20:30:52.627980', time_epoch_executed='1630812652.63' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257066/ft1_4FGL_J1200.7+2008_daily_bin162.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257066/ft1_4FGL_J1200.7+2008_daily_bin162.fits outfile=/scratch/kocevski/257066/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin162.fits ra=180.187 dec=20.1354 rad=12.0 tmin=281318401.0 tmax=281577601.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.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.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/257066/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin162.fits evtable="EVENTS" outfile="/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.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.54
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits" evtable="EVENTS" scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits sctable="SC_DATA" outfile=/scratch/kocevski/257066/ltcube_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.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/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits
.....................!
real 12.12
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits sctable="SC_DATA" expcube=/scratch/kocevski/257066/ltcube_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits outfile=/scratch/kocevski/257066/expmap_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.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/257066/ltcube_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits
.....................!
real 189.93
user 185.01
sys 4.52

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/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits outfile=/scratch/kocevski/257066/cmap_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits outfile=/scratch/kocevski/257066/cmap_HighResolution_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.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.54
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257066/Model_4FGL_J1200.7+2008_daily_bin162.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/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits.....................!
real 59.68
user 58.32
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits', '/scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits', expMap='/scratch/kocevski/257066/expmap_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits', expCube='/scratch/kocevski/257066/ltcube_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257066/Model_4FGL_J1200.7+2008_daily_bin162.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/257066/ft1_filtered_4FGL_J1200.7+2008_daily_bin162.fits
Spacecraft file(s): /scratch/kocevski/257066/ft2_4FGL_J1200.7+2008_daily_bin162.fits
Exposure map: /scratch/kocevski/257066/expmap_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits
Exposure cube: /scratch/kocevski/257066/ltcube_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257066/Model_4FGL_J1200.7+2008_daily_bin162.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) = 6646.81887051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3390       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5215       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15051E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30834E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    136.78       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1145       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21599E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6972       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8361       1.0000         .10000E-03   10000.    
    21 'norm      '    .13953E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1459       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93608       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0719       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=   6646.805     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3125 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.256        10.436       -.21803E-06   -.17132E-03
   2  norm          3.3380        5.2155        .43452E-05   -.15359E-02
   3  Prefactor     3.2552        17.031        .64895E-06   -.40450E-04
   4  Prefactor     .10005E-03    49.096        .10148E-04** at limit **
   5  Prefactor     10.001        13.256        .89554E-07    .75178E-04
   6  Prefactor     .10005E-03    60.485       -.12419E-04** at limit **
   7  Prefactor     .10000E-03    13.940       -.32545E-05** at limit **
   8  Prefactor     1.5204        1.4737       -.20497E-07    .30152E-03
   9  Prefactor     .10000E-03    13.849        .32485E-05** at limit **
  10  norm          7.0946        1.7529       -.93002E-08    .79614E-03
  11  Prefactor     .10001E-03    31.589       -.40955E-05** at limit **
  12  Prefactor     3.1746        3.8659        .30597E-06    .12529E-03
  13  Prefactor     136.79        111.91        .14561E-05    .52136E-04
  14  Prefactor     1.1133        2.0925        .38682E-06    .22119E-03
  15  Prefactor     .10000E-03    1.6318        .33635E-07** at limit **
  16  norm          .10000E-03    1.1483        .12717E-07** at limit **
  17  Prefactor     5.1840        2.6271        .25281E-08    .12218E-04
  18  Prefactor     4.9615        2.7279        .72384E-07    .52791E-04
  19  Prefactor     4.6984        4.7121       -.58244E-06   -.54453E-03
  20  norm          3.8359        .48264        .12664E-07   -.63429E-04
  21  norm          .10000E-03    6.0746       -.87865E-07** at limit **
  22  Prefactor     .10000E-03    5.3297       -.35709E-07** at limit **
  23  Prefactor     22.086        14.240        .86288E-07   -.25456E-05
  24  Prefactor     6.1499        22.455        .11858E-05    .26855E-04
  25  Normalizat    .93636        .19682       -.10629E-05    .14019E-03
  26  Prefactor     1.0716        .19189       -.31775E-06    .92468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2556
  norm       = 3.33798
  Prefactor  = 3.25522
  Prefactor  = 0.000100045
  Prefactor  = 10.0011
  Prefactor  = 0.000100047
  Prefactor  = 0.000100003
  Prefactor  = 1.52041
  Prefactor  = 0.000100004
  norm       = 7.09459
  Prefactor  = 0.000100009
  Prefactor  = 3.17459
  Prefactor  = 136.788
  Prefactor  = 1.11326
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.18397
  Prefactor  = 4.96153
  Prefactor  = 4.69843
  norm       = 3.83594
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0863
  Prefactor  = 6.14991
  Normalizat = 0.936363
  Prefactor  = 1.07159
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.805     FROM HESSE     STATUS=OK           466 CALLS     3591 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.256        10.324        .11442E-03   -1.5008    
   2  norm          3.3380        5.6183        .11075E-02   -1.5343    
   3  Prefactor     3.2552        16.663        .22430E-03   -1.5347    
   4  Prefactor     .10005E-03    52.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.001        13.263        .12667E-03   -1.5075    
   6  Prefactor     .10005E-03    65.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5204        1.4587        .93639E-04   -1.5461    
   9  Prefactor     .10000E-03    14.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0946        1.7575        .51099E-04   -1.5175    
  11  Prefactor     .10001E-03    32.628        .21378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1746        3.8258        .16603E-03   -1.5352    
  13  Prefactor     136.79        111.76        .34438E-04   -1.3363    
  14  Prefactor     1.1133        1.7161        .15156E-02   -1.5497    
  15  Prefactor     .10000E-03    4.7300        .19866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1623        .85087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1840        2.6207        .90010E-04   -1.5253    
  18  Prefactor     4.9615        2.7255        .92426E-04   -1.5262    
  19  Prefactor     4.6984        4.7308        .17233E-03   -1.5274    
  20  norm          3.8359        .48425        .18980E-04   -1.5316    
  21  norm          .10000E-03    6.3030        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.086        14.231        .85231E-04   -1.4768    
  24  Prefactor     6.1499        22.433        .16194E-03   -1.5212    
  25  Normalizat    .93636        .23240        .29229E-03   -.95194    
  26  Prefactor     1.0716        .22667        .28670E-03   -.90380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91665e-09
Minuit parameter uncertainties:
  1  10.3258
  2  5.61914
  3  14.7361
  4  0.00307954
  5  13.2665
  6  0.00349811
  7  0.000449948
  8  1.45876
  9  0.000478351
  10  1.75748
  11  0.00106134
  12  3.8261
  13  111.938
  14  1.71618
  15  2.88317e-05
  16  8.94023e-07
  17  2.62077
  18  2.72561
  19  4.73113
  20  0.484248
  21  3.98219e-05
  22  1.19953e-05
  23  14.2334
  24  22.4635
  25  0.232645
  26  0.226869
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.175e+00  3.826e+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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.072e+00  2.269e-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:  9.364e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257066/likelihoodResults_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6646.78861636
delta logL = 0.0162006726259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6646.77935032
delta logL = 0.0254667148556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8182       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2984       1.0000          .0000       10.000    
     3 'Normalizat'    .94323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0652       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.

 FCN=   6646.779     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8205        148.29        .51639E-02    .50700E-03
   2  Index         2.2989        5.8664        .24314        .40474E-04
   3  Normalizat    .94343        .66516E-01    .65855E-01    .11525E-03
   4  Prefactor     1.0649        .68054E-01    .64990E-01   -.45064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82045
  Index      = 2.29895
  Normalizat = 0.943426
  Prefactor  = 1.06493
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.779     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8205        5.0645        .17867E-03   -1.5317    
   2  Index         2.2989        .91988        .10825E-01   -.57069    
   3  Normalizat    .94343        .21660        .29130E-03   -.94951    
   4  Prefactor     1.0649        .22611        .28745E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23578e-10
Minuit parameter uncertainties:
  1  5.06505
  2  0.927368
  3  0.216804
  4  0.226312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257066': 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) = 6646.7793491
delta logL = 0.0254679274594

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.820e+00  5.065e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.299e+00  9.274e-01  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:  1.065e+00  2.263e-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:  9.434e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.88
Ra Dec: 180.187 20.135

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/257066/cmap_HighResolution_281318401_281577601_4FGL_J1200.7+2008_daily_bin162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-04 20:44:38.664042', job_id='257066', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630813478.66', return_code2='0', ts='0.88', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.55e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='162' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:44:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 257066: <4FGL_J1200.7+2008_daily_bin162> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin162> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:30:40 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:30:41 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:30:41 2021
Terminated at Sat Sep  4 20:44:39 2021
Results reported at Sat Sep  4 20:44:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin162 180.187 20.1354 281318401 281577601 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

