/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 154 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 = 7418
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin341
RA = 186.252, Dec = 3.5098
tmin = 327715201, tmax = 327974401
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='606473', job_status='RUN', time_executed='2021-09-05 13:48:17.626931', time_epoch_executed='1630874897.63' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606473/ft1_4FGL_J1225.0+0330_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606473/ft1_4FGL_J1225.0+0330_daily_bin341.fits outfile=/scratch/kocevski/606473/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin341.fits ra=186.252 dec=3.5098 rad=12.0 tmin=327715201.0 tmax=327974401.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.36
user 3.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.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/606473/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.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/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/606473/ltcube_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.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/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits
.....................!
real 12.05
user 11.62
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/606473/ltcube_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits outfile=/scratch/kocevski/606473/expmap_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.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/606473/ltcube_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits
.....................!
real 191.96
user 185.76
sys 5.72

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/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits scfile=/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits outfile=/scratch/kocevski/606473/cmap_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits scfile=/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits outfile=/scratch/kocevski/606473/cmap_HighResolution_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.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.59
user 0.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits', '/scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits', expMap='/scratch/kocevski/606473/expmap_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits', expCube='/scratch/kocevski/606473/ltcube_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606473/Model_4FGL_J1225.0+0330_daily_bin341.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/606473/ft1_filtered_4FGL_J1225.0+0330_daily_bin341.fits
Spacecraft file(s): /scratch/kocevski/606473/ft2_4FGL_J1225.0+0330_daily_bin341.fits
Exposure map: /scratch/kocevski/606473/expmap_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits
Exposure cube: /scratch/kocevski/606473/ltcube_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606473/Model_4FGL_J1225.0+0330_daily_bin341.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) = 5628.83393133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12939E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2575       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6058       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5747       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14204       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19477E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4663       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81354       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1030       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=   5628.829     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3887 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3017        .50798E-07** at limit **
   2  Prefactor     .10016E-03    132.71       -.14804E-04** at limit **
   3  Prefactor     1.9278        9.2895       -.48236E-06    .26310E-03
   4  Prefactor     2.2524        8.5221       -.28456E-05   -.82063E-07
   5  Prefactor     26.765        18.634        .37133E-06   -.94859E-04
   6  Prefactor     8.9585        13.633       -.27633E-05    .54756E-03
   7  Prefactor     1.0936        1130.0        .17113E-04   -.19272E-05
   8  Prefactor     .10002E-03    29.869       -.56462E-05** at limit **
   9  Prefactor     .10000E-03    23.269        .16652E-06** at limit **
  10  Prefactor     .10001E-03    31.731        .33674E-05** at limit **
  11  Prefactor     .10001E-03    32.155        .36983E-05** at limit **
  12  Prefactor     .10000E-03    6.6147       -.20230E-06** at limit **
  13  norm          .10000E-03    1.3964       -.25207E-06** at limit **
  14  norm          2.2117        2.9096       -.37188E-06    .10627E-04
  15  Prefactor     .10000E-03    14.361       -.48971E-06** at limit **
  16  norm          .10000E-03    15.911       -.12101E-05** at limit **
  17  Prefactor     .10000E-03    43.977       -.26669E-05** at limit **
  18  norm          1.6059        .65030        .33486E-07    .12703E-02
  19  Prefactor     10.956        8.4316       -.30994E-06   -.96692E-04
  20  Prefactor     .10000E-03    5.5092       -.13859E-06** at limit **
  21  Prefactor     .10000E-03    5.3649       -.42223E-06** at limit **
  22  norm          9.5743        2.5251       -.55983E-07    .28195E-03
  23  Prefactor     .12335        98.704       -.55114E-04    .89138E-04
  24  Prefactor     .10000E-03    15.976        .86246E-06** at limit **
  25  Prefactor     .10000E-03    56.376       -.10053E-05** at limit **
  26  Prefactor     .10001E-03    126.78        .59627E-05** at limit **
  27  norm          .10000E-03    13.422       -.43537E-08** at limit **
  28  Prefactor     8.4719        12.352       -.36362E-06   -.14373E-03
  29  Normalizat    .81360        .22226        .19410E-05    .16462E-03
  30  Prefactor     1.1032        .18181        .17722E-05    .12404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100157
  Prefactor  = 1.92778
  Prefactor  = 2.25245
  Prefactor  = 26.7648
  Prefactor  = 8.95852
  Prefactor  = 1.09356
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.21174
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100005
  norm       = 1.60589
  Prefactor  = 10.9564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.57433
  Prefactor  = 0.123352
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 8.4719
  Normalizat = 0.813602
  Prefactor  = 1.10318
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.829     FROM HESSE     STATUS=OK           588 CALLS     4475 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10016E-03    136.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9278        9.3276        .30025E-03   -1.5430    
   4  Prefactor     2.2524        8.5293        .27342E-03   -1.5408    
   5  Prefactor     26.765        18.450        .77440E-04   -1.4673    
   6  Prefactor     8.9585        13.728        .66944E-03   -1.5109    
   7  Prefactor     1.0936        1140.2        .36926E-02   -1.5499    
   8  Prefactor     .10002E-03    30.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    32.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    32.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4170        .86574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2117        2.8898        .13725E-03   -1.5411    
  15  Prefactor     .10000E-03    14.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6059        .64520        .35309E-04   -1.5455    
  19  Prefactor     10.956        8.4329        .12103E-03   -1.5046    
  20  Prefactor     .10000E-03    5.5108        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3932        .16973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.5743        2.5252        .57572E-04   -1.5089    
  23  Prefactor     .12335        8.1954        .62121E-01   -1.5638    
  24  Prefactor     .10000E-03    16.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    56.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    127.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    13.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.4719        12.345        .13777E-03   -1.5126    
  29  Normalizat    .81360        .25477        .31647E-03   -.99566    
  30  Prefactor     1.1032        .20840        .23614E-03   -.89365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52155e-09
