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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin489
RA = 180.187, Dec = 20.1354
tmin = 366076801, tmax = 366336001
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='258566', job_status='RUN', time_executed='2021-09-04 20:35:46.391869', time_epoch_executed='1630812946.39' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258566

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258566/ft1_4FGL_J1200.7+2008_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258566/ft1_4FGL_J1200.7+2008_daily_bin489.fits outfile=/scratch/kocevski/258566/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin489.fits ra=180.187 dec=20.1354 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.27
user 5.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.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/258566/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/258566/ltcube_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.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/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits
.....................!
real 11.64
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/258566/ltcube_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.fits outfile=/scratch/kocevski/258566/expmap_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.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/258566/ltcube_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.fits
.....................!
real 191.80
user 187.42
sys 4.06

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/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits outfile=/scratch/kocevski/258566/cmap_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.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.41
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits outfile=/scratch/kocevski/258566/cmap_HighResolution_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.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.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/258566/ft2_4FGL_J1200.7+2008_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258566/Model_4FGL_J1200.7+2008_daily_bin489.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/258566/ft1_filtered_4FGL_J1200.7+2008_daily_bin489.fits.....................!
real 53.99
user 52.76
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7992       1.0000         .10000E-03   10000.    
     2 'norm      '    .15965E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13049E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6221       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2547       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4616       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.755       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4099       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2517       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77991       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=   5672.845     FROM MIGRAD    STATUS=CONVERGED   1104 CALLS     3203 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7974        7.3464        .13513E-03    .25913E-04
   2  norm          .10000E-03    17.598        .65508E-01** at limit **
   3  Prefactor     .10000E-03    6.5881        .18142E-02** at limit **
   4  Prefactor     .10000E-03    38.213        .18142E-02** at limit **
   5  Prefactor     5.1014        9.4417        .17801E-03    .16796E-04
   6  Prefactor     .10000E-03    16.453        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.6844        .14107E-02** at limit **
   8  Prefactor     1.2966        2.0998        .13202E-03   -.16964E-04
   9  Prefactor     .10000E-03    31.269        .41154E-03** at limit **
  10  norm          2.9274        1.2854        .54482E-04    .13793E-03
  11  Prefactor     .10000E-03    19.260        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.3545        .20955E-02** at limit **
  13  Prefactor     27.446        94.743        .76360E-04    .12357E-04
  14  Prefactor     .10000E-03    .61435        .57586E-03** at limit **
  15  Prefactor     1.6216        2.5144        .14391E-03   -.68020E-04
  16  norm          4.8538        2.9242        .96244E-04    .10100E-03
  17  Prefactor     .10000E-03    1.3170        .16547E-03** at limit **
  18  Prefactor     1.5012        1.7955        .10640E-03    .11966E-04
  19  Prefactor     .10000E-03    5.0091        .16300E-02** at limit **
  20  norm          1.2546        .36239        .22853E-04    .34575E-03
  21  norm          3.4602        4.8524        .18804E-03    .36517E-04
  22  Prefactor     21.759        13.941        .85875E-04    .62354E-04
  23  Prefactor     .10000E-03    3.9236        .14561E-02** at limit **
  24  Prefactor     2.4103        75.415        .26372E-03   -.65096E-05
  25  Normalizat    1.2516        .22871        .23959E-03    .11198E-04
  26  Prefactor     .78028        .21445        .29292E-03    .10980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.79738
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.10136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29656
  Prefactor  = 0.0001
  norm       = 2.92738
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.4463
  Prefactor  = 0.0001
  Prefactor  = 1.62163
  norm       = 4.85384
  Prefactor  = 0.0001
  Prefactor  = 1.50116
  Prefactor  = 0.0001
  norm       = 1.25465
  norm       = 3.46021
  Prefactor  = 21.7592
  Prefactor  = 0.0001
  Prefactor  = 2.41031
  Normalizat = 1.25159
  Prefactor  = 0.780279
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.845     FROM HESSE     STATUS=OK           440 CALLS     3643 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7974        7.3462        .54050E-05   -1.5115    
   2  norm          .10000E-03    13.804        .76210E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1014        9.4415        .71206E-05   -1.5256    
   6  Prefactor     .10000E-03    16.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6845        .28214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2966        2.0995        .52809E-05   -1.5480    
   9  Prefactor     .10000E-03    31.270        .82308E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9274        1.2854        .21793E-05   -1.5366    
  11  Prefactor     .10000E-03    19.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3749        .41911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.446        94.575        .30544E-05   -1.4660    
  14  Prefactor     .10000E-03    .61436        .11517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6216        2.5143        .57562E-05   -1.5453    
  16  norm          4.8538        2.9241        .38497E-05   -1.5267    
  17  Prefactor     .10000E-03    1.3170        .33094E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5012        1.7954        .42562E-05   -1.5463    
  19  Prefactor     .10000E-03    5.0119        .32601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2546        .36236        .91410E-06   -1.5484    
  21  norm          3.4602        4.8518        .75217E-05   -1.5336    
  22  Prefactor     21.759        13.932        .34350E-05   -1.4775    
  23  Prefactor     .10000E-03    3.9237        .29122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4103        75.305        .10549E-04   -1.5397    
  25  Normalizat    1.2516        .22869        .95837E-05   -.85023    
  26  Prefactor     .78028        .21460        .11717E-04   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67888e-10
