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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin966
RA = 202.819, Dec = -13.4282
tmin = 489715201, tmax = 489974401
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='731504', job_status='RUN', time_executed='2021-09-08 01:16:39.255742', time_epoch_executed='1631088999.26' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731504/ft1_4FGL_J1331.2-1325_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731504/ft1_4FGL_J1331.2-1325_daily_bin966.fits outfile=/scratch/kocevski/731504/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin966.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=489715201.0 tmax=489974401.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.16
user 3.90
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.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/731504/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin966.fits evtable="EVENTS" outfile="/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.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.55
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/731504/ltcube_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.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/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits
.....................!
real 16.54
user 16.10
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/731504/ltcube_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits outfile=/scratch/kocevski/731504/expmap_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.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/731504/ltcube_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits
.....................!
real 192.94
user 186.65
sys 5.58

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits outfile=/scratch/kocevski/731504/cmap_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.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=202.819 yref=-13.4282 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.60
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits outfile=/scratch/kocevski/731504/cmap_HighResolution_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.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=202.819 yref=-13.4282 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731504/Model_4FGL_J1331.2-1325_daily_bin966.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/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits.....................!
real 71.36
user 69.92
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits', '/scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits', expMap='/scratch/kocevski/731504/expmap_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits', expCube='/scratch/kocevski/731504/ltcube_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731504/Model_4FGL_J1331.2-1325_daily_bin966.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731504/ft1_filtered_4FGL_J1331.2-1325_daily_bin966.fits
Spacecraft file(s): /scratch/kocevski/731504/ft2_4FGL_J1331.2-1325_daily_bin966.fits
Exposure map: /scratch/kocevski/731504/expmap_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits
Exposure cube: /scratch/kocevski/731504/ltcube_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731504/Model_4FGL_J1331.2-1325_daily_bin966.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) = 9269.17998404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84292       1.0000         .10000E-03   10000.    
     2 'norm      '    .34467E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    56.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .86391       1.0000         .10000E-03   10000.    
     6 'norm      '    10.284       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5704       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11954E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.146       1.0000         .10000E-03   10000.    
    13 'norm      '    9.5377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .57794       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3617       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9268.997     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2363 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84280        .26846       -.46215E-08   -.41233E-05
   2  norm          .10000E-03    4.9331       -.14851E-06** at limit **
   3  norm          56.824        11.234       -.20677E-07    .17832E-04
   4  Prefactor     .10000E-03    60.666        .30688E-06** at limit **
   5  norm          .86442        1.7409        .37107E-06   -.16940E-03
   6  norm          10.278        10.029        .66788E-06   -.45465E-03
   7  norm          4.5703        5.2816       -.19483E-06   -.49445E-04
   8  Prefactor     .10000E-03    8.1860        .34766E-07** at limit **
   9  Prefactor     7.2160        8.4852       -.34249E-07   -.54914E-04
  10  Prefactor     .10000E-03    30.346        .15242E-05** at limit **
  11  norm          .10002E-03    .46166       -.64629E-07** at limit **
  12  norm          28.144        6.0914        .10453E-07   -.70813E-04
  13  norm          9.5377        8.1176        .90511E-07   -.33640E-04
  14  Prefactor     27.367        12.508        .87940E-07    .51197E-04
  15  Prefactor     .10000E-03    12.424       -.21678E-05** at limit **
  16  norm          .10000E-03    61.111       -.11629E-05** at limit **
  17  Prefactor     .10000E-03    6.1546       -.53114E-07** at limit **
  18  norm          .10000E-03    .98712       -.57249E-07** at limit **
  19  Prefactor     2.3300        3.0834        .72888E-07   -.17404E-03
  20  Prefactor     .10000E-03    12.585        .27738E-05** at limit **
  21  norm          .10000E-03    2.9242       -.10249E-06** at limit **
  22  norm          .57819        1.4557        .38247E-06   -.69563E-03
  23  Normalizat    1.3619        .20441        .14575E-06    .74385E-04
  24  Prefactor     .81188        .10382       -.19885E-06    .13053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.842803
  norm       = 0.000100002
  norm       = 56.8239
  Prefactor  = 0.0001
  norm       = 0.864417
  norm       = 10.2777
  norm       = 4.57026
  Prefactor  = 0.0001
  Prefactor  = 7.216
  Prefactor  = 0.0001
  norm       = 0.000100016
  norm       = 28.1437
  norm       = 9.53771
  Prefactor  = 27.3667
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.32998
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.578186
  Normalizat = 1.36186
  Prefactor  = 0.81188
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.997     FROM HESSE     STATUS=OK           413 CALLS     2776 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84280        .26804        .27215E-04   -1.5524    
   2  norm          .10000E-03    34.374        .40894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          56.824        11.170        .53217E-04   -1.4199    
   4  Prefactor     .10000E-03    60.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .86442        1.5980        .18291E-02   -1.5522    
   6  norm          10.278        10.930        .62472E-03   -1.5067    
   7  norm          4.5703        5.2810        .18829E-03   -1.5280    
   8  Prefactor     .10000E-03    8.3265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2160        8.5402        .14930E-03   -1.5171    
  10  Prefactor     .10000E-03    30.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    1.0507        .23380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.144        6.0813        .75515E-04   -1.4646    
  13  norm          9.5377        8.1095        .12976E-03   -1.5090    
  14  Prefactor     27.367        12.490        .76568E-04   -1.4661    
  15  Prefactor     .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    61.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .99098        .93435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3300        3.0817        .18745E-03   -1.5403    
  20  Prefactor     .10000E-03    13.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9614        .16063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .57819        1.5508        .19170E-03   -1.5556    
  23  Normalizat    1.3619        .23995        .31948E-03   -.81738    
  24  Prefactor     .81188        .12069        .21145E-03   -.99292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64458e-09
