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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin782
RA = 186.252, Dec = 3.5098
tmin = 442022401, tmax = 442281601
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='608392', job_status='RUN', time_executed='2021-09-05 13:51:17.423128', time_epoch_executed='1630875077.42' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608392/ft1_4FGL_J1225.0+0330_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608392/ft1_4FGL_J1225.0+0330_daily_bin782.fits outfile=/scratch/kocevski/608392/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin782.fits ra=186.252 dec=3.5098 rad=12.0 tmin=442022401.0 tmax=442281601.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.75
user 3.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.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/608392/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/608392/ltcube_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.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/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits
.....................!
real 11.93
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/608392/ltcube_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits outfile=/scratch/kocevski/608392/expmap_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.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/608392/ltcube_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits
.....................!
real 189.28
user 184.96
sys 3.96

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

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits outfile=/scratch/kocevski/608392/cmap_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.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=186.252 yref=3.5098 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits outfile=/scratch/kocevski/608392/cmap_HighResolution_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.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=186.252 yref=3.5098 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608392/Model_4FGL_J1225.0+0330_daily_bin782.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/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits.....................!
real 59.85
user 58.49
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits', '/scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits', expMap='/scratch/kocevski/608392/expmap_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits', expCube='/scratch/kocevski/608392/ltcube_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608392/Model_4FGL_J1225.0+0330_daily_bin782.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/608392/ft1_filtered_4FGL_J1225.0+0330_daily_bin782.fits
Spacecraft file(s): /scratch/kocevski/608392/ft2_4FGL_J1225.0+0330_daily_bin782.fits
Exposure map: /scratch/kocevski/608392/expmap_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits
Exposure cube: /scratch/kocevski/608392/ltcube_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608392/Model_4FGL_J1225.0+0330_daily_bin782.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) = 6933.80588742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5468       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2089       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0659       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .83361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2709       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.065       1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.964       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.167       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2394       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6933.774     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3902 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5526        117.24        .12777E-04   -.41212E-04
   2  Prefactor     .10000E-03    23.889       -.26964E-04** at limit **
   3  Prefactor     .10000E-03    6.3129        .25799E-05** at limit **
   4  Prefactor     1.2091        4.4271       -.34990E-05   -.11225E-02
   5  Prefactor     .10000E-03    32.407        .18013E-04** at limit **
   6  Prefactor     24.169        20.480        .21057E-05   -.13974E-04
   7  Prefactor     .10000E-03    36.638        .30572E-04** at limit **
   8  Prefactor     44.465        63.699       -.14143E-04   -.13732E-05
   9  Prefactor     .10000E-03    52.881       -.52999E-05** at limit **
  10  Prefactor     .10000E-03    8.3310       -.16494E-05** at limit **
  11  Prefactor     9.2954        28.024        .19451E-05   -.26489E-05
  12  Prefactor     .10000E-03    4.5037        .34464E-05** at limit **
  13  norm          1.0660        1.6500       -.15632E-06   -.90781E-03
  14  norm          7.2830        3.5136       -.36605E-07   -.37784E-04
  15  Prefactor     .10000E-03    8.0376       -.64069E-05** at limit **
  16  norm          .10000E-03    28.768       -.20695E-05** at limit **
  17  Prefactor     .10000E-03    57.332       -.29682E-04** at limit **
  18  norm          .83357        .48807       -.79330E-08   -.49747E-03
  19  Prefactor     6.4258        6.7915       -.95573E-07    .40792E-05
  20  Prefactor     16.395        27.806        .17699E-05   -.23302E-04
  21  Prefactor     .10000E-03    4.6549       -.38662E-05** at limit **
  22  norm          5.2710        1.8546       -.45664E-07   -.92405E-04
  23  Prefactor     .10000E-03    3.9307       -.20399E-06** at limit **
  24  Prefactor     29.067        40.488        .27854E-05   -.74349E-07
  25  Prefactor     57.954        44.956       -.91050E-05    .13989E-05
  26  Prefactor     .10000E-03    16.340        .61761E-05** at limit **
  27  norm          .10000E-03    8.7208        .61027E-05** at limit **
  28  Prefactor     21.170        14.312       -.12595E-06   -.66744E-04
  29  Normalizat    1.2392        .20881       -.96729E-06   -.11353E-03
  30  Prefactor     .86491        .16268        .86211E-06   -.17075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20908
  Prefactor  = 0.0001
  Prefactor  = 24.169
  Prefactor  = 0.0001
  Prefactor  = 44.4647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.29535
  Prefactor  = 0.0001
  norm       = 1.06596
  norm       = 7.28304
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.833569
  Prefactor  = 6.42584
  Prefactor  = 16.3948
  Prefactor  = 0.0001
  norm       = 5.27102
  Prefactor  = 0.0001
  Prefactor  = 29.0675
  Prefactor  = 57.954
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.1698
  Normalizat = 1.23922
  Prefactor  = 0.864905
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.774     FROM HESSE     STATUS=OK           586 CALLS     4488 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5526        117.55        .34261E-03   -1.5459    
   2  Prefactor     .10000E-03    23.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2091        4.4153        .32683E-03   -1.5488    
   5  Prefactor     .10000E-03    32.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.169        20.534        .81480E-04   -1.4724    
   7  Prefactor     .10000E-03    36.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.465        63.671        .60116E-04   -1.4373    
   9  Prefactor     .10000E-03    53.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2954        27.990        .13146E-03   -1.5098    
  12  Prefactor     .10000E-03    4.5223        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0660        1.3824        .12881E-02   -1.5501    
  14  norm          7.2830        3.5133        .98383E-04   -1.5168    
  15  Prefactor     .10000E-03    8.0350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83357        .47532        .41127E-04   -1.5525    
  19  Prefactor     6.4258        6.7823        .15833E-03   -1.5201    
  20  Prefactor     16.395        27.846        .98923E-04   -1.4898    
  21  Prefactor     .10000E-03    4.6909        .17533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2710        1.8527        .63706E-04   -1.5249    
  23  Prefactor     .10000E-03    3.9540        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.067        40.449        .74314E-04   -1.4629    
  25  Prefactor     57.954        44.928        .52694E-04   -1.4184    
  26  Prefactor     .10000E-03    16.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.7211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     21.170        14.371        .87059E-04   -1.4787    
  29  Normalizat    1.2392        .24499        .27826E-03   -.85399    
  30  Prefactor     .86491        .18962        .26804E-03   -.97378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15101e-09
