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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1233
RA = 180.055, Dec = 2.0172
tmin = 558921601, tmax = 559180801
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='245948', job_status='RUN', time_executed='2021-09-04 19:56:17.376873', time_epoch_executed='1630810577.38' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245948

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245948/ft1_4FGL_J1200.2+0201_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245948/ft1_4FGL_J1200.2+0201_daily_bin1233.fits outfile=/scratch/kocevski/245948/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1233.fits ra=180.055 dec=2.0172 rad=12.0 tmin=558921601.0 tmax=559180801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.65
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245948/ft1_filtered_4FGL_J1200.2+0201_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/245948/ltcube_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.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/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits
.....................!
real 12.52
user 11.97
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245948/ft1_filtered_4FGL_J1200.2+0201_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/245948/ltcube_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.fits outfile=/scratch/kocevski/245948/expmap_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.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/245948/ltcube_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.fits
.....................!
real 194.88
user 188.17
sys 5.55

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/245948/ft1_filtered_4FGL_J1200.2+0201_daily_bin1233.fits scfile=/scratch/kocevski/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits outfile=/scratch/kocevski/245948/cmap_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245948/ft1_filtered_4FGL_J1200.2+0201_daily_bin1233.fits scfile=/scratch/kocevski/245948/ft2_4FGL_J1200.2+0201_daily_bin1233.fits outfile=/scratch/kocevski/245948/cmap_HighResolution_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    351.72       1.0000         .10000E-03   10000.    
     5 'norm      '    .17803E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    201.71       1.0000         .10000E-03   10000.    
     8 'Prefactor '    118.35       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11529E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    101.80       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37596E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    20.204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38298E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30218E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    332.17       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .38419       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3516       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=   1373.721     FROM MIGRAD    STATUS=CONVERGED   1394 CALLS     4712 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    177.92        .18142E-02** at limit **
   2  norm          .70146        5082.8        .33721E-02    .14783E-05
   3  Prefactor     .10000E-03    5.8801        .87616E-03** at limit **
   4  Prefactor     352.39        496.65        .10857E-03   -.29739E-05
   5  norm          .10001E-03    735.79        .18142E-02** at limit **
   6  Prefactor     .10000E-03    201.22        .18142E-02** at limit **
   7  Prefactor     201.74        184.34        .14226E-03    .13985E-06
   8  Prefactor     118.59        356.45        .18494E-03   -.21976E-05
   9  Prefactor     .10000E-03    8.9403        .10822E-02** at limit **
  10  Prefactor     .10004E-03    2257.6        .18142E-02** at limit **
  11  Prefactor     10.577        37.733        .12338E-03    .26469E-04
  12  Prefactor     101.79        49.715        .39849E-04   -.89154E-05
  13  Prefactor     .10000E-03    270.97        .18142E-02** at limit **
  14  Prefactor     .10000E-03    111.52        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1365.1        .18142E-02** at limit **
  16  Prefactor     .10081E-03    6645.3        .36837E-03** at limit **
  17  Prefactor     .10000E-03    109.04        .18142E-02** at limit **
  18  Prefactor     .10000E-03    72.175        .18142E-02** at limit **
  19  Prefactor     .10000E-03    63.418        .18142E-02** at limit **
  20  norm          .10000E-03    21.202        .16582E-02** at limit **
  21  norm          20.204        14.458        .89108E-04   -.41656E-04
  22  Prefactor     .10000E-03    66.199        .18142E-02** at limit **
  23  norm          .10000E-03    87.623        .18142E-02** at limit **
  24  Prefactor     .10000E-03    875.08        .21283E-02** at limit **
  25  norm          .10000E-03    1.1446        .38589E-03** at limit **
  26  Prefactor     .10000E-03    52.004        .18142E-02** at limit **
  27  norm          .10000E-03    2.7333        .59702E-03** at limit **
  28  Prefactor     .10000E-03    299.57        .21387E-02** at limit **
  29  Prefactor     331.87        337.93        .11160E-03    .18540E-04
  30  Normalizat    .38414        .60038        .49211E-03   -.75081E-07
  31  Prefactor     1.3517        .47138        .23381E-03    .44883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.701455
  Prefactor  = 0.0001
  Prefactor  = 352.389
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 201.735
  Prefactor  = 118.592
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 10.5765
  Prefactor  = 101.787
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.2038
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 331.865
  Normalizat = 0.384141
  Prefactor  = 1.35167
 **********
 **   18 **HESSE 
 **********

 FCN=   1373.721     FROM HESSE     STATUS=OK           590 CALLS     5302 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    177.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .70146        5776.7        .13489E-03   -1.5540    
   3  Prefactor     .10000E-03    5.8803        .17523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     352.39        451.11        .21714E-04   -1.1931    
   5  norm          .10001E-03    735.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    201.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     201.74        184.33        .56905E-05   -1.2858    
   8  Prefactor     118.59        356.40        .73976E-05   -1.3526    
   9  Prefactor     .10000E-03    8.9403        .21644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    2257.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.577        37.722        .49350E-05   -1.5057    
  12  Prefactor     101.79        49.714        .15940E-05   -1.3687    
  13  Prefactor     .10000E-03    270.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    111.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1365.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10081E-03    6645.1        .73675E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    109.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    72.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    63.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    21.210        .33165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.204        14.457        .35643E-05   -1.4809    
  22  Prefactor     .10000E-03    66.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    87.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    875.11        .42567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.1446        .77178E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.7333        .11940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    299.58        .42773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     331.87        337.92        .22321E-04   -1.2044    
  30  Normalizat    .38414        .59894        .19684E-04   -1.1813    
  31  Prefactor     1.3517        .46980        .46761E-04   -.81783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02939e-10
