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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1013
RA = 183.001, Dec = -23.4494
tmin = 501897601, tmax = 502156801
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='408714', job_status='RUN', time_executed='2021-09-05 03:58:07.005926', time_epoch_executed='1630839487.01' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408714/ft1_4FGL_J1212.0-2326_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408714/ft1_4FGL_J1212.0-2326_daily_bin1013.fits outfile=/scratch/kocevski/408714/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1013.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=501897601.0 tmax=502156801.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.47
user 3.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.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/408714/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.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/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/408714/ltcube_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.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/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits
.....................!
real 14.82
user 14.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/408714/ltcube_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits outfile=/scratch/kocevski/408714/expmap_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.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/408714/ltcube_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits
.....................!
real 191.06
user 186.64
sys 4.03

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits outfile=/scratch/kocevski/408714/cmap_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.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=183.001 yref=-23.4494 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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits outfile=/scratch/kocevski/408714/cmap_HighResolution_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.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=183.001 yref=-23.4494 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.64
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408714/Model_4FGL_J1212.0-2326_daily_bin1013.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/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits.....................!
real 60.89
user 58.52
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits', '/scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits', expMap='/scratch/kocevski/408714/expmap_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits', expCube='/scratch/kocevski/408714/ltcube_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408714/Model_4FGL_J1212.0-2326_daily_bin1013.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408714/ft1_filtered_4FGL_J1212.0-2326_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/408714/ft2_4FGL_J1212.0-2326_daily_bin1013.fits
Exposure map: /scratch/kocevski/408714/expmap_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits
Exposure cube: /scratch/kocevski/408714/ltcube_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408714/Model_4FGL_J1212.0-2326_daily_bin1013.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) = 6850.74980425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11814E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.731       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.908       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4488       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82749E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.882       1.0000         .10000E-03   10000.    
    19 'norm      '    .55713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5585       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7389       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4935       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6850.620     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2426 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0111        .11746E-05** at limit **
   2  Prefactor     .10000E-03    19.264        .65518E-05** at limit **
   3  norm          .10000E-03    .67726       -.12487E-06** at limit **
   4  Prefactor     .10000E-03    19.451       -.75721E-05** at limit **
   5  Prefactor     2.9413        5.6321       -.22078E-05   -.38588E-03
   6  Prefactor     .10000E-03    165.52       -.12128E-04** at limit **
   7  norm          .10000E-03    8.1779       -.24587E-06** at limit **
   8  Prefactor     .10000E-03    8.6435       -.24316E-06** at limit **
   9  norm          11.733        5.7937        .73100E-06    .61552E-04
  10  Prefactor     15.916        7.5136       -.14691E-05    .67232E-04
  11  Prefactor     .10000E-03    20.661        .82788E-06** at limit **
  12  Prefactor     9.3160        30.488        .27326E-04    .27693E-04
  13  Prefactor     .10439E-03    10.240       -.65780E-06** at limit **
  14  Prefactor     .10000E-03    66.656       -.18587E-04** at limit **
  15  Prefactor     35.528        27.172       -.16631E-04   -.13231E-04
  16  Prefactor     2.5048        3.5710       -.25142E-06   -.38461E-03
  17  Prefactor     5.6488        2.2354       -.55376E-08    .87663E-04
  18  Prefactor     19.878        14.024        .60490E-05   -.29078E-05
  19  norm          .55705        .56067        .44990E-07    .36345E-03
  20  Prefactor     .10000E-03    65.772        .17620E-04** at limit **
  21  norm          7.5573        8.1421        .70492E-06   -.26998E-03
  22  Prefactor     4.7385        6.5778       -.11571E-05   -.30836E-03
  23  Normalizat    1.4939        .24905        .41757E-06    .83506E-04
  24  Prefactor     .77181        .11781        .31193E-06    .14481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.94131
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7331
  Prefactor  = 15.9164
  Prefactor  = 0.0001
  Prefactor  = 9.31604
  Prefactor  = 0.000104393
  Prefactor  = 0.0001
  Prefactor  = 35.5283
  Prefactor  = 2.50485
  Prefactor  = 5.64877
  Prefactor  = 19.8785
  norm       = 0.55705
  Prefactor  = 0.0001
  norm       = 7.55733
  Prefactor  = 4.73848
  Normalizat = 1.49391
  Prefactor  = 0.771807
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.620     FROM HESSE     STATUS=OK           419 CALLS     2845 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .63044        .23353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9413        5.6262        .23679E-03   -1.5365    
   6  Prefactor     .10000E-03    169.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.733        5.7987        .11696E-03   -1.5023    
  10  Prefactor     15.916        7.4980        .10042E-03   -1.4910    
  11  Prefactor     .10000E-03    20.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3160        30.415        .13037E-03   -1.5097    
  13  Prefactor     .10439E-03    14.011        .10034       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.528        27.211        .67232E-04   -1.4515    
  16  Prefactor     2.5048        3.5599        .18002E-03   -1.5391    
  17  Prefactor     5.6488        2.2388        .75053E-04   -1.5233    
  18  Prefactor     19.878        14.019        .89826E-04   -1.4816    
  19  norm          .55705        .57124        .60323E-04   -1.5559    
  20  Prefactor     .10000E-03    65.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5573        8.1182        .14587E-03   -1.5158    
  22  Prefactor     4.7385        6.5620        .18484E-03   -1.5273    
  23  Normalizat    1.4939        .29872        .31636E-03   -.77949    
  24  Prefactor     .77181        .14096        .20451E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37758e-10