Minuit parameter uncertainties:
  1  27.0737
  2  1.91522e-06
  3  9.82406e-06
  4  4.41647
  5  0.000223744
  6  20.5401
  7  3.24886e-05
  8  63.769
  9  0.000135178
  10  4.07332e-06
  11  28.0297
  12  7.68851e-07
  13  1.38246
  14  3.51344
  15  3.9668e-07
  16  6.14388e-06
  17  4.8387e-06
  18  0.475321
  19  6.78313
  20  27.8683
  21  9.79063e-06
  22  1.85275
  23  7.04255e-06
  24  40.4874
  25  44.9543
  26  2.49355e-07
  27  1.07846e-06
  28  14.3738
  29  0.245213
  30  0.189763
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  6.144e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.649e-01  1.898e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.239e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608392/likelihoodResults_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.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) = 6933.77442055
delta logL = -0.000165077229212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6933.77421972
delta logL = 3.57485323548e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13171E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6933.774     FROM MIGRAD    STATUS=FAILED        96 CALLS      306 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11691E-01    7829.1        .97432E-03    .38784E-03
   2  alpha         5.0000        3.2846        .50000    ** at limit **
   3  Normalizat    1.2386        .76654        .27832E-03    .28375E-03
   4  Prefactor     .86520        .23014        .26799E-03    .77971E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6933.774     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      445 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11691E-01    7829.1        .26302E-03    .38784E-03
   2  alpha         5.0000        3.2846        .86920E-01** at limit **
   3  Normalizat    1.2386        .76654        .22238E-05    .28375E-03
   4  Prefactor     .86520        .23014        .35439E-06    .77971E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6933.774     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      490 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11634E-01    7967.4        .38973E-03    .80220E-05
   2  alpha         5.0000        3.7168        .50000    ** at limit **
   3  Normalizat    1.2386        .71622        .55663E-04   -.20751E-04
   4  Prefactor     .86520        .21970        .10720E-04   -.16757E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0116343
  alpha      = 5
  Normalizat = 1.23861
  Prefactor  = 0.865198
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.774     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      519 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11634E-01    7999.9        .15589E-04   -1.5686    
   2  alpha         5.0000        4.7452        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2386        .73887        .11133E-04   -.85418    
   4  Prefactor     .86520        .25374        .21439E-05   -.97368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33535e-10
Minuit parameter uncertainties:
  1  19.0552
  2  0.000279994
  3  0.745258
  4  0.254087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608392': 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) = 6933.77421892
delta logL = 3.65483620044e-05

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.163e-02  1.906e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  2.800e-04  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.652e-01  2.541e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.239e+00  7.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

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/608392/cmap_HighResolution_442022401_442281601_4FGL_J1225.0+0330_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-05 14:07:14.921335', job_id='608392', GAL2='0.87', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630876034.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.65e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='782' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:07:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 608392: <4FGL_J1225.0+0330_daily_bin782> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin782> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:50 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:50:51 2021
Terminated at Sun Sep  5 14:07:15 2021
Results reported at Sun Sep  5 14:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin782 186.252 3.5098 442022401 442281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   950.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