Minuit parameter uncertainties:
  1  0.000656909
  2  459.712
  3  1.40403e-05
  4  455.741
  5  0.00583358
  6  0.000535818
  7  184.862
  8  363.172
  9  2.53933e-05
  10  0.0191957
  11  37.8075
  12  49.7345
  13  0.00133624
  14  0.000296852
  15  0.00408146
  16  0.109925
  17  0.000339285
  18  5.31804e-05
  19  0.000230268
  20  3.955e-05
  21  14.4598
  22  5.6742e-05
  23  4.80263e-06
  24  0.00192327
  25  5.97552e-06
  26  1.58685e-05
  27  4.60018e-06
  28  0.000119459
  29  339.953
  30  0.609368
  31  0.471295
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.058e+01  3.781e+01  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:  1.352e+00  4.713e-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:  3.841e-01  6.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 4.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245948/likelihoodResults_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.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) = 1372.82275997
delta logL = 0.898582986759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1372.76945809
delta logL = 0.951884863389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2120       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9184       1.0000          .0000       10.000    
     3 'Normalizat'    .10942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4872       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=   1372.769     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      279 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2159        49.358        .69138E-02    .16496E-03
   2  Index         3.9178        3.4378        .57230E-01    .60635E-04
   3  Normalizat    .10943        .19089        .20993        .28292E-04
   4  Prefactor     1.4873        .16325        .50584E-01    .63423E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21588
  Index      = 3.91783
  Normalizat = 0.109428
  Prefactor  = 1.48725
 **********
 **   18 **HESSE 
 **********

 FCN=   1372.769     FROM HESSE     STATUS=OK            35 CALLS      314 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2159        45.404        .43566E-04   -1.5410    
   2  Index         3.9178        3.5014        .24087E-02   -.21816    
   3  Normalizat    .10943        1.0334        .86490E-02   -1.3709    
   4  Prefactor     1.4873        .54409        .22358E-03   -.77897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51089e-11
Minuit parameter uncertainties:
  1  20.0778
  2  3.90473
  3  0.656236
  4  0.546231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245948': 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) = 1372.76945773
delta logL = 0.951885228469

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.216e+00  2.008e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.918e+00  3.905e+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:  1.487e+00  5.462e-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.094e-01  6.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 180.055 2.017
Photon Index (Free Index): 3.92 +/- 3.90
Photon Flux (Free Index): 5.62e-07 +/- 6.78e-07
Energy Flux (Free Index): 8.53e-05 +/- 7.68e-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/245948/cmap_HighResolution_558921601_559180801_4FGL_J1200.2+0201_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-02', comment='SUCCESS', energy_flux2='8.53e-05', dlogl='9.52e-01', photon_flux2='5.62e-07', job_status='DONE', time_completed='2021-09-04 20:04:03.704482', photon_index_error2='3.90', photon_index2='3.92', ts='0.10', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='4.42e-07', energy_flux_error2='7.68e-05', EG='0.38', time_epoch_completed='1630811043.7', return_code='0', job_id='245948', GAL2='1.49', EG2='0.11', return_code2='0', photon_flux_error2='6.78e-07', ts2='2.32', photon_index='2.11' WHERE bin_id='1233' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 245948: <4FGL_J1200.2+0201_daily_bin1233> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1233> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:56:01 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:56:02 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:56:02 2021
Terminated at Sat Sep  4 20:04:04 2021
Results reported at Sat Sep  4 20:04:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1233 180.055 2.0172 558921601 559180801 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            483 sec.

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

