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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin5
RA = 180.187, Dec = 20.1354
tmin = 240624001, tmax = 240883201
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='255824', job_status='RUN', time_executed='2021-09-04 20:28:39.722134', time_epoch_executed='1630812519.72' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255824

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255824/ft1_4FGL_J1200.7+2008_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255824/ft1_4FGL_J1200.7+2008_daily_bin5.fits outfile=/scratch/kocevski/255824/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin5.fits ra=180.187 dec=20.1354 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.37
user 1.18
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/255824/ltcube_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.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/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits
.....................!
real 12.77
user 12.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/255824/ltcube_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.fits outfile=/scratch/kocevski/255824/expmap_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.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/255824/ltcube_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.fits
.....................!
real 192.03
user 186.70
sys 4.86

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/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits scfile=/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits outfile=/scratch/kocevski/255824/cmap_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits scfile=/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits outfile=/scratch/kocevski/255824/cmap_HighResolution_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/255824/ft2_4FGL_J1200.7+2008_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255824/Model_4FGL_J1200.7+2008_daily_bin5.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/255824/ft1_filtered_4FGL_J1200.7+2008_daily_bin5.fits.....................!
real 52.28
user 50.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11973E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .44446       1.0000         .10000E-03   10000.    
    21 'norm      '    .11759E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75238       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3672       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=   5662.592     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3120 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0549       -.16616E-07** at limit **
   2  norm          .10000E-03    3.9629       -.56018E-06** at limit **
   3  Prefactor     .10000E-03    8.3327        .54254E-05** at limit **
   4  Prefactor     .10000E-03    32.743       -.22059E-04** at limit **
   5  Prefactor     .10000E-03    26.777        .16966E-04** at limit **
   6  Prefactor     4.3044        20.314       -.51599E-05   -.84993E-04
   7  Prefactor     .10000E-03    8.9122        .52977E-05** at limit **
   8  Prefactor     .10000E-03    1.2701        .10541E-06** at limit **
   9  Prefactor     .10000E-03    18.083        .84218E-05** at limit **
  10  norm          2.0316        1.3213       -.73480E-08   -.21866E-03
  11  Prefactor     23.247        19.129       -.85220E-06   -.14177E-03
  12  Prefactor     3.4697        4.5029       -.37573E-06   -.63745E-03
  13  Prefactor     40.032        80.991       -.10724E-04   -.46433E-04
  14  Prefactor     1.7546        2.5122       -.32990E-06   -.11017E-02
  15  Prefactor     .10004E-03    1.5063        .90240E-06** at limit **
  16  norm          2.9379        4.2723       -.45954E-06   -.25836E-03
  17  Prefactor     3.5181        3.6605       -.22418E-06    .90367E-04
  18  Prefactor     6.8333        3.3425        .55595E-06    .10642E-02
  19  Prefactor     .10000E-03    7.1412       -.79321E-05** at limit **
  20  norm          .44446        .21537        .12617E-08    .14185E-02
  21  norm          .10005E-03    2.5904       -.12511E-05** at limit **
  22  Prefactor     .10000E-03    4.3659        .10209E-05** at limit **
  23  Prefactor     .10000E-03    11.734       -.11606E-04** at limit **
  24  Prefactor     .10000E-03    9.6665        .25405E-05** at limit **
  25  Normalizat    .75237        .18943        .11146E-05   -.48906E-04
  26  Prefactor     1.3672        .19046        .26039E-06   -.51057E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.30444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03155
  Prefactor  = 23.2473
  Prefactor  = 3.4697
  Prefactor  = 40.0322
  Prefactor  = 1.75456
  Prefactor  = 0.00010004
  norm       = 2.93787
  Prefactor  = 3.51815
  Prefactor  = 6.8333
  Prefactor  = 0.0001
  norm       = 0.444458
  norm       = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.752374
  Prefactor  = 1.36716
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.592     FROM HESSE     STATUS=OK           456 CALLS     3576 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0573        .10535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.9745        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3044        20.269        .19408E-03   -1.5293    
   7  Prefactor     .10000E-03    9.0926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3079        .16459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0316        1.3121        .66341E-04   -1.5423    
  11  Prefactor     23.247        19.129        .83072E-04   -1.4743    
  12  Prefactor     3.4697        4.4812        .16867E-03   -1.5335    
  13  Prefactor     40.032        81.066        .63346E-04   -1.4442    
  14  Prefactor     1.7546        2.4099        .13031E-03   -1.5443    
  15  Prefactor     .10004E-03    8.2520        .17099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9379        4.2650        .15046E-03   -1.5365    
  17  Prefactor     3.5181        3.6635        .11801E-03   -1.5333    
  18  Prefactor     6.8333        3.3331        .87166E-04   -1.5185    
  19  Prefactor     .10000E-03    7.2425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .44446        .21427        .23277E-04   -1.5575    
  21  norm          .10005E-03    10.810        .23101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3895        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.6837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .75237        .22110        .28677E-03   -1.0186    
  26  Prefactor     1.3672        .22440        .23539E-03   -.81331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03551e-08
