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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1577
RA = 203.059, Dec = 47.3728
tmin = 648086401, tmax = 648345601
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='754906', job_status='RUN', time_executed='2021-09-08 02:26:11.084527', time_epoch_executed='1631093171.08' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754906/ft1_4FGL_J1332.2+4722_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754906/ft1_4FGL_J1332.2+4722_daily_bin1577.fits outfile=/scratch/kocevski/754906/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1577.fits ra=203.059 dec=47.3728 rad=12.0 tmin=648086401.0 tmax=648345601.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.27
user 4.02
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.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/754906/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/754906/ltcube_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.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/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits
.....................!
real 15.14
user 14.75
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/754906/ltcube_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits outfile=/scratch/kocevski/754906/expmap_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.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/754906/ltcube_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits
.....................!
real 192.40
user 187.01
sys 4.00

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits outfile=/scratch/kocevski/754906/cmap_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.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=203.059 yref=47.3728 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits outfile=/scratch/kocevski/754906/cmap_HighResolution_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.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=203.059 yref=47.3728 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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754906/Model_4FGL_J1332.2+4722_daily_bin1577.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/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits.....................!
real 50.10
user 48.55
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits', '/scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits', expMap='/scratch/kocevski/754906/expmap_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits', expCube='/scratch/kocevski/754906/ltcube_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/754906/Model_4FGL_J1332.2+4722_daily_bin1577.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/754906/ft1_filtered_4FGL_J1332.2+4722_daily_bin1577.fits
Spacecraft file(s): /scratch/kocevski/754906/ft2_4FGL_J1332.2+4722_daily_bin1577.fits
Exposure map: /scratch/kocevski/754906/expmap_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits
Exposure cube: /scratch/kocevski/754906/ltcube_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/754906/Model_4FGL_J1332.2+4722_daily_bin1577.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) = 6002.57735561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0452       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.237       1.0000         .10000E-03   10000.    
    17 'norm      '    .73204       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0371       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5504       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4779       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11334E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6074       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.249       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74244       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6002.565     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     3442 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7868        .92934E-06** at limit **
   2  Prefactor     5.7023        1.0218       -.58795E-06    .59935E-04
   3  Prefactor     .10000E-03    7.1781       -.21233E-05** at limit **
   4  norm          3.6507        2.3227       -.16607E-08   -.36279E-04
   5  Prefactor     .10000E-03    14.816       -.23573E-04** at limit **
   6  Prefactor     .74744        1.3140       -.44714E-05   -.67107E-06
   7  Prefactor     2.0444        1.0450       -.67481E-06    .19135E-04
   8  norm          .10000E-03    10.962        .53817E-05** at limit **
   9  norm          3.8244        3.4614       -.41822E-07   -.50768E-04
  10  Prefactor     11.014        1.0074       -.23601E-06    .14383E-03
  11  Prefactor     9.1233        1.0365       -.10064E-06    .25003E-04
  12  Prefactor     11.594        1.0074       -.23497E-06    .55426E-04
  13  norm          3.9959        3.1350        .13648E-05    .74675E-04
  14  Prefactor     46.418        1.5005       -.10322E-05    .79262E-03
  15  Prefactor     .10000E-03    41.329        .39482E-04** at limit **
  16  Prefactor     11.234        1.6348       -.23247E-05    .28982E-03
  17  norm          .73223        1.4991       -.31401E-06   -.77543E-04
  18  norm          .10008E-03    12.564       -.29407E-04** at limit **
  19  norm          2.0364        2.4761       -.85932E-06    .13752E-03
  20  norm          1.5524        1.1436       -.12537E-05   -.33804E-04
  21  Prefactor     .10000E-03    9.5190        .25102E-04** at limit **
  22  Prefactor     .10000E-03    4.7625       -.40247E-07** at limit **
  23  Prefactor     8.4855        2.6620        .40937E-05    .44361E-03
  24  Prefactor     .10000E-03    6.8670        .20337E-05** at limit **
  25  Prefactor     .10000E-03    9.5853        .26162E-04** at limit **
  26  Prefactor     3.6140        3.7003        .73742E-05    .50196E-03
  27  Prefactor     18.369        32.164       -.40848E-04    .15731E-03
  28  Prefactor     .10008E-03    14.857       -.31564E-04** at limit **
  29  Prefactor     10.252        1.1684        .10983E-05   -.84500E-04
  30  Normalizat    .74232        .18589        .36649E-05   -.37118E-04
  31  Prefactor     1.2489        .23862       -.14003E-05   -.31725E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.70229
  Prefactor  = 0.0001
  norm       = 3.65066
  Prefactor  = 0.0001
  Prefactor  = 0.747444
  Prefactor  = 2.04443
  norm       = 0.0001
  norm       = 3.82441
  Prefactor  = 11.0138
  Prefactor  = 9.12335
  Prefactor  = 11.5939
  norm       = 3.99593
  Prefactor  = 46.4184
  Prefactor  = 0.000100002
  Prefactor  = 11.234
  norm       = 0.732227
  norm       = 0.00010008
  norm       = 2.03637
  norm       = 1.55237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48547
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.61398
  Prefactor  = 18.3695
  Prefactor  = 0.000100077
  Prefactor  = 10.2516
  Normalizat = 0.742318
  Prefactor  = 1.24888
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.565     FROM HESSE     STATUS=OK           700 CALLS     4142 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7023        15.189        .42050E-02   -1.5230    
   3  Prefactor     .10000E-03    7.1693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6507        2.3283        .52854E-02   -1.5326    
   5  Prefactor     .10000E-03    14.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .74744        8.9385        .76845E-01   -1.5535    
   7  Prefactor     2.0444        29.096        .72279E-02   -1.5422    
   8  norm          .10000E-03    10.767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8244        3.4987        .51593E-02   -1.5317    
  10  Prefactor     11.014        22.389        .30180E-02   -1.5044    
  11  Prefactor     9.1233        12.490        .33171E-02   -1.5104    
  12  Prefactor     11.594        18.504        .29413E-02   -1.5027    
  13  norm          3.9959        3.3251        .50437E-02   -1.5308    
  14  Prefactor     46.418        48.644        .14712E-02   -1.4344    
  15  Prefactor     .10000E-03    41.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.234        36.498        .29877E-02   -1.5037    
  17  norm          .73223        1.5456        .12184E-01   -1.5537    
  18  norm          .10008E-03    25.595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0364        2.5059        .72443E-02   -1.5423    
  20  norm          1.5524        29.915        .85520E-02   -1.5459    
  21  Prefactor     .10000E-03    19.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7610        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4855        26.311        .34419E-02   -1.5125    
  24  Prefactor     .10000E-03    3.3589        .45189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6140        3.7703        .53184E-02   -1.5328    
  27  Prefactor     18.369        32.583        .23296E-02   -1.4851    
  28  Prefactor     .10008E-03    27.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.252        12.346        .31290E-02   -1.5067    
  30  Normalizat    .74232        .16474        .42854E-01   -1.0225    
  31  Prefactor     1.2489        .19924        .55846E-01   -.84840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20589e-07