Minuit parameter uncertainties:
  1  1.54506e-05
  2  0.00927478
  3  8.48283
  4  8.53389
  5  18.4535
  6  13.7327
  7  72.0399
  8  0.00153442
  9  8.51686e-05
  10  0.0010973
  11  0.00102546
  12  1.51414e-05
  13  1.29042e-05
  14  2.88995
  15  0.000112137
  16  0.000249496
  17  0.000930778
  18  0.645204
  19  8.43384
  20  1.90987e-05
  21  4.60866e-05
  22  2.52525
  23  2.01036
  24  0.000176551
  25  0.000371844
  26  0.00253237
  27  1.74968e-06
  28  12.3491
  29  0.255142
  30  0.208553
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  2.495e-04  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:  1.103e+00  2.086e-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:  8.136e-01  2.551e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606473/likelihoodResults_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.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) = 5628.8295416
delta logL = -0.000298329339785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5628.8292478
delta logL = -4.52212134405e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6678       1.0000          .0000       5.0000    
     3 'Normalizat'    .81360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1032       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.

 FCN=   5628.829     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      274 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    526.92        .18142E-01** at limit **
   2  alpha         2.0814        3.5268        .19644        .12037E-07
   3  Normalizat    .81360        .30909E-01    .31647E-03    .12361E-03
   4  Prefactor     1.1032        .26639E-01    .23614E-03    .19408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08137
  Normalizat = 0.8136
  Prefactor  = 1.10318
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.829     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.703        .29768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0814        3.1403        .78577E-02   -.16824    
   3  Normalizat    .81360        .24065        .12659E-04   -.99566    
   4  Prefactor     1.1032        .20753        .47228E-04   -.89365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10212e-11
Minuit parameter uncertainties:
  1  0.000138937
  2  695.595
  3  0.24097
  4  0.207684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606473': 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) = 5628.82924316
delta logL = 1.09989741759e-07

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.389e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.081e+00  6.956e+02  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:  1.103e+00  2.077e-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:  8.136e-01  2.410e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/606473/cmap_HighResolution_327715201_327974401_4FGL_J1225.0+0330_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-05 14:01:51.622416', job_id='606473', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630875711.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='341' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 606473: <4FGL_J1225.0+0330_daily_bin341> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin341> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:32 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:34 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:45:34 2021
Terminated at Sun Sep  5 14:01:52 2021
Results reported at Sun Sep  5 14:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin341 186.252 3.5098 327715201 327974401 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 :                                   813.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