Minuit parameter uncertainties:
  1  0.268038
  2  0.000566132
  3  11.1702
  4  6.71809e-05
  5  1.59811
  6  10.9325
  7  5.28154
  8  1.20764e-06
  9  8.5416
  10  0.000209415
  11  0.00025736
  12  6.08141
  13  8.11043
  14  12.4909
  15  0.000229499
  16  0.000269193
  17  8.97854e-06
  18  2.04503e-06
  19  3.08191
  20  0.000298732
  21  5.74982e-06
  22  1.55096
  23  0.240144
  24  0.120732
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.094e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.119e-01  1.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.362e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731504/likelihoodResults_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.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) = 9268.99683035
delta logL = -0.000155316785822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9268.98838062
delta logL = 0.00829440800953

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9268.988     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      302 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36113        1.9418        .58773E-01    .71179E-03
   2  Index         3.7356        .30856        .50000        .19541E-05
   3  Normalizat    1.3526        .75652E-02    .72386E-01    .19882E-04
   4  Prefactor     .81445        .40028E-02    .43865E-01    .52789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.361125
  Index      = 3.73565
  Normalizat = 1.35257
  Prefactor  = 0.814453
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.988     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      337 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36113        890.08        .18007E-02   -1.5588    
   2  Index         3.7356        6.7535        .41237E-02   -.25565    
   3  Normalizat    1.3526        .20192        .32030E-03   -.82010    
   4  Prefactor     .81445        .80869E-01    .21112E-03   -.99198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75186e-06
Minuit parameter uncertainties:
  1  36.4071
  2  38.2253
  3  0.202037
  4  0.080881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731504': 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) = 9268.98784649
delta logL = 0.00882854112751

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.611e-01  3.641e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.736e+00  3.823e+01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.145e-01  8.088e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.353e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.819 -13.428

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/731504/cmap_HighResolution_489715201_489974401_4FGL_J1331.2-1325_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-08 01:30:47.146975', job_id='731504', GAL2='0.81', fit_tolerance='1e-08', EG2='1.35', EG='1.36', time_epoch_completed='1631089847.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.83e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='966' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 731504: <4FGL_J1331.2-1325_daily_bin966> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin966> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 01:15:26 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:16:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:16:26 2021
Terminated at Wed Sep  8 01:30:47 2021
Results reported at Wed Sep  8 01:30:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin966 202.819 -13.4282 489715201 489974401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   844.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            921 sec.

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

