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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin766
RA = 180.055, Dec = 2.0172
tmin = 437875201, tmax = 438134401
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='242663', job_status='RUN', time_executed='2021-09-04 19:49:28.902284', time_epoch_executed='1630810168.9' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242663/ft1_4FGL_J1200.2+0201_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242663/ft1_4FGL_J1200.2+0201_daily_bin766.fits outfile=/scratch/kocevski/242663/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin766.fits ra=180.055 dec=2.0172 rad=12.0 tmin=437875201.0 tmax=438134401.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.82
user 5.52
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.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/242663/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/242663/ltcube_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.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/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits
.....................!
real 12.97
user 12.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/242663/ltcube_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits outfile=/scratch/kocevski/242663/expmap_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.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/242663/ltcube_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits
.....................!
real 190.03
user 184.94
sys 4.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits outfile=/scratch/kocevski/242663/cmap_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.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.055 yref=2.0172 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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits outfile=/scratch/kocevski/242663/cmap_HighResolution_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.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.055 yref=2.0172 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242663/Model_4FGL_J1200.2+0201_daily_bin766.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/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits.....................!
real 42.28
user 41.05
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits', '/scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits', expMap='/scratch/kocevski/242663/expmap_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits', expCube='/scratch/kocevski/242663/ltcube_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242663/Model_4FGL_J1200.2+0201_daily_bin766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/242663/ft1_filtered_4FGL_J1200.2+0201_daily_bin766.fits
Spacecraft file(s): /scratch/kocevski/242663/ft2_4FGL_J1200.2+0201_daily_bin766.fits
Exposure map: /scratch/kocevski/242663/expmap_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits
Exposure cube: /scratch/kocevski/242663/ltcube_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242663/Model_4FGL_J1200.2+0201_daily_bin766.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) = 4100.49352047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37964       1.0000         .10000E-03   10000.    
     2 'norm      '    16.161       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2948       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    122.86       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0024       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7043       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.9236       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9198       1.0000         .10000E-03   10000.    
    29 'Prefactor '    61.615       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77357       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4100.423     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     3589 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33453        4.5876        .25259E-05   -.36134E-03
   2  norm          16.194        21.100        .26754E-05    .17473E-03
   3  Prefactor     8.4782        4.4172        .20750E-06    .53848E-03
   4  Prefactor     .10000E-03    28.527       -.16002E-05** at limit **
   5  norm          1.5097        6.5320        .11983E-04    .70646E-04
   6  Prefactor     .10000E-03    1.9036        .12940E-06** at limit **
   7  Prefactor     49.266        40.042        .24567E-06    .60942E-04
   8  Prefactor     .10000E-03    26.632       -.93082E-06** at limit **
   9  Prefactor     .10000E-03    5.8847       -.89222E-07** at limit **
  10  Prefactor     .10000E-03    22.379        .10176E-05** at limit **
  11  Prefactor     .10000E-03    8.7926       -.10726E-06** at limit **
  12  Prefactor     .10000E-03    4.8451       -.15552E-07** at limit **
  13  Prefactor     8.2852        23.788       -.21466E-05    .54715E-04
  14  Prefactor     .10000E-03    22.766        .37657E-06** at limit **
  15  Prefactor     25.241        43.539       -.19686E-06    .11759E-04
  16  Prefactor     .10000E-03    17.598       -.33963E-06** at limit **
  17  Prefactor     122.85        45.084        .43125E-06    .10392E-03
  18  Prefactor     .10000E-03    50.423       -.80873E-06** at limit **
  19  Prefactor     .10000E-03    3.9465        .23911E-07** at limit **
  20  norm          .10000E-03    .77903        .71794E-08** at limit **
  21  norm          4.5959        4.1173       -.15833E-06   -.53504E-03
  22  Prefactor     .99641        31.510        .15952E-05   -.37631E-04
  23  norm          .10000E-03    44.023        .22728E-05** at limit **
  24  Prefactor     .10000E-03    337.74        .51767E-05** at limit **
  25  norm          1.7040        .78734       -.36348E-07   -.10111E-02
  26  Prefactor     .10000E-03    10.766       -.59707E-07** at limit **
  27  norm          7.9233        2.4993        .36164E-08   -.24006E-03
  28  Prefactor     2.9200        10.714        .44421E-05   -.28652E-04
  29  Prefactor     61.611        48.648       -.15374E-06   -.52316E-05
  30  Normalizat    .77385        .25679       -.64141E-06    .29616E-03
  31  Prefactor     .92125        .19098       -.36863E-06    .46064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.334534
  norm       = 16.1945
  Prefactor  = 8.47818
  Prefactor  = 0.000100001
  norm       = 1.50972
  Prefactor  = 0.0001
  Prefactor  = 49.2662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.28516
  Prefactor  = 0.0001
  Prefactor  = 25.2407
  Prefactor  = 0.0001
  Prefactor  = 122.847
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.59586
  Prefactor  = 0.996408
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.70405
  Prefactor  = 0.0001
  norm       = 7.92332
  Prefactor  = 2.92002
  Prefactor  = 61.6114
  Normalizat = 0.77385
  Prefactor  = 0.92125
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.423     FROM HESSE     STATUS=OK           614 CALLS     4203 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33453        31.317        .24360E-02   -1.5592    
   2  norm          16.194        21.694        .99628E-04   -1.4903    
   3  Prefactor     8.4782        4.4400        .90665E-04   -1.5126    
   4  Prefactor     .10000E-03    28.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5097        6.6471        .15777E-02   -1.5462    
   6  Prefactor     .10000E-03    1.9194        .86274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.266        40.056        .57129E-04   -1.4303    
   8  Prefactor     .10000E-03    26.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9174        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8473        .13766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2852        23.806        .13920E-03   -1.5132    
  14  Prefactor     .10000E-03    22.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.241        43.562        .79737E-04   -1.4703    
  16  Prefactor     .10000E-03    17.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     122.85        45.161        .36312E-04   -1.3487    
  18  Prefactor     .10000E-03    51.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9492        .12423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .78027        .55188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5959        4.1142        .11258E-03   -1.5279    
  22  Prefactor     .99641        479.93        .67799E-02   -1.5508    
  23  norm          .10000E-03    44.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    337.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7040        .78368        .34742E-04   -1.5447    
  26  Prefactor     .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.9233        2.4985        .53920E-04   -1.5145    
  28  Prefactor     2.9200        10.700        .11888E-02   -1.5366    
  29  Prefactor     61.611        48.623        .51118E-04   -1.4136    
  30  Normalizat    .77385        .30123        .31262E-03   -1.0105    
  31  Prefactor     .92125        .22355        .23223E-03   -.95402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83695e-09