Minuit parameter uncertainties:
  1  7.34698
  2  2.30915e-05
  3  4.85492e-06
  4  0.000116031
  5  9.44424
  6  1.56142e-05
  7  2.60038e-06
  8  2.09958
  9  0.00021796
  10  1.28538
  11  6.54706e-05
  12  0.000141138
  13  95.0977
  14  5.35695e-07
  15  2.51445
  16  2.92419
  17  3.29317e-06
  18  1.79546
  19  9.16085e-06
  20  0.362365
  21  4.85233
  22  13.9342
  23  4.09689e-06
  24  26.9817
  25  0.228877
  26  0.214834
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.411e-04  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:  7.803e-01  2.148e-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:  1.252e+00  2.289e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258566/likelihoodResults_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.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) = 5672.84603706
delta logL = -0.00109329106999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5672.84494483
delta logL = -1.06023435364e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11581E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4804       1.0000          .0000       10.000    
     3 'Normalizat'    1.2517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78025       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5672.845     FROM MIGRAD    STATUS=FAILED       103 CALLS      276 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13197E-03    151.50        .21712E-02** at limit **
   2  Index         2.1189        7.2198        .50000        .47368E-04
   3  Normalizat    1.2516        .20266E-01    .23959E-03    .18523E-03
   4  Prefactor     .78028        .20145E-01    .29292E-03    .18016E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5672.845     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      403 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11652E-03    151.50        .37704E-03** at limit **
   2  Index         2.1181        7.2198        .27952E-03    .47368E-04
   3  Normalizat    1.2516        .20266E-01    .20198E-05    .18523E-03
   4  Prefactor     .78028        .20145E-01    .10302E-05    .18016E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5672.845     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      464 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1660        .43425E-01** at limit **
   2  Index         1.9027        8.8672        .50000       -.32578E-06
   3  Normalizat    1.2516        .45349E-02    .47918E-04    .20499E-04
   4  Prefactor     .78028        .45077E-02    .11717E-04    .45021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90273
  Normalizat = 1.25159
  Prefactor  = 0.780278
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.845     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      495 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    267.62        .22906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9027        5.8391        .50000       -.66805    
   3  Normalizat    1.2516        .24689E-01    .95836E-05   -.85023    
   4  Prefactor     .78028        .24541E-01    .23434E-05   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93678e-10
Minuit parameter uncertainties:
  1  0.000338495
  2  353.855
  3  0.0246895
  4  0.0245409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258566': 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) = 5672.84493691
delta logL = 6.85779286869e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.385e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.903e+00  3.539e+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:  7.803e-01  2.454e-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:  1.252e+00  2.469e-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/258566/cmap_HighResolution_366076801_366336001_4FGL_J1200.7+2008_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-04 20:48:15.570165', job_id='258566', GAL2='0.78', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630813695.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='489' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:48:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 258566: <4FGL_J1200.7+2008_daily_bin489> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin489> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:28 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:29 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:29 2021
Terminated at Sat Sep  4 20:48:16 2021
Results reported at Sat Sep  4 20:48:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin489 180.187 20.1354 366076801 366336001 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