Minuit parameter uncertainties:
  1  1.24236e-06
  2  1.05643e-06
  3  3.1809e-05
  4  2.00616e-05
  5  0.00024109
  6  18.6912
  7  3.86343e-05
  8  1.27021e-05
  9  6.16251e-05
  10  1.3121
  11  19.1343
  12  4.48163
  13  81.2902
  14  2.41001
  15  0.00114447
  16  4.26542
  17  3.66371
  18  3.33316
  19  5.95516e-05
  20  0.214266
  21  0.0015006
  22  4.69631e-06
  23  8.09636e-06
  24  8.16596e-06
  25  0.221365
  26  0.224557
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.470e+00  4.482e+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.367e+00  2.246e-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:  7.524e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255824/likelihoodResults_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.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) = 5662.5869281
delta logL = 0.00544793862173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5662.36665224
delta logL = 0.225723806157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14997       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8302       1.0000          .0000       10.000    
     3 'Normalizat'    .70490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4111       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=   5662.367     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14974        2.5796        .63032E-02    .20815E-02
   2  Index         4.8311        3.4136        .13210        .12333E-03
   3  Normalizat    .70507        .40509E-01    .66775E-01    .91576E-05
   4  Prefactor     1.4110        .43605E-01    .52551E-01   -.25964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.149742
  Index      = 4.83107
  Normalizat = 0.705065
  Prefactor  = 1.41102
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.367     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14974        7.2621        .28954E-03   -1.5631    
   2  Index         4.8311        7.4120        .67780E-02   -.33792E-01
   3  Normalizat    .70507        .15709        .29547E-03   -1.0369    
   4  Prefactor     1.4110        .16673        .23233E-03   -.80063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16164e-07
Minuit parameter uncertainties:
  1  2.08518
  2  7.94771
  3  0.157186
  4  0.166793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255824': 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) = 5662.36665156
delta logL = 0.22572448276

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.497e-01  2.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  4.831e+00  7.948e+00  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.411e+00  1.668e-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:  7.051e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 180.187 20.135
Photon Index (Free Index): 4.83 +/- 7.95
Photon Flux (Free Index): 5.68e-08 +/- 5.55e-08
Energy Flux (Free Index): 7.67e-06 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/255824/cmap_HighResolution_240624001_240883201_4FGL_J1200.7+2008_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', energy_flux2='7.67e-06', dlogl='2.26e-01', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-04 20:40:30.812437', photon_index_error2='7.95', photon_index2='4.83', ts='0.77', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.03e-05', EG='0.75', time_epoch_completed='1630813230.81', return_code='0', job_id='255824', GAL2='1.41', EG2='0.71', return_code2='102', photon_flux_error2='5.55e-08', ts2='1.30', photon_index='2.52' WHERE bin_id='5' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 255824: <4FGL_J1200.7+2008_daily_bin5> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin5> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:26:04 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:26:06 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:26:06 2021
Terminated at Sat Sep  4 20:40:31 2021
Results reported at Sat Sep  4 20:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin5 180.187 20.1354 240624001 240883201 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