Minuit parameter uncertainties:
  1  5.66647e-06
  2  15.1991
  3  4.37053e-06
  4  2.32832
  5  0.000128192
  6  5.17016
  7  15.4339
  8  1.71788e-05
  9  3.49884
  10  22.4064
  11  12.4936
  12  18.5133
  13  3.32529
  14  48.6858
  15  0.000576596
  16  36.571
  17  1.54568
  18  0.00287088
  19  2.50605
  20  13.6366
  21  4.54563e-05
  22  7.0882e-06
  23  26.3472
  24  1.10738e-05
  25  0.000405614
  26  3.77055
  27  32.615
  28  0.00292687
  29  12.3496
  30  0.164845
  31  0.199365
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.159e+01  1.851e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.249e+00  1.994e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  7.423e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754906/likelihoodResults_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.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) = 6002.18883398
delta logL = 0.376295952634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6002.13437499
delta logL = 0.430754943725

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6002.134     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      221 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.744        26.998        .23152E-02    .45275E-05
   2  Index         1.7363        .69917        .27556       -.40002E-04
   3  Normalizat    .75206        .15081        .42989E-01    .10807E-03
   4  Prefactor     1.2386        .19748        .56016E-01    .11928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7437
  Index      = 1.73633
  Normalizat = 0.752065
  Prefactor  = 1.23859
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.134     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.744        24.149        .92606E-04   -1.4842    
   2  Index         1.7363        .81515        .12140E-01   -.71119    
   3  Normalizat    .75206        .18083        .23764E-03   -1.0187    
   4  Prefactor     1.2386        .23699        .24769E-03   -.85152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63305e-11
Minuit parameter uncertainties:
  1  24.1614
  2  0.821574
  3  0.180976
  4  0.237199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754906': 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) = 6002.13436479
delta logL = 0.430765138433

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.874e+01  2.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  1.736e+00  8.216e-01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.239e+00  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  7.521e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 203.059 47.373
Photon Index (Free Index): 1.74 +/- 0.82
Photon Flux (Free Index): 7.64e-09 +/- 1.15e-08
Energy Flux (Free Index): 1.11e-05 +/- 2.37e-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/754906/cmap_HighResolution_648086401_648345601_4FGL_J1332.2+4722_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='4.31e-01', photon_flux2='7.64e-09', job_status='DONE', time_completed='2021-09-08 02:41:39.453048', photon_index_error2='0.82', photon_index2='1.74', ts='0.68', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='7.24e-08', energy_flux_error2='2.37e-05', EG='0.74', time_epoch_completed='1631094099.45', return_code='0', job_id='754906', GAL2='1.24', EG2='0.75', return_code2='0', photon_flux_error2='1.15e-08', ts2='1.54', photon_index='2.64' WHERE bin_id='1577' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 754906: <4FGL_J1332.2+4722_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1577> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 02:25:42 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:25:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:25:59 2021
Terminated at Wed Sep  8 02:41:40 2021
Results reported at Wed Sep  8 02:41:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1577 203.059 47.3728 648086401 648345601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.2+4722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   919.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            958 sec.

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

