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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin978
RA = 180.055, Dec = 2.0172
tmin = 492825601, tmax = 493084801
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='245510', job_status='RUN', time_executed='2021-09-04 19:55:46.183342', time_epoch_executed='1630810546.18' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245510/ft1_4FGL_J1200.2+0201_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245510/ft1_4FGL_J1200.2+0201_daily_bin978.fits outfile=/scratch/kocevski/245510/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin978.fits ra=180.055 dec=2.0172 rad=12.0 tmin=492825601.0 tmax=493084801.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 4.14
user 3.50
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.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/245510/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin978.fits evtable="EVENTS" outfile="/scratch/kocevski/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/245510/ltcube_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.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/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits
.....................!
real 12.37
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/245510/ltcube_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits outfile=/scratch/kocevski/245510/expmap_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.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/245510/ltcube_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits
.....................!
real 190.79
user 185.69
sys 4.68

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/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits scfile=/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits outfile=/scratch/kocevski/245510/cmap_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits scfile=/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits outfile=/scratch/kocevski/245510/cmap_HighResolution_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.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.57
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits', '/scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits', expMap='/scratch/kocevski/245510/expmap_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits', expCube='/scratch/kocevski/245510/ltcube_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/245510/Model_4FGL_J1200.2+0201_daily_bin978.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/245510/ft1_filtered_4FGL_J1200.2+0201_daily_bin978.fits
Spacecraft file(s): /scratch/kocevski/245510/ft2_4FGL_J1200.2+0201_daily_bin978.fits
Exposure map: /scratch/kocevski/245510/expmap_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits
Exposure cube: /scratch/kocevski/245510/ltcube_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/245510/Model_4FGL_J1200.2+0201_daily_bin978.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) = 5423.77147418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.447       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.781       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6401       1.0000         .10000E-03   10000.    
    21 'norm      '    3.2922       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
    23 'norm      '    13.161       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
    27 'norm      '    5.3099       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.5176       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6254       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .60734       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=   5423.763     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4123 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2551        .25053E-06** at limit **
   2  norm          14.225        20.716       -.78242E-07   -.11659E-04
   3  Prefactor     1.5714        1.6879        .31831E-07   -.13546E-04
   4  Prefactor     26.435        32.954       -.10426E-06    .63755E-05
   5  norm          1.3866        5.8510        .22394E-05   -.11661E-04
   6  Prefactor     .10000E-03    1.7455        .43839E-07** at limit **
   7  Prefactor     .10000E-03    9.8090        .15859E-07** at limit **
   8  Prefactor     .10000E-03    55.902       -.98968E-06** at limit **
   9  Prefactor     21.870        15.046       -.10138E-06   -.26390E-05
  10  Prefactor     .10000E-03    21.736       -.15652E-06** at limit **
  11  Prefactor     5.3675        8.8706       -.37555E-07    .18995E-06
  12  Prefactor     .10000E-03    30.593       -.24160E-05** at limit **
  13  Prefactor     12.207        18.469       -.78344E-07   -.53871E-05
  14  Prefactor     78.789        106.45        .72923E-05   -.13987E-04
  15  Prefactor     .10000E-03    17.707        .35843E-07** at limit **
  16  Prefactor     .10000E-03    14.103       -.16945E-06** at limit **
  17  Prefactor     .10000E-03    15.446        .31942E-06** at limit **
  18  Prefactor     .10000E-03    20.909       -.18995E-06** at limit **
  19  Prefactor     .10000E-03    23.254        .44192E-07** at limit **
  20  norm          1.6411        1.9630        .79647E-07   -.22239E-04
  21  norm          3.2919        3.4630       -.58288E-07    .43460E-05
  22  Prefactor     10.276        26.036        .91750E-07    .28381E-05
  23  norm          13.160        43.605        .12220E-06    .12783E-05
  24  Prefactor     .10000E-03    96.294        .90203E-06** at limit **
  25  norm          1.8336        .73055        .11873E-08   -.12481E-04
  26  Prefactor     13.015        10.920        .18568E-07   -.20006E-05
  27  norm          5.3094        2.1538        .13839E-07   -.22591E-05
  28  Prefactor     7.5167        13.624        .66399E-08   -.21900E-06
  29  Prefactor     .10000E-03    23.012       -.80798E-07** at limit **
  30  Normalizat    1.6257        .24301        .20028E-06    .21935E-04
  31  Prefactor     .60718        .18429       -.30185E-06   -.11660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.2246
  Prefactor  = 1.57142
  Prefactor  = 26.4353
  norm       = 1.38662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8703
  Prefactor  = 0.0001
  Prefactor  = 5.36753
  Prefactor  = 0.000100001
  Prefactor  = 12.2073
  Prefactor  = 78.7894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64108
  norm       = 3.29194
  Prefactor  = 10.2757
  norm       = 13.1599
  Prefactor  = 0.0001
  norm       = 1.83356
  Prefactor  = 13.0147
  norm       = 5.3094
  Prefactor  = 7.51675
  Prefactor  = 0.0001
  Normalizat = 1.62573
  Prefactor  = 0.607179
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.763     FROM HESSE     STATUS=OK           622 CALLS     4745 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2633        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.225        20.722        .10621E-03   -1.4953    
   3  Prefactor     1.5714        1.6774        .96042E-04   -1.5457    
   4  Prefactor     26.435        33.077        .77897E-04   -1.4679    
   5  norm          1.3866        5.8614        .17101E-02   -1.5472    
   6  Prefactor     .10000E-03    1.7562        .95005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.870        15.107        .85641E-04   -1.4772    
  10  Prefactor     .10000E-03    21.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3675        8.8778        .17345E-03   -1.5245    
  12  Prefactor     .10000E-03    32.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.207        18.565        .11465E-03   -1.5009    
  14  Prefactor     78.789        106.79        .45246E-04   -1.3930    
  15  Prefactor     .10000E-03    17.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6411        1.9456        .10917E-03   -1.5452    
  21  norm          3.2919        3.4463        .12573E-03   -1.5345    
  22  Prefactor     10.276        26.032        .12496E-03   -1.5067    
  23  norm          13.160        43.694        .11041E-03   -1.4982    
  24  Prefactor     .10000E-03    96.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8336        .73110        .35562E-04   -1.5437    
  26  Prefactor     13.015        10.905        .11103E-03   -1.4986    
  27  norm          5.3094        2.1544        .32770E-03   -1.5247    
  28  Prefactor     7.5167        13.600        .14627E-03   -1.5160    
  29  Prefactor     .10000E-03    23.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.6257        .29073        .25162E-03   -.74304    
  31  Prefactor     .60718        .21541        .30776E-03   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70872e-09