Minuit parameter uncertainties:
  1  1.91922e-07
  2  2.51151e-06
  3  6.73388e-05
  4  2.51907e-06
  5  5.62724
  6  0.00170778
  7  5.41163e-07
  8  2.66997e-05
  9  5.79898
  10  7.49843
  11  1.27237e-05
  12  30.466
  13  0.0156945
  14  5.97622e-05
  15  27.2207
  16  3.56018
  17  2.23883
  18  14.0212
  19  0.571247
  20  0.000126108
  21  8.11937
  22  6.56295
  23  0.299069
  24  0.141021
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.044e-04  1.569e-02  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.718e-01  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.494e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408714/likelihoodResults_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.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) = 6850.61977931
delta logL = -7.02908073436e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6850.61977931
delta logL = -7.02495162841e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8975       1.0000          .0000       10.000    
     3 'Normalizat'    1.4939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6850.616     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      331 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53782        37.861        .18142E-02    .56424E-03
   2  Index         2.2926        3.4623        .24792E-02    .16509E-06
   3  Normalizat    1.4940        .28853        .31635E-03   -.84094E-05
   4  Prefactor     .77097        .14065        .20461E-03   -.16002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.537824
  Index      = 2.29261
  Normalizat = 1.49405
  Prefactor  = 0.770968
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.616     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53782        25.996        .36285E-03   -1.5561    
   2  Index         2.2926        3.0207        .99166E-04   -.57219    
   3  Normalizat    1.4940        .28880        .12654E-04   -.77946    
   4  Prefactor     .77097        .14069        .81843E-05   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40454e-12
Minuit parameter uncertainties:
  1  7.48103
  2  3.37034
  3  0.289116
  4  0.140751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408714': 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) = 6850.61585598
delta logL = 0.00391629805108

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  5.378e-01  7.481e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.293e+00  3.370e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.710e-01  1.408e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.494e+00  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/408714/cmap_HighResolution_501897601_502156801_4FGL_J1212.0-2326_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-05 04:10:00.482022', job_id='408714', GAL2='0.77', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630840200.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.92e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1013' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 408714: <4FGL_J1212.0-2326_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1013> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:48 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:50 2021
Terminated at Sun Sep  5 04:10:00 2021
Results reported at Sun Sep  5 04:10:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1013 183.001 -23.4494 501897601 502156801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