Minuit parameter uncertainties:
  1  6.47602
  2  21.7047
  3  4.4402
  4  0.000349442
  5  6.33668
  6  7.53296e-06
  7  40.0781
  8  5.99055e-05
  9  1.55541e-05
  10  7.8131e-05
  11  1.90219e-05
  12  5.19316e-06
  13  23.8331
  14  3.81557e-05
  15  43.6174
  16  6.88369e-06
  17  45.174
  18  0.000376208
  19  2.1958e-07
  20  5.80279e-08
  21  4.11446
  22  44.0936
  23  0.000284383
  24  0.00194642
  25  0.783684
  26  1.49995e-05
  27  2.49849
  28  10.7072
  29  48.6546
  30  0.301883
  31  0.223772
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.902e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.213e-01  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  7.738e-01  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 9.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242663/likelihoodResults_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.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) = 4100.42348999
delta logL = -0.000537200765393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4100.42295286
delta logL = -7.10915628588e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1082       1.0000          .0000       10.000    
     3 'Normalizat'    .77382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4100.423     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2867        .90712E-02** at limit **
   2  Index         2.1073        5.5302        .50000        .88949E-06
   3  Normalizat    .77385        .50197E-02    .70645E-01    .38022E-04
   4  Prefactor     .92125        .40622E-02    .45276E-01    .40599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10729
  Normalizat = 0.77385
  Prefactor  = 0.921249
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.423     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1073        6.6449        .50000       -.61694    
   3  Normalizat    .77385        .17702E-01    .31262E-03   -1.0105    
   4  Prefactor     .92125        .14346E-01    .23223E-03   -.95403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.93964e-09
Minuit parameter uncertainties:
  1  1.82299e-05
  2  292.49
  3  0.017702
  4  0.0143461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242663': 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) = 4100.42295278
delta logL = 5.52972778678e-10

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.823e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.107e+00  2.925e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.212e-01  1.435e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  7.738e-01  1.770e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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/242663/cmap_HighResolution_437875201_438134401_4FGL_J1200.2+0201_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2021-09-04 20:00:54.000919', job_id='242663', GAL2='0.92', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630810854.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.53e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='766' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 242663: <4FGL_J1200.2+0201_daily_bin766> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin766> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:42 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:45:43 2021
Terminated at Sat Sep  4 20:00:54 2021
Results reported at Sat Sep  4 20:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin766 180.055 2.0172 437875201 438134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