Minuit parameter uncertainties:
  1  2.94597e-06
  2  20.7325
  3  1.67745
  4  33.1003
  5  5.70248
  6  8.54541e-07
  7  1.47773e-06
  8  0.000262649
  9  15.1097
  10  2.91803e-05
  11  8.87998
  12  0.000296239
  13  18.5734
  14  107.054
  15  5.24305e-06
  16  2.23287e-05
  17  2.55354e-05
  18  3.28967e-05
  19  3.36044e-05
  20  1.94567
  21  3.44646
  22  26.0605
  23  43.8002
  24  0.000281169
  25  0.731107
  26  10.907
  27  2.15448
  28  13.6058
  29  1.25346e-05
  30  0.29103
  31  0.215702
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  5.368e+00  8.880e+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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.072e-01  2.157e-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:  1.626e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245510/likelihoodResults_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.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) = 5423.56280679
delta logL = 0.200118814882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5423.55557234
delta logL = 0.207353264251

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5423.556     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      290 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7144        10.220        .13610E-03   -.12589E-02
   2  Index         2.8042        1.7619        .56138E-02   -.25985E-03
   3  Normalizat    1.5906        .27726        .25387E-03    .89101E-03
   4  Prefactor     .62391        .21491        .30392E-03    .68833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71441
  Index      = 2.80416
  Normalizat = 1.59061
  Prefactor  = 0.623912
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.556     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7144        6.6358        .54438E-05   -1.5378    
   2  Index         2.8042        1.1598        .22455E-03   -.45467    
   3  Normalizat    1.5906        .27413        .50774E-04   -.75263    
   4  Prefactor     .62391        .21270        .60784E-04   -1.0659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98995e-09
Minuit parameter uncertainties:
  1  6.63763
  2  1.17312
  3  0.274386
  4  0.212974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245510': 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) = 5423.5555723
delta logL = 0.207353301324

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.714e+00  6.638e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.804e+00  1.173e+00  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:  6.239e-01  2.130e-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:  1.591e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/245510/cmap_HighResolution_492825601_493084801_4FGL_J1200.2+0201_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 20:10:05.011297', job_id='245510', GAL2='0.62', fit_tolerance='1e-08', EG2='1.59', EG='1.63', time_epoch_completed='1630811405.01', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.07e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='978' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 245510: <4FGL_J1200.2+0201_daily_bin978> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin978> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:55:28 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:55:30 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:55:30 2021
Terminated at Sat Sep  4 20:10:05 2021
Results reported at Sat Sep  4 20:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin978 180.055 2.0172 492825601 493084801 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 :                                   854.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

